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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d"d#„ Zd$d%„ Zd&d'„ Zd(S ))ÚEnrollmentStatusz=
    The metadata associated with the enrollment status.
    ÚACTIVEÚFAILEDÚINACTIVEÚ	ATTACHINGÚ	DETACHINGÚDELETINGÚDELETEDÚUPDATINGÚCREATINGc                 K   sZ   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 EnrollmentStatus object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

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

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

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

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

        :param status_reason:
            The value to assign to the status_reason property of this EnrollmentStatus.
        :type status_reason: str

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

        :param time_updated:
            The value to assign to the time_updated property of this EnrollmentStatus.
        :type time_updated: datetime

        ÚstrÚdatetime)ÚidÚcompartment_idÚlifecycle_stateÚstatusÚstatus_reasonÚtime_createdÚtime_updatedr   ZcompartmentIdZlifecycleStater   ZstatusReasonZtimeCreatedZtimeUpdatedN)	Zswagger_typesZattribute_mapÚ_idÚ_compartment_idÚ_lifecycle_stateÚ_statusÚ_status_reasonÚ_time_createdÚ_time_updated)ÚselfÚkwargs© r"   úJusr/lib/python3.10/site-packages/oci/optimizer/models/enrollment_status.pyÚ__init__>   s.   'ùù

zEnrollmentStatus.__init__c                 C   ó   | j S )z¹
        **[Required]** Gets the id of this EnrollmentStatus.
        The OCID of the enrollment status.


        :return: The id of this EnrollmentStatus.
        :rtype: str
        ©r   ©r    r"   r"   r#   r   €   ó   
zEnrollmentStatus.idc                 C   ó
   || _ dS )z«
        Sets the id of this EnrollmentStatus.
        The OCID of the enrollment status.


        :param id: The id of this EnrollmentStatus.
        :type: str
        Nr&   )r    r   r"   r"   r#   r   Œ   ó   

c                 C   r%   )zË
        **[Required]** Gets the compartment_id of this EnrollmentStatus.
        The OCID of the compartment.


        :return: The compartment_id of this EnrollmentStatus.
        :rtype: str
        ©r   r'   r"   r"   r#   r   ˜   r(   zEnrollmentStatus.compartment_idc                 C   r)   )zÉ
        Sets the compartment_id of this EnrollmentStatus.
        The OCID of the compartment.


        :param compartment_id: The compartment_id of this EnrollmentStatus.
        :type: str
        Nr+   )r    r   r"   r"   r#   r   ¤   r*   c                 C   r%   )aâ  
        **[Required]** Gets the lifecycle_state of this EnrollmentStatus.
        The enrollment status' current state.

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


        :return: The lifecycle_state of this EnrollmentStatus.
        :rtype: str
        )r   r'   r"   r"   r#   r   °   ó   z EnrollmentStatus.lifecycle_statec                 C   s    g d¢}t ||ƒsd}|| _dS )zÕ
        Sets the lifecycle_state of this EnrollmentStatus.
        The enrollment status' current state.


        :param lifecycle_state: The lifecycle_state of this EnrollmentStatus.
        :type: str
        )	r   r   r	   r
   r   r   r   r   r   ÚUNKNOWN_ENUM_VALUEN)r   r   )r    r   Úallowed_valuesr"   r"   r#   r   ¿   ó   


c                 C   r%   )a„  
        **[Required]** Gets the status of this EnrollmentStatus.
        The current Cloud Advisor enrollment status.

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


        :return: The status of this EnrollmentStatus.
        :rtype: str
        )r   r'   r"   r"   r#   r   Î   r,   zEnrollmentStatus.statusc                 C   s    ddg}t ||ƒsd}|| _dS )zÁ
        Sets the status of this EnrollmentStatus.
        The current Cloud Advisor enrollment status.


        :param status: The status of this EnrollmentStatus.
        :type: str
        r   r	   r-   N)r   r   )r    r   r.   r"   r"   r#   r   Ý   r/   c                 C   r%   )zÒ
        Gets the status_reason of this EnrollmentStatus.
        The reason for the enrollment status of the tenancy.


        :return: The status_reason of this EnrollmentStatus.
        :rtype: str
        ©r   r'   r"   r"   r#   r   ì   r(   zEnrollmentStatus.status_reasonc                 C   r)   )zÞ
        Sets the status_reason of this EnrollmentStatus.
        The reason for the enrollment status of the tenancy.


        :param status_reason: The status_reason of this EnrollmentStatus.
        :type: str
        Nr0   )r    r   r"   r"   r#   r   ø   r*   c                 C   r%   )z÷
        Gets the time_created of this EnrollmentStatus.
        The date and time the enrollment status was created, in the format defined by RFC3339.


        :return: The time_created of this EnrollmentStatus.
        :rtype: datetime
        ©r   r'   r"   r"   r#   r     r(   zEnrollmentStatus.time_createdc                 C   r)   )a  
        Sets the time_created of this EnrollmentStatus.
        The date and time the enrollment status was created, in the format defined by RFC3339.


        :param time_created: The time_created of this EnrollmentStatus.
        :type: datetime
        Nr1   )r    r   r"   r"   r#   r     r*   c                 C   r%   )zü
        Gets the time_updated of this EnrollmentStatus.
        The date and time the enrollment status was last updated, in the format defined by RFC3339.


        :return: The time_updated of this EnrollmentStatus.
        :rtype: datetime
        ©r   r'   r"   r"   r#   r     r(   zEnrollmentStatus.time_updatedc                 C   r)   )a  
        Sets the time_updated of this EnrollmentStatus.
        The date and time the enrollment status was last updated, in the format defined by RFC3339.


        :param time_updated: The time_updated of this EnrollmentStatus.
        :type: datetime
        Nr2   )r    r   r"   r"   r#   r   (  r*   c                 C   s   t | ƒS ©N)r   r'   r"   r"   r#   Ú__repr__4  s   zEnrollmentStatus.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r    Úotherr"   r"   r#   Ú__eq__7  s   zEnrollmentStatus.__eq__c                 C   s
   | |k S r3   r"   r6   r"   r"   r#   Ú__ne__=  s   
zEnrollmentStatus.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_FAILEDZLIFECYCLE_STATE_INACTIVEZLIFECYCLE_STATE_ATTACHINGZLIFECYCLE_STATE_DETACHINGZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDZLIFECYCLE_STATE_UPDATINGZLIFECYCLE_STATE_CREATINGZSTATUS_ACTIVEZSTATUS_INACTIVEr$   Úpropertyr   Úsetterr   r   r   r   r   r   r4   r8   r9   r"   r"   r"   r#   r      sZ    B













r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r"   r"   r"   r#   Ú<module>   s   