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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 )ÚConnectionDetailszj
    Connection details to connect to the database. HostName, protocol, and port should be specified.
    ÚTCPÚTCPSc                 K   s<   dddddœ| _ dddddœ| _d| _d| _d| _d| _dS )	a±  
        Initializes a new ConnectionDetails object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param host_name:
            The value to assign to the host_name property of this ConnectionDetails.
        :type host_name: str

        :param protocol:
            The value to assign to the protocol property of this ConnectionDetails.
            Allowed values for this property are: "TCP", "TCPS", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type protocol: str

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

        :param service_name:
            The value to assign to the service_name property of this ConnectionDetails.
        :type service_name: str

        ÚstrÚint)Ú	host_nameÚprotocolÚportÚservice_nameZhostNamer   r   ZserviceNameN)Zswagger_typesZattribute_mapÚ
_host_nameÚ	_protocolÚ_portÚ_service_name)ÚselfÚkwargs© r   úFusr/lib/python3.10/site-packages/oci/opsi/models/connection_details.pyÚ__init__   s   üü
zConnectionDetails.__init__c                 C   ó   | j S )a   
        **[Required]** Gets the host_name of this ConnectionDetails.
        Name of the listener host that will be used to create the connect string to the database.


        :return: The host_name of this ConnectionDetails.
        :rtype: str
        ©r   ©r   r   r   r   r   E   ó   
zConnectionDetails.host_namec                 C   ó
   || _ dS )zù
        Sets the host_name of this ConnectionDetails.
        Name of the listener host that will be used to create the connect string to the database.


        :param host_name: The host_name of this ConnectionDetails.
        :type: str
        Nr   )r   r   r   r   r   r   Q   ó   

c                 C   r   )a}  
        **[Required]** Gets the protocol of this ConnectionDetails.
        Protocol used for connection requests.

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


        :return: The protocol of this ConnectionDetails.
        :rtype: str
        )r   r   r   r   r   r   ]   s   zConnectionDetails.protocolc                 C   s    ddg}t ||ƒsd}|| _dS )zÃ
        Sets the protocol of this ConnectionDetails.
        Protocol used for connection requests.


        :param protocol: The protocol of this ConnectionDetails.
        :type: str
        r   r   ZUNKNOWN_ENUM_VALUEN)r   r   )r   r   Zallowed_valuesr   r   r   r   l   s   


c                 C   r   )zÏ
        **[Required]** Gets the port of this ConnectionDetails.
        Listener port number used for connection requests.


        :return: The port of this ConnectionDetails.
        :rtype: int
        ©r   r   r   r   r   r   {   r   zConnectionDetails.portc                 C   r   )zÃ
        Sets the port of this ConnectionDetails.
        Listener port number used for connection requests.


        :param port: The port of this ConnectionDetails.
        :type: int
        Nr   )r   r   r   r   r   r   ‡   r   c                 C   r   )zà
        **[Required]** Gets the service_name of this ConnectionDetails.
        Database service name used for connection requests.


        :return: The service_name of this ConnectionDetails.
        :rtype: str
        ©r   r   r   r   r   r   “   r   zConnectionDetails.service_namec                 C   r   )zÜ
        Sets the service_name of this ConnectionDetails.
        Database service name used for connection requests.


        :param service_name: The service_name of this ConnectionDetails.
        :type: str
        Nr   )r   r   r   r   r   r   Ÿ   r   c                 C   s   t | ƒS ©N)r   r   r   r   r   Ú__repr__«   s   zConnectionDetails.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__®   s   zConnectionDetails.__eq__c                 C   s
   | |k S r    r   r#   r   r   r   Ú__ne__´   s   
zConnectionDetails.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZPROTOCOL_TCPZPROTOCOL_TCPSr   Úpropertyr   Úsetterr   r   r   r!   r%   r&   r   r   r   r   r      s0    +







r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r   r   r   r   Ú<module>   s   