o
    ëÉ¶dN  ã                   @   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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 )ÚFaultDomainaC  
    A Fault Domain is a logical grouping of hardware and infrastructure within an Availability Domain that can become
    unavailable in its entirety either due to hardware failure such as Top-of-rack (TOR) switch failure or due to
    planned software maintenance such as security updates that reboot your instances.
    c                 K   s<   dddddœ| _ dddddœ| _d| _d| _d| _d| _dS )aì  
        Initializes a new FaultDomain object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param name:
            The value to assign to the name property of this FaultDomain.
        :type name: str

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

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

        :param availability_domain:
            The value to assign to the availability_domain property of this FaultDomain.
        :type availability_domain: str

        Ústr)ÚnameÚidÚcompartment_idÚavailability_domainr   r	   ZcompartmentIdZavailabilityDomainN)Zswagger_typesZattribute_mapÚ_nameÚ_idÚ_compartment_idÚ_availability_domain)ÚselfÚkwargs© r   úDusr/lib/python3.10/site-packages/oci/identity/models/fault_domain.pyÚ__init__   s   üü
zFaultDomain.__init__c                 C   ó   | j S )zŸ
        Gets the name of this FaultDomain.
        The name of the Fault Domain.


        :return: The name of this FaultDomain.
        :rtype: str
        ©r   ©r   r   r   r   r   =   ó   
zFaultDomain.namec                 C   ó
   || _ dS )z¢
        Sets the name of this FaultDomain.
        The name of the Fault Domain.


        :param name: The name of this FaultDomain.
        :type: str
        Nr   )r   r   r   r   r   r   I   ó   

c                 C   r   )z›
        Gets the id of this FaultDomain.
        The OCID of the Fault Domain.


        :return: The id of this FaultDomain.
        :rtype: str
        ©r   r   r   r   r   r	   U   r   zFaultDomain.idc                 C   r   )zœ
        Sets the id of this FaultDomain.
        The OCID of the Fault Domain.


        :param id: The id of this FaultDomain.
        :type: str
        Nr   )r   r	   r   r   r   r	   a   r   c                 C   r   )zí
        Gets the compartment_id of this FaultDomain.
        The OCID of the compartment. Currently only tenancy (root) compartment can be provided.


        :return: The compartment_id of this FaultDomain.
        :rtype: str
        ©r   r   r   r   r   r
   m   r   zFaultDomain.compartment_idc                 C   r   )zú
        Sets the compartment_id of this FaultDomain.
        The OCID of the compartment. Currently only tenancy (root) compartment can be provided.


        :param compartment_id: The compartment_id of this FaultDomain.
        :type: str
        Nr   )r   r
   r   r   r   r
   y   r   c                 C   r   )zâ
        Gets the availability_domain of this FaultDomain.
        The name of the availabilityDomain where the Fault Domain belongs.


        :return: The availability_domain of this FaultDomain.
        :rtype: str
        ©r   r   r   r   r   r   …   r   zFaultDomain.availability_domainc                 C   r   )zô
        Sets the availability_domain of this FaultDomain.
        The name of the availabilityDomain where the Fault Domain belongs.


        :param availability_domain: The availability_domain of this FaultDomain.
        :type: str
        Nr   )r   r   r   r   r   r   ‘   r   c                 C   s   t | ƒS ©N)r   r   r   r   r   Ú__repr__   s   zFaultDomain.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__    s   zFaultDomain.__eq__c                 C   s
   | |k S r   r   r!   r   r   r   Ú__ne__¦   s   
zFaultDomain.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Úpropertyr   Úsetterr	   r
   r   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   