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                   @   sÊ   e Zd Zd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edd„ ƒZej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 ) ÚSuppressionSummaryz:
    The full information representing a suppression.
    ÚUNKNOWNÚ
HARDBOUNCEÚ	COMPLAINTÚMANUALÚ
SOFTBOUNCEÚUNSUBSCRIBEc                 K   sF   ddddddœ| _ ddddddœ| _d	| _d	| _d	| _d	| _d	| _d	S )
a–  
        Initializes a new SuppressionSummary object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param compartment_id:
            The value to assign to the compartment_id property of this SuppressionSummary.
        :type compartment_id: str

        :param email_address:
            The value to assign to the email_address property of this SuppressionSummary.
        :type email_address: str

        :param id:
            The value to assign to the id property of this SuppressionSummary.
        :type id: str

        :param reason:
            The value to assign to the reason property of this SuppressionSummary.
            Allowed values for this property are: "UNKNOWN", "HARDBOUNCE", "COMPLAINT", "MANUAL", "SOFTBOUNCE", "UNSUBSCRIBE", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type reason: str

        :param time_created:
            The value to assign to the time_created property of this SuppressionSummary.
        :type time_created: datetime

        ÚstrÚdatetime)Úcompartment_idÚemail_addressÚidÚreasonÚtime_createdZcompartmentIdZemailAddressr   r   ZtimeCreatedN)Zswagger_typesZattribute_mapÚ_compartment_idÚ_email_addressÚ_idÚ_reasonÚ_time_created)ÚselfÚkwargs© r   úHusr/lib/python3.10/site-packages/oci/email/models/suppression_summary.pyÚ__init__*   s"   û	û
zSuppressionSummary.__init__c                 C   ó   | j S )zÐ
        **[Required]** Gets the compartment_id of this SuppressionSummary.
        The OCID for the compartment.


        :return: The compartment_id of this SuppressionSummary.
        :rtype: str
        ©r   ©r   r   r   r   r   \   ó   
z!SuppressionSummary.compartment_idc                 C   ó
   || _ dS )zÎ
        Sets the compartment_id of this SuppressionSummary.
        The OCID for the compartment.


        :param compartment_id: The compartment_id of this SuppressionSummary.
        :type: str
        Nr   )r   r   r   r   r   r   h   ó   

c                 C   r   )zÖ
        **[Required]** Gets the email_address of this SuppressionSummary.
        The email address of the suppression.


        :return: The email_address of this SuppressionSummary.
        :rtype: str
        ©r   r    r   r   r   r   t   r!   z SuppressionSummary.email_addressc                 C   r"   )zÓ
        Sets the email_address of this SuppressionSummary.
        The email address of the suppression.


        :param email_address: The email_address of this SuppressionSummary.
        :type: str
        Nr$   )r   r   r   r   r   r   €   r#   c                 C   r   )z¾
        **[Required]** Gets the id of this SuppressionSummary.
        The unique OCID of the suppression.


        :return: The id of this SuppressionSummary.
        :rtype: str
        ©r   r    r   r   r   r   Œ   r!   zSuppressionSummary.idc                 C   r"   )z°
        Sets the id of this SuppressionSummary.
        The unique OCID of the suppression.


        :param id: The id of this SuppressionSummary.
        :type: str
        Nr%   )r   r   r   r   r   r   ˜   r#   c                 C   r   )aµ  
        Gets the reason of this SuppressionSummary.
        The reason that the email address was suppressed.

        Allowed values for this property are: "UNKNOWN", "HARDBOUNCE", "COMPLAINT", "MANUAL", "SOFTBOUNCE", "UNSUBSCRIBE", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The reason of this SuppressionSummary.
        :rtype: str
        )r   r    r   r   r   r   ¤   s   zSuppressionSummary.reasonc                 C   s    g d¢}t ||ƒsd}|| _dS )zÊ
        Sets the reason of this SuppressionSummary.
        The reason that the email address was suppressed.


        :param reason: The reason of this SuppressionSummary.
        :type: str
        )r   r   r	   r
   r   r   ZUNKNOWN_ENUM_VALUEN)r   r   )r   r   Zallowed_valuesr   r   r   r   ³   s   


c                 C   r   )aL  
        Gets the time_created of this SuppressionSummary.
        The date and time a recipient's email address was added to the
        suppression list, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as
        defined by RFC 3339.


        :return: The time_created of this SuppressionSummary.
        :rtype: datetime
        ©r   r    r   r   r   r   Â   s   zSuppressionSummary.time_createdc                 C   r"   )aW  
        Sets the time_created of this SuppressionSummary.
        The date and time a recipient's email address was added to the
        suppression list, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as
        defined by RFC 3339.


        :param time_created: The time_created of this SuppressionSummary.
        :type: datetime
        Nr&   )r   r   r   r   r   r   Ð   s   
c                 C   s   t | ƒS ©N)r   r    r   r   r   Ú__repr__Þ   s   zSuppressionSummary.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__á   s   zSuppressionSummary.__eq__c                 C   s
   | |k S r'   r   r*   r   r   r   Ú__ne__ç   s   
zSuppressionSummary.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZREASON_UNKNOWNZREASON_HARDBOUNCEZREASON_COMPLAINTZREASON_MANUALZREASON_SOFTBOUNCEZREASON_UNSUBSCRIBEr   Úpropertyr   Úsetterr   r   r   r   r(   r,   r-   r   r   r   r   r      s@    2









r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r   r   r   r   Ú<module>   s   