o
    ëÉ¶dI.  ã                   @   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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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 )+ÚSmtpCredentialaP  
    Simple Mail Transfer Protocol (SMTP) credentials are needed to send email through Email Delivery.
    The SMTP credentials are used for SMTP authentication with the service. The credentials never expire.
    A user can have up to 2 SMTP credentials at a time.

    **Note:** The credential set is always an Oracle-generated SMTP user name and password pair;
    you cannot designate the SMTP user name or the SMTP password.

    For more information, see `Managing User Credentials`__.

    __ https://docs.cloud.oracle.com/Content/Identity/access/managing-user-credentials.htm#SMTP
    ÚCREATINGÚACTIVEÚINACTIVEÚDELETINGÚDELETEDc              
   K   sn   ddddddddddœ	| _ ddddd	d
ddddœ	| _d| _d| _d| _d| _d| _d| _d| _d| _	d| _
dS )a¬  
        Initializes a new SmtpCredential object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param username:
            The value to assign to the username property of this SmtpCredential.
        :type username: str

        :param password:
            The value to assign to the password property of this SmtpCredential.
        :type password: str

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

        :param user_id:
            The value to assign to the user_id property of this SmtpCredential.
        :type user_id: str

        :param description:
            The value to assign to the description property of this SmtpCredential.
        :type description: str

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

        :param time_expires:
            The value to assign to the time_expires property of this SmtpCredential.
        :type time_expires: datetime

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this SmtpCredential.
            Allowed values for this property are: "CREATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type lifecycle_state: str

        :param inactive_status:
            The value to assign to the inactive_status property of this SmtpCredential.
        :type inactive_status: int

        ÚstrÚdatetimeÚint)	ÚusernameÚpasswordÚidÚuser_idÚdescriptionÚtime_createdÚtime_expiresÚlifecycle_stateÚinactive_statusr   r   r   ZuserIdr   ZtimeCreatedZtimeExpiresZlifecycleStateZinactiveStatusN)Zswagger_typesZattribute_mapÚ	_usernameÚ	_passwordÚ_idÚ_user_idÚ_descriptionÚ_time_createdÚ_time_expiresÚ_lifecycle_stateÚ_inactive_status)ÚselfÚkwargs© r#   úGusr/lib/python3.10/site-packages/oci/identity/models/smtp_credential.pyÚ__init__/   s:   -÷÷
zSmtpCredential.__init__c                 C   ó   | j S )z£
        Gets the username of this SmtpCredential.
        The SMTP user name.


        :return: The username of this SmtpCredential.
        :rtype: str
        ©r   ©r!   r#   r#   r$   r   }   ó   
zSmtpCredential.usernamec                 C   ó
   || _ dS )zª
        Sets the username of this SmtpCredential.
        The SMTP user name.


        :param username: The username of this SmtpCredential.
        :type: str
        Nr'   )r!   r   r#   r#   r$   r   ‰   ó   

c                 C   r&   )z¢
        Gets the password of this SmtpCredential.
        The SMTP password.


        :return: The password of this SmtpCredential.
        :rtype: str
        ©r   r(   r#   r#   r$   r   •   r)   zSmtpCredential.passwordc                 C   r*   )z©
        Sets the password of this SmtpCredential.
        The SMTP password.


        :param password: The password of this SmtpCredential.
        :type: str
        Nr,   )r!   r   r#   r#   r$   r   ¡   r+   c                 C   r&   )z¤
        Gets the id of this SmtpCredential.
        The OCID of the SMTP credential.


        :return: The id of this SmtpCredential.
        :rtype: str
        ©r   r(   r#   r#   r$   r   ­   r)   zSmtpCredential.idc                 C   r*   )z¥
        Sets the id of this SmtpCredential.
        The OCID of the SMTP credential.


        :param id: The id of this SmtpCredential.
        :type: str
        Nr-   )r!   r   r#   r#   r$   r   ¹   r+   c                 C   r&   )zÂ
        Gets the user_id of this SmtpCredential.
        The OCID of the user the SMTP credential belongs to.


        :return: The user_id of this SmtpCredential.
        :rtype: str
        ©r   r(   r#   r#   r$   r   Å   r)   zSmtpCredential.user_idc                 C   r*   )zÈ
        Sets the user_id of this SmtpCredential.
        The OCID of the user the SMTP credential belongs to.


        :param user_id: The user_id of this SmtpCredential.
        :type: str
        Nr.   )r!   r   r#   r#   r$   r   Ñ   r+   c                 C   r&   )aS  
        Gets the description of this SmtpCredential.
        The description you assign to the SMTP credential. Does not have to be unique, and it's changeable.

        (For tenancies that support identity domains) You can have an empty description.


        :return: The description of this SmtpCredential.
        :rtype: str
        ©r   r(   r#   r#   r$   r   Ý   ó   zSmtpCredential.descriptionc                 C   r*   )a]  
        Sets the description of this SmtpCredential.
        The description you assign to the SMTP credential. Does not have to be unique, and it's changeable.

        (For tenancies that support identity domains) You can have an empty description.


        :param description: The description of this SmtpCredential.
        :type: str
        Nr/   )r!   r   r#   r#   r$   r   ë   ó   
c                 C   r&   )a"  
        Gets the time_created of this SmtpCredential.
        Date and time the `SmtpCredential` object was created, in the format defined by RFC3339.

        Example: `2016-08-25T21:10:29.600Z`


        :return: The time_created of this SmtpCredential.
        :rtype: datetime
        ©r   r(   r#   r#   r$   r   ù   r0   zSmtpCredential.time_createdc                 C   r*   )a-  
        Sets the time_created of this SmtpCredential.
        Date and time the `SmtpCredential` object was created, in the format defined by RFC3339.

        Example: `2016-08-25T21:10:29.600Z`


        :param time_created: The time_created of this SmtpCredential.
        :type: datetime
        Nr2   )r!   r   r#   r#   r$   r     r1   c                 C   r&   )a=  
        Gets the time_expires of this SmtpCredential.
        Date and time when this credential will expire, in the format defined by RFC3339.
        Null if it never expires.

        Example: `2016-08-25T21:10:29.600Z`


        :return: The time_expires of this SmtpCredential.
        :rtype: datetime
        ©r   r(   r#   r#   r$   r     s   zSmtpCredential.time_expiresc                 C   r*   )aH  
        Sets the time_expires of this SmtpCredential.
        Date and time when this credential will expire, in the format defined by RFC3339.
        Null if it never expires.

        Example: `2016-08-25T21:10:29.600Z`


        :param time_expires: The time_expires of this SmtpCredential.
        :type: datetime
        Nr3   )r!   r   r#   r#   r$   r   $  s   
c                 C   r&   )a  
        Gets the lifecycle_state of this SmtpCredential.
        The credential's current state. After creating a SMTP credential, make sure its `lifecycleState` changes from
        CREATING to ACTIVE before using it.

        Allowed values for this property are: "CREATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The lifecycle_state of this SmtpCredential.
        :rtype: str
        )r   r(   r#   r#   r$   r   3  s   zSmtpCredential.lifecycle_statec                 C   s    g d¢}t ||ƒsd}|| _dS )aE  
        Sets the lifecycle_state of this SmtpCredential.
        The credential's current state. After creating a SMTP credential, make sure its `lifecycleState` changes from
        CREATING to ACTIVE before using it.


        :param lifecycle_state: The lifecycle_state of this SmtpCredential.
        :type: str
        )r   r   r	   r
   r   ZUNKNOWN_ENUM_VALUEN)r   r   )r!   r   Zallowed_valuesr#   r#   r$   r   C  s   

c                 C   r&   )zÍ
        Gets the inactive_status of this SmtpCredential.
        The detailed status of INACTIVE lifecycleState.


        :return: The inactive_status of this SmtpCredential.
        :rtype: int
        ©r    r(   r#   r#   r$   r   S  r)   zSmtpCredential.inactive_statusc                 C   r*   )zÛ
        Sets the inactive_status of this SmtpCredential.
        The detailed status of INACTIVE lifecycleState.


        :param inactive_status: The inactive_status of this SmtpCredential.
        :type: int
        Nr4   )r!   r   r#   r#   r$   r   _  r+   c                 C   s   t | ƒS ©N)r   r(   r#   r#   r$   Ú__repr__k  s   zSmtpCredential.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r!   Úotherr#   r#   r$   Ú__eq__n  s   zSmtpCredential.__eq__c                 C   s
   | |k S r5   r#   r8   r#   r#   r$   Ú__ne__t  s   
zSmtpCredential.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_INACTIVEZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDr%   Úpropertyr   Úsetterr   r   r   r   r   r   r   r   r6   r:   r;   r#   r#   r#   r$   r      s^    N

















r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r#   r#   r#   r$   Ú<module>   s   