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 )KafkaSettingsz5
    Settings for the Kafka compatibility layer.
    c                 K   s<   ddddd| _ ddddd| _d	| _d	| _d	| _d	| _d	S )
ac  
        Initializes a new KafkaSettings object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param bootstrap_servers:
            The value to assign to the bootstrap_servers property of this KafkaSettings.
        :type bootstrap_servers: str

        :param auto_create_topics_enable:
            The value to assign to the auto_create_topics_enable property of this KafkaSettings.
        :type auto_create_topics_enable: bool

        :param log_retention_hours:
            The value to assign to the log_retention_hours property of this KafkaSettings.
        :type log_retention_hours: int

        :param num_partitions:
            The value to assign to the num_partitions property of this KafkaSettings.
        :type num_partitions: int

        strboolint)bootstrap_serversauto_create_topics_enablelog_retention_hoursnum_partitionsZbootstrapServersZautoCreateTopicsEnableZlogRetentionHoursZnumPartitionsN)Zswagger_typesZattribute_map_bootstrap_servers_auto_create_topics_enable_log_retention_hours_num_partitions)selfkwargs r   Gusr/lib/python3.10/site-packages/oci/streaming/models/kafka_settings.py__init__   s   
zKafkaSettings.__init__c                 C      | j S )z
        Gets the bootstrap_servers of this KafkaSettings.
        Bootstrap servers.


        :return: The bootstrap_servers of this KafkaSettings.
        :rtype: str
        r   r   r   r   r   r
   ;      
zKafkaSettings.bootstrap_serversc                 C   
   || _ dS )z
        Sets the bootstrap_servers of this KafkaSettings.
        Bootstrap servers.


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

c                 C   r   )z
        Gets the auto_create_topics_enable of this KafkaSettings.
        Enable auto creation of topic on the server.


        :return: The auto_create_topics_enable of this KafkaSettings.
        :rtype: bool
        r   r   r   r   r   r   S   r   z'KafkaSettings.auto_create_topics_enablec                 C   r   )z
        Sets the auto_create_topics_enable of this KafkaSettings.
        Enable auto creation of topic on the server.


        :param auto_create_topics_enable: The auto_create_topics_enable of this KafkaSettings.
        :type: bool
        Nr   )r   r   r   r   r   r   _   r   c                 C   r   )z
        Gets the log_retention_hours of this KafkaSettings.
        The number of hours to keep a log file before deleting it (in hours).


        :return: The log_retention_hours of this KafkaSettings.
        :rtype: int
        r   r   r   r   r   r   k   r   z!KafkaSettings.log_retention_hoursc                 C   r   )z
        Sets the log_retention_hours of this KafkaSettings.
        The number of hours to keep a log file before deleting it (in hours).


        :param log_retention_hours: The log_retention_hours of this KafkaSettings.
        :type: int
        Nr   )r   r   r   r   r   r   w   r   c                 C   r   )z
        Gets the num_partitions of this KafkaSettings.
        The default number of log partitions per topic.


        :return: The num_partitions of this KafkaSettings.
        :rtype: int
        r   r   r   r   r   r      r   zKafkaSettings.num_partitionsc                 C   r   )z
        Sets the num_partitions of this KafkaSettings.
        The default number of log partitions per topic.


        :param num_partitions: The num_partitions of this KafkaSettings.
        :type: int
        Nr   )r   r   r   r   r   r      r   c                 C   s   t | S N)r   r   r   r   r   __repr__   s   zKafkaSettings.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r   otherr   r   r   __eq__   s   zKafkaSettings.__eq__c                 C   s
   | |k S r    r   r#   r   r   r   __ne__   s   
zKafkaSettings.__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   