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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 )TcpConnectionzE
    TCP connection results.  All durations are in milliseconds.
    c                 K   s<   ddddd| _ ddddd| _d	| _d	| _d	| _d	| _d	S )
a  
        Initializes a new TcpConnection object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param address:
            The value to assign to the address property of this TcpConnection.
        :type address: str

        :param port:
            The value to assign to the port property of this TcpConnection.
        :type port: int

        :param connect_duration:
            The value to assign to the connect_duration property of this TcpConnection.
        :type connect_duration: float

        :param secure_connect_duration:
            The value to assign to the secure_connect_duration property of this TcpConnection.
        :type secure_connect_duration: float

        strintfloat)addressportconnect_durationsecure_connect_durationr
   r   ZconnectDurationZsecureConnectDurationN)Zswagger_typesZattribute_map_address_port_connect_duration_secure_connect_duration)selfkwargs r   Jusr/lib/python3.10/site-packages/oci/healthchecks/models/tcp_connection.py__init__   s   
zTcpConnection.__init__c                 C      | j S )z
        Gets the address of this TcpConnection.
        The connection IP address.


        :return: The address of this TcpConnection.
        :rtype: str
        r   r   r   r   r   r
   ;      
zTcpConnection.addressc                 C   
   || _ dS )z
        Sets the address of this TcpConnection.
        The connection IP address.


        :param address: The address of this TcpConnection.
        :type: str
        Nr   )r   r
   r   r   r   r
   G      

c                 C   r   )z
        Gets the port of this TcpConnection.
        The port.


        :return: The port of this TcpConnection.
        :rtype: int
        r   r   r   r   r   r   S   r   zTcpConnection.portc                 C   r   )z
        Sets the port of this TcpConnection.
        The port.


        :param port: The port of this TcpConnection.
        :type: int
        Nr   )r   r   r   r   r   r   _   r   c                 C   r   )z
        Gets the connect_duration of this TcpConnection.
        Total connect duration, calculated using `connectEnd` minus `connectStart`.


        :return: The connect_duration of this TcpConnection.
        :rtype: float
        r   r   r   r   r   r   k   r   zTcpConnection.connect_durationc                 C   r   )z
        Sets the connect_duration of this TcpConnection.
        Total connect duration, calculated using `connectEnd` minus `connectStart`.


        :param connect_duration: The connect_duration of this TcpConnection.
        :type: float
        Nr   )r   r   r   r   r   r   w   r   c                 C   r   )aM  
        Gets the secure_connect_duration of this TcpConnection.
        The duration to secure the connection.  This value will be zero for
        insecure connections.  Calculated using `connectEnd` minus `secureConnectionStart`.


        :return: The secure_connect_duration of this TcpConnection.
        :rtype: float
        r   r   r   r   r   r      s   z%TcpConnection.secure_connect_durationc                 C   r   )ac  
        Sets the secure_connect_duration of this TcpConnection.
        The duration to secure the connection.  This value will be zero for
        insecure connections.  Calculated using `connectEnd` minus `secureConnectionStart`.


        :param secure_connect_duration: The secure_connect_duration of this TcpConnection.
        :type: float
        Nr   )r   r   r   r   r   r      s   
c                 C   s   t | S N)r   r   r   r   r   __repr__   s   zTcpConnection.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r   otherr   r   r   __eq__   s   zTcpConnection.__eq__c                 C   s
   | |k S r    r   r#   r   r   r   __ne__   s   
zTcpConnection.__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   