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                   @   sd   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d
d„ Z	dd„ Z
dd„ ZdS )ÚDNSz%
    The DNS resolution results.
    c                 K   s(   dddœ| _ dddœ| _d| _d| _dS )aì  
        Initializes a new DNS object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param domain_lookup_duration:
            The value to assign to the domain_lookup_duration property of this DNS.
        :type domain_lookup_duration: float

        :param addresses:
            The value to assign to the addresses property of this DNS.
        :type addresses: list[str]

        Úfloatz	list[str])Údomain_lookup_durationÚ	addressesZdomainLookupDurationr	   N)Zswagger_typesZattribute_mapÚ_domain_lookup_durationÚ
_addresses)ÚselfÚkwargs© r   ú?usr/lib/python3.10/site-packages/oci/healthchecks/models/dns.pyÚ__init__   s   þþ
zDNS.__init__c                 C   ó   | j S )a  
        Gets the domain_lookup_duration of this DNS.
        Total DNS resolution duration, in milliseconds. Calculated using `domainLookupEnd`
        minus `domainLookupStart`.


        :return: The domain_lookup_duration of this DNS.
        :rtype: float
        ©r
   ©r   r   r   r   r   -   s   zDNS.domain_lookup_durationc                 C   ó
   || _ dS )a"  
        Sets the domain_lookup_duration of this DNS.
        Total DNS resolution duration, in milliseconds. Calculated using `domainLookupEnd`
        minus `domainLookupStart`.


        :param domain_lookup_duration: The domain_lookup_duration of this DNS.
        :type: float
        Nr   )r   r   r   r   r   r   :   s   
c                 C   r   )z«
        Gets the addresses of this DNS.
        The addresses returned by DNS resolution.


        :return: The addresses of this DNS.
        :rtype: list[str]
        ©r   r   r   r   r   r	   G   s   
zDNS.addressesc                 C   r   )z³
        Sets the addresses of this DNS.
        The addresses returned by DNS resolution.


        :param addresses: The addresses of this DNS.
        :type: list[str]
        Nr   )r   r	   r   r   r   r	   S   s   

c                 C   s   t | ƒS ©N)r   r   r   r   r   Ú__repr___   s   zDNS.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__b   s   z
DNS.__eq__c                 C   s
   | |k S r   r   r   r   r   r   Ú__ne__h   s   
z
DNS.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Ú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   