o
    ɶdQ                     @   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	dd Z
dd Zdd ZdS )Queryz,
    The query to filter and aggregate.
    c                 K   s2   dddd| _ dddd| _d| _d| _d| _dS )at  
        Initializes a new Query object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

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

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

        :param query_definition:
            The value to assign to the query_definition property of this Query.
        :type query_definition: oci.usage_api.models.QueryDefinition

        strZQueryDefinition)idcompartment_idquery_definitionr   ZcompartmentIdZqueryDefinitionN)Zswagger_typesZattribute_map_id_compartment_id_query_definition)selfkwargs r   >usr/lib/python3.10/site-packages/oci/usage_api/models/query.py__init__   s   
zQuery.__init__c                 C      | j S )z
        **[Required]** Gets the id of this Query.
        The query OCID.


        :return: The id of this Query.
        :rtype: str
        r   r   r   r   r   r   4      
zQuery.idc                 C   
   || _ dS )z
        Sets the id of this Query.
        The query OCID.


        :param id: The id of this Query.
        :type: str
        Nr   )r   r   r   r   r   r   @      

c                 C   r   )z
        **[Required]** Gets the compartment_id of this Query.
        The compartment OCID.


        :return: The compartment_id of this Query.
        :rtype: str
        r   r   r   r   r   r	   L   r   zQuery.compartment_idc                 C   r   )z
        Sets the compartment_id of this Query.
        The compartment OCID.


        :param compartment_id: The compartment_id of this Query.
        :type: str
        Nr   )r   r	   r   r   r   r	   X   r   c                 C   r   )z
        **[Required]** Gets the query_definition of this Query.

        :return: The query_definition of this Query.
        :rtype: oci.usage_api.models.QueryDefinition
        r   r   r   r   r   r
   d   s   zQuery.query_definitionc                 C   r   )z
        Sets the query_definition of this Query.

        :param query_definition: The query_definition of this Query.
        :type: oci.usage_api.models.QueryDefinition
        Nr   )r   r
   r   r   r   r
   n   s   
c                 C   s   t | S N)r   r   r   r   r   __repr__x   s   zQuery.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r   otherr   r   r   __eq__{   s   zQuery.__eq__c                 C   s
   | |k S r   r   r   r   r   r   __ne__   s   
zQuery.__ne__N)__name__
__module____qualname____doc__r   propertyr   setterr	   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   