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 )ÚGroupzs
    Represents the current state of a consumer group, including partition reservations and committed offsets.
    c                 K   s2   ddddœ| _ ddddœ| _d| _d| _d| _dS )a|  
        Initializes a new Group object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param stream_id:
            The value to assign to the stream_id property of this Group.
        :type stream_id: str

        :param group_name:
            The value to assign to the group_name property of this Group.
        :type group_name: str

        :param reservations:
            The value to assign to the reservations property of this Group.
        :type reservations: list[oci.streaming.models.PartitionReservation]

        Ústrzlist[PartitionReservation])Ú	stream_idÚ
group_nameÚreservationsZstreamIdZ	groupNamer
   N)Zswagger_typesZattribute_mapÚ
_stream_idÚ_group_nameÚ_reservations)ÚselfÚkwargs© r   ú>usr/lib/python3.10/site-packages/oci/streaming/models/group.pyÚ__init__   s   ýý
zGroup.__init__c                 C   ó   | j S )z·
        **[Required]** Gets the stream_id of this Group.
        The streamId for which the group exists.


        :return: The stream_id of this Group.
        :rtype: str
        ©r   ©r   r   r   r   r   4   ó   
zGroup.stream_idc                 C   ó
   || _ dS )z°
        Sets the stream_id of this Group.
        The streamId for which the group exists.


        :param stream_id: The stream_id of this Group.
        :type: str
        Nr   )r   r   r   r   r   r   @   ó   

c                 C   r   )z°
        **[Required]** Gets the group_name of this Group.
        The name of the consumer group.


        :return: The group_name of this Group.
        :rtype: str
        ©r   r   r   r   r   r	   L   r   zGroup.group_namec                 C   r   )zª
        Sets the group_name of this Group.
        The name of the consumer group.


        :param group_name: The group_name of this Group.
        :type: str
        Nr   )r   r	   r   r   r   r	   X   r   c                 C   r   )zä
        Gets the reservations of this Group.
        An array of the partition reservations of a group.


        :return: The reservations of this Group.
        :rtype: list[oci.streaming.models.PartitionReservation]
        ©r   r   r   r   r   r
   d   r   zGroup.reservationsc                 C   r   )zï
        Sets the reservations of this Group.
        An array of the partition reservations of a group.


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