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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 )"ÚQueryDetailszx
    All the information surrounding a query, including the query statement,
    limits, consistency, and so forth.
    ÚEVENTUALÚABSOLUTEc                 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 QueryDetails object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

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

        :param statement:
            The value to assign to the statement property of this QueryDetails.
        :type statement: str

        :param is_prepared:
            The value to assign to the is_prepared property of this QueryDetails.
        :type is_prepared: bool

        :param consistency:
            The value to assign to the consistency property of this QueryDetails.
            Allowed values for this property are: "EVENTUAL", "ABSOLUTE"
        :type consistency: str

        :param max_read_in_k_bs:
            The value to assign to the max_read_in_k_bs property of this QueryDetails.
        :type max_read_in_k_bs: int

        :param variables:
            The value to assign to the variables property of this QueryDetails.
        :type variables: dict(str, object)

        :param timeout_in_ms:
            The value to assign to the timeout_in_ms property of this QueryDetails.
        :type timeout_in_ms: int

        ÚstrÚboolÚintzdict(str, object))Úcompartment_idÚ	statementÚis_preparedÚconsistencyÚmax_read_in_k_bsÚ	variablesÚtimeout_in_msZcompartmentIdr   Z
isPreparedr   ZmaxReadInKBsr   ZtimeoutInMsN)	Zswagger_typesZattribute_mapÚ_compartment_idÚ
_statementÚ_is_preparedÚ_consistencyÚ_max_read_in_k_bsÚ
_variablesÚ_timeout_in_ms)ÚselfÚkwargs© r   úBusr/lib/python3.10/site-packages/oci/nosql/models/query_details.pyÚ__init__   s.   $ùù

zQueryDetails.__init__c                 C   ó   | j S )zü
        **[Required]** Gets the compartment_id of this QueryDetails.
        Compartment OCID, to provide context for a table name in
        the given statement.


        :return: The compartment_id of this QueryDetails.
        :rtype: str
        ©r   ©r   r   r   r   r   Z   s   zQueryDetails.compartment_idc                 C   ó
   || _ dS )zú
        Sets the compartment_id of this QueryDetails.
        Compartment OCID, to provide context for a table name in
        the given statement.


        :param compartment_id: The compartment_id of this QueryDetails.
        :type: str
        Nr    )r   r   r   r   r   r   g   s   
c                 C   r   )zá
        **[Required]** Gets the statement of this QueryDetails.
        A NoSQL SQL query statement; or a Base64-encoded prepared statement.


        :return: The statement of this QueryDetails.
        :rtype: str
        ©r   r!   r   r   r   r   t   ó   
zQueryDetails.statementc                 C   r"   )zÚ
        Sets the statement of this QueryDetails.
        A NoSQL SQL query statement; or a Base64-encoded prepared statement.


        :param statement: The statement of this QueryDetails.
        :type: str
        Nr#   )r   r   r   r   r   r   €   ó   

c                 C   r   )zÂ
        Gets the is_prepared of this QueryDetails.
        If true, the statement is a prepared statement.


        :return: The is_prepared of this QueryDetails.
        :rtype: bool
        ©r   r!   r   r   r   r   Œ   r$   zQueryDetails.is_preparedc                 C   r"   )zÌ
        Sets the is_prepared of this QueryDetails.
        If true, the statement is a prepared statement.


        :param is_prepared: The is_prepared of this QueryDetails.
        :type: bool
        Nr&   )r   r   r   r   r   r   ˜   r%   c                 C   r   )a  
        Gets the consistency of this QueryDetails.
        Consistency requirement for a read operation.

        Allowed values for this property are: "EVENTUAL", "ABSOLUTE"


        :return: The consistency of this QueryDetails.
        :rtype: str
        )r   r!   r   r   r   r   ¤   s   zQueryDetails.consistencyc                 C   s*   ddg}t ||ƒstd |¡ƒ‚|| _dS )zÉ
        Sets the consistency of this QueryDetails.
        Consistency requirement for a read operation.


        :param consistency: The consistency of this QueryDetails.
        :type: str
        r   r   z;Invalid value for `consistency`, must be None or one of {0}N)r   Ú
ValueErrorÚformatr   )r   r   Zallowed_valuesr   r   r   r   ²   s   

þ
c                 C   r   )zâ
        Gets the max_read_in_k_bs of this QueryDetails.
        A limit on the total amount of data read during this operation, in KB.


        :return: The max_read_in_k_bs of this QueryDetails.
        :rtype: int
        ©r   r!   r   r   r   r   Ä   r$   zQueryDetails.max_read_in_k_bsc                 C   r"   )zñ
        Sets the max_read_in_k_bs of this QueryDetails.
        A limit on the total amount of data read during this operation, in KB.


        :param max_read_in_k_bs: The max_read_in_k_bs of this QueryDetails.
        :type: int
        Nr)   )r   r   r   r   r   r   Ð   r%   c                 C   r   )zÌ
        Gets the variables of this QueryDetails.
        A map of prepared statement variables to values.


        :return: The variables of this QueryDetails.
        :rtype: dict(str, object)
        ©r   r!   r   r   r   r   Ü   r$   zQueryDetails.variablesc                 C   r"   )zÔ
        Sets the variables of this QueryDetails.
        A map of prepared statement variables to values.


        :param variables: The variables of this QueryDetails.
        :type: dict(str, object)
        Nr*   )r   r   r   r   r   r   è   r%   c                 C   r   )z´
        Gets the timeout_in_ms of this QueryDetails.
        Timeout setting for the query.


        :return: The timeout_in_ms of this QueryDetails.
        :rtype: int
        ©r   r!   r   r   r   r   ô   r$   zQueryDetails.timeout_in_msc                 C   r"   )zÀ
        Sets the timeout_in_ms of this QueryDetails.
        Timeout setting for the query.


        :param timeout_in_ms: The timeout_in_ms of this QueryDetails.
        :type: int
        Nr+   )r   r   r   r   r   r      r%   c                 C   s   t | ƒS ©N)r   r!   r   r   r   Ú__repr__  s   zQueryDetails.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__  s   zQueryDetails.__eq__c                 C   s
   | |k S r,   r   r/   r   r   r   Ú__ne__  s   
zQueryDetails.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZCONSISTENCY_EVENTUALZCONSISTENCY_ABSOLUTEr   Úpropertyr   Úsetterr   r   r   r   r   r   r-   r1   r2   r   r   r   r   r      sH    ?













r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r   r   r   r   Ú<module>   s   