o
    ëÉ¶d®  ã                   @   s8   d dl mZmZmZ d dlmZ eG dd„ deƒƒZdS )é    )Úformatted_flat_dictÚNONE_SENTINELÚ#value_allowed_none_or_none_sentinel)Úinit_model_state_from_kwargsc                   @   st   e Zd ZdZdZdZdZdZdd„ Ze	dd	„ ƒZ
e
jd
d	„ ƒZ
e	dd„ ƒZejdd„ ƒZdd„ Zdd„ Zdd„ ZdS )Ú
Recurrencez?
    An object for representing a recurrence time interval
    ÚMINUTESÚHOURSÚDAYSÚWEEKSc                 K   s(   dddœ| _ dddœ| _d| _d| _dS )aC  
        Initializes a new Recurrence object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param interval_type:
            The value to assign to the interval_type property of this Recurrence.
            Allowed values for this property are: "MINUTES", "HOURS", "DAYS", "WEEKS"
        :type interval_type: str

        :param interval_value:
            The value to assign to the interval_value property of this Recurrence.
        :type interval_value: str

        Ústr)Úinterval_typeÚinterval_valueZintervalTypeZintervalValueN)Zswagger_typesZattribute_mapÚ_interval_typeÚ_interval_value)ÚselfÚkwargs© r   úGusr/lib/python3.10/site-packages/oci/os_management/models/recurrence.pyÚ__init__"   s   þþ
zRecurrence.__init__c                 C   ó   | j S )a  
        **[Required]** Gets the interval_type of this Recurrence.
        the interval period for the recurrence

        Allowed values for this property are: "MINUTES", "HOURS", "DAYS", "WEEKS"


        :return: The interval_type of this Recurrence.
        :rtype: str
        )r   ©r   r   r   r   r   >   s   zRecurrence.interval_typec                 C   s*   g d¢}t ||ƒstd |¡ƒ‚|| _dS )zÄ
        Sets the interval_type of this Recurrence.
        the interval period for the recurrence


        :param interval_type: The interval_type of this Recurrence.
        :type: str
        )r   r   r	   r
   z=Invalid value for `interval_type`, must be None or one of {0}N)r   Ú
ValueErrorÚformatr   )r   r   Zallowed_valuesr   r   r   r   L   s   

þ
c                 C   r   )z×
        **[Required]** Gets the interval_value of this Recurrence.
        the value for the interval period for the recurrence


        :return: The interval_value of this Recurrence.
        :rtype: str
        ©r   r   r   r   r   r   ^   s   
zRecurrence.interval_valuec                 C   s
   || _ dS )zÕ
        Sets the interval_value of this Recurrence.
        the value for the interval period for the recurrence


        :param interval_value: The interval_value of this Recurrence.
        :type: str
        Nr   )r   r   r   r   r   r   j   s   

c                 C   s   t | ƒS ©N)r   r   r   r   r   Ú__repr__v   s   zRecurrence.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__y   s   zRecurrence.__eq__c                 C   s
   | |k S r   r   r   r   r   r   Ú__ne__   s   
zRecurrence.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZINTERVAL_TYPE_MINUTESZINTERVAL_TYPE_HOURSZINTERVAL_TYPE_DAYSZINTERVAL_TYPE_WEEKSr   Úpropertyr   Úsetterr   r   r   r    r   r   r   r   r      s$    



r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r   r   r   r   Ú<module>   s   