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
dd Zdd Zdd ZdS )PartitionReservationzA
    Represents the state of a single partition reservation.
    c                 K   s<   ddddd| _ ddddd| _d	| _d	| _d	| _d	| _d	S )
a`  
        Initializes a new PartitionReservation object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param partition:
            The value to assign to the partition property of this PartitionReservation.
        :type partition: str

        :param committed_offset:
            The value to assign to the committed_offset property of this PartitionReservation.
        :type committed_offset: int

        :param reserved_instance:
            The value to assign to the reserved_instance property of this PartitionReservation.
        :type reserved_instance: str

        :param time_reserved_until:
            The value to assign to the time_reserved_until property of this PartitionReservation.
        :type time_reserved_until: datetime

        strintdatetime)	partitioncommitted_offsetreserved_instancetime_reserved_untilr
   ZcommittedOffsetZreservedInstanceZtimeReservedUntilN)Zswagger_typesZattribute_map
_partition_committed_offset_reserved_instance_time_reserved_until)selfkwargs r   Nusr/lib/python3.10/site-packages/oci/streaming/models/partition_reservation.py__init__   s   
zPartitionReservation.__init__c                 C      | j S )z
        Gets the partition of this PartitionReservation.
        The partition for which the reservation applies.


        :return: The partition of this PartitionReservation.
        :rtype: str
        r   r   r   r   r   r
   ;      
zPartitionReservation.partitionc                 C   
   || _ dS )z
        Sets the partition of this PartitionReservation.
        The partition for which the reservation applies.


        :param partition: The partition of this PartitionReservation.
        :type: str
        Nr   )r   r
   r   r   r   r
   G      

c                 C   r   )z
        Gets the committed_offset of this PartitionReservation.
        The latest offset which has been committed for this partition.


        :return: The committed_offset of this PartitionReservation.
        :rtype: int
        r   r   r   r   r   r   S   r   z%PartitionReservation.committed_offsetc                 C   r   )z
        Sets the committed_offset of this PartitionReservation.
        The latest offset which has been committed for this partition.


        :param committed_offset: The committed_offset of this PartitionReservation.
        :type: int
        Nr   )r   r   r   r   r   r   _   r   c                 C   r   )z
        Gets the reserved_instance of this PartitionReservation.
        The consumer instance which currently has the partition reserved.


        :return: The reserved_instance of this PartitionReservation.
        :rtype: str
        r   r   r   r   r   r   k   r   z&PartitionReservation.reserved_instancec                 C   r   )z
        Sets the reserved_instance of this PartitionReservation.
        The consumer instance which currently has the partition reserved.


        :param reserved_instance: The reserved_instance of this PartitionReservation.
        :type: str
        Nr   )r   r   r   r   r   r   w   r   c                 C   r   )z
        Gets the time_reserved_until of this PartitionReservation.
        A timestamp when the current reservation expires.


        :return: The time_reserved_until of this PartitionReservation.
        :rtype: datetime
        r   r   r   r   r   r      r   z(PartitionReservation.time_reserved_untilc                 C   r   )z
        Sets the time_reserved_until of this PartitionReservation.
        A timestamp when the current reservation expires.


        :param time_reserved_until: The time_reserved_until of this PartitionReservation.
        :type: datetime
        Nr   )r   r   r   r   r   r      r   c                 C   s   t | S N)r   r   r   r   r   __repr__   s   zPartitionReservation.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r   otherr   r   r   __eq__   s   zPartitionReservation.__eq__c                 C   s
   | |k S r    r   r#   r   r   r   __ne__   s   
zPartitionReservation.__ne__N)__name__
__module____qualname____doc__r   propertyr
   setterr   r   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   