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	dd„ Z
dd„ Zdd„ ZdS )ÚStatsz7
    The stats for a queue or a dead letter queue.
    c                 K   s2   ddddœ| _ ddddœ| _d| _d| _d| _dS )a€  
        Initializes a new Stats object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param visible_messages:
            The value to assign to the visible_messages property of this Stats.
        :type visible_messages: int

        :param in_flight_messages:
            The value to assign to the in_flight_messages property of this Stats.
        :type in_flight_messages: int

        :param size_in_bytes:
            The value to assign to the size_in_bytes property of this Stats.
        :type size_in_bytes: int

        Úint)Úvisible_messagesÚin_flight_messagesÚsize_in_bytesZvisibleMessagesZinFlightMessagesZsizeInBytesN)Zswagger_typesZattribute_mapÚ_visible_messagesÚ_in_flight_messagesÚ_size_in_bytes)ÚselfÚkwargs© r   ú:usr/lib/python3.10/site-packages/oci/queue/models/stats.pyÚ__init__   s   ýý
zStats.__init__c                 C   ó   | j S )zø
        **[Required]** Gets the visible_messages of this Stats.
        The approximate number of visible messages (available for delivery) currently in the queue.


        :return: The visible_messages of this Stats.
        :rtype: int
        ©r   ©r   r   r   r   r   4   ó   
zStats.visible_messagesc                 C   ó
   || _ dS )zø
        Sets the visible_messages of this Stats.
        The approximate number of visible messages (available for delivery) currently in the queue.


        :param visible_messages: The visible_messages of this Stats.
        :type: int
        Nr   )r   r   r   r   r   r   @   ó   

c                 C   r   )a  
        **[Required]** Gets the in_flight_messages of this Stats.
        The approximate number of messages delivered to a consumer but not yet deleted and so unavailable for re-delivery.


        :return: The in_flight_messages of this Stats.
        :rtype: int
        ©r   r   r   r   r   r	   L   r   zStats.in_flight_messagesc                 C   r   )a  
        Sets the in_flight_messages of this Stats.
        The approximate number of messages delivered to a consumer but not yet deleted and so unavailable for re-delivery.


        :param in_flight_messages: The in_flight_messages of this Stats.
        :type: int
        Nr   )r   r	   r   r   r   r	   X   r   c                 C   r   )zô
        **[Required]** Gets the size_in_bytes of this Stats.
        The approximate size of the queue in bytes. Sum of the size of visible of in-flight messages.


        :return: The size_in_bytes of this Stats.
        :rtype: int
        ©r   r   r   r   r   r
   d   r   zStats.size_in_bytesc                 C   r   )zñ
        Sets the size_in_bytes of this Stats.
        The approximate size of the queue in bytes. Sum of the size of visible of in-flight messages.


        :param size_in_bytes: The size_in_bytes of this Stats.
        :type: int
        Nr   )r   r
   r   r   r   r
   p   r   c                 C   s   t | ƒS ©N)r   r   r   r   r   Ú__repr__|   s   zStats.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__   s   zStats.__eq__c                 C   s
   | |k S r   r   r   r   r   r   Ú__ne__…   s   
zStats.__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   