ruạṛ
a ���f) � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s~ e Zd ZdZdd� Zedd� �Zejdd� �Zedd� �Zejd d� �Zed d� �Z e jdd� �Z d d� Z dd� Zdd� ZdS )�Statsz7 The stats for a queue or a dead letter queue. c K s2 dddd�| _ dddd�| _d| _d| _d| _dS )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_bytesZvisibleMessagesZinFlightMessagesZsizeInBytesN)Z swagger_typesZ attribute_map�_visible_messages�_in_flight_messages�_size_in_bytes)�self�kwargs� r �:/usr/lib/python3.9/site-packages/oci/queue/models/stats.py�__init__ s ��zStats.__init__c C s | 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 s zStats.visible_messagesc C s || _ dS )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 @ s c C s | j S )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 s zStats.in_flight_messagesc C s || _ dS )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 s c C s | j S )z� **[Required]** Gets the size_in_bytes of this Stats. The approximate size of the queue in bytes. Sum of the size of visible and in-flight messages. :return: The size_in_bytes of this Stats. :rtype: int �r r r r r r d s zStats.size_in_bytesc C s || _ dS )z� Sets the size_in_bytes of this Stats. The approximate size of the queue in bytes. Sum of the size of visible and in-flight messages. :param size_in_bytes: The size_in_bytes of this Stats. :type: int Nr )r r r r r r p s c C s t | �S �N)r r r r r �__repr__| s zStats.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__ s zStats.__eq__c C s | |k S r r r r r r �__ne__� s zStats.__ne__N) �__name__� __module__�__qualname__�__doc__r �propertyr �setterr r r r r r r r r r s"