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	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 )Ú
GetMessagez*
    A message consumed from a queue.
    c                 K   sP   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 GetMessage 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 GetMessage.
        :type id: int

        :param content:
            The value to assign to the content property of this GetMessage.
        :type content: str

        :param receipt:
            The value to assign to the receipt property of this GetMessage.
        :type receipt: str

        :param delivery_count:
            The value to assign to the delivery_count property of this GetMessage.
        :type delivery_count: int

        :param visible_after:
            The value to assign to the visible_after property of this GetMessage.
        :type visible_after: datetime

        :param expire_after:
            The value to assign to the expire_after property of this GetMessage.
        :type expire_after: datetime

        ÚintÚstrÚdatetime)ÚidÚcontentÚreceiptÚdelivery_countÚvisible_afterÚexpire_afterr
   r   r   ZdeliveryCountZvisibleAfterZexpireAfterN)Zswagger_typesZattribute_mapÚ_idÚ_contentÚ_receiptÚ_delivery_countÚ_visible_afterÚ_expire_after)ÚselfÚkwargs© r   ú@usr/lib/python3.10/site-packages/oci/queue/models/get_message.pyÚ__init__   s(   ú
ú	
zGetMessage.__init__c                 C   ó   | j S )a  
        **[Required]** Gets the id of this GetMessage.
        The id of the message - this is only used for tracing and debugging purposes and isn't used as a parameter in any request.


        :return: The id of this GetMessage.
        :rtype: int
        ©r   ©r   r   r   r   r
   I   ó   
zGetMessage.idc                 C   ó
   || _ dS )z÷
        Sets the id of this GetMessage.
        The id of the message - this is only used for tracing and debugging purposes and isn't used as a parameter in any request.


        :param id: The id of this GetMessage.
        :type: int
        Nr   )r   r
   r   r   r   r
   U   ó   

c                 C   r   )z¯
        **[Required]** Gets the content of this GetMessage.
        The content of the message


        :return: The content of this GetMessage.
        :rtype: str
        ©r   r   r   r   r   r   a   r   zGetMessage.contentc                 C   r   )z¦
        Sets the content of this GetMessage.
        The content of the message


        :param content: The content of this GetMessage.
        :type: str
        Nr!   )r   r   r   r   r   r   m   r    c                 C   r   )a0  
        **[Required]** Gets the receipt of this GetMessage.
        A receipt is a base64urlencode opaque token, uniquely representing a message.
        The receipt can be used to delete a message or update its visibility.


        :return: The receipt of this GetMessage.
        :rtype: str
        ©r   r   r   r   r   r   y   s   zGetMessage.receiptc                 C   r   )a'  
        Sets the receipt of this GetMessage.
        A receipt is a base64urlencode opaque token, uniquely representing a message.
        The receipt can be used to delete a message or update its visibility.


        :param receipt: The receipt of this GetMessage.
        :type: str
        Nr"   )r   r   r   r   r   r   †   s   
c                 C   r   )zã
        **[Required]** Gets the delivery_count of this GetMessage.
        The number of time the message has been delivered to a consumer.


        :return: The delivery_count of this GetMessage.
        :rtype: int
        ©r   r   r   r   r   r   “   r   zGetMessage.delivery_countc                 C   r   )zá
        Sets the delivery_count of this GetMessage.
        The number of time the message has been delivered to a consumer.


        :param delivery_count: The delivery_count of this GetMessage.
        :type: int
        Nr#   )r   r   r   r   r   r   Ÿ   r    c                 C   r   )a  
        **[Required]** Gets the visible_after of this GetMessage.
        The time after which the message will be visible to other consumers. An RFC3339 formatted datetime string


        :return: The visible_after of this GetMessage.
        :rtype: datetime
        ©r   r   r   r   r   r   «   r   zGetMessage.visible_afterc                 C   r   )a  
        Sets the visible_after of this GetMessage.
        The time after which the message will be visible to other consumers. An RFC3339 formatted datetime string


        :param visible_after: The visible_after of this GetMessage.
        :type: datetime
        Nr$   )r   r   r   r   r   r   ·   r    c                 C   r   )a  
        **[Required]** Gets the expire_after of this GetMessage.
        The time after which the message will be automatically deleted. An RFC3339 formatted datetime string


        :return: The expire_after of this GetMessage.
        :rtype: datetime
        ©r   r   r   r   r   r   Ã   r   zGetMessage.expire_afterc                 C   r   )a  
        Sets the expire_after of this GetMessage.
        The time after which the message will be automatically deleted. An RFC3339 formatted datetime string


        :param expire_after: The expire_after of this GetMessage.
        :type: datetime
        Nr%   )r   r   r   r   r   r   Ï   r    c                 C   s   t | ƒS ©N)r   r   r   r   r   Ú__repr__Û   s   zGetMessage.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__Þ   s   zGetMessage.__eq__c                 C   s
   | |k S r&   r   r)   r   r   r   Ú__ne__ä   s   
zGetMessage.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Úpropertyr
   Úsetterr   r   r   r   r   r'   r+   r,   r   r   r   r   r      s<    7











r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r   r   r   r   Ú<module>   s   