
    ~iy                     J    d Z ddlZddlZddlZddlmZ  G d de          ZdS )z
    bmq

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501

    OpenAPI spec version: common-version
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
    N)Configurationc                   h   e Zd ZdZ	 ddddddZddddd	dZddZed             Zej	        d             Zed             Z
e
j	        d             Z
ed             Zej	        d             Zed             Zej	        d             Zed             Zej	        d             Zd Zd Zd Zd Zd Zd
S )CreateTopicRequestzsNOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    strint)descriptioninstance_id
partitions	retentiontopicDescription
InstanceId
Partitions	RetentionTopicNc                     |t                      }|| _        d| _        d| _        d| _        d| _        d| _        d| _        ||| _        || _	        || _
        || _        || _        dS )z/CreateTopicRequest - a model defined in SwaggerN)r   _configuration_description_instance_id_partitions
_retention_topicdiscriminatorr   r	   r
   r   r   )selfr   r	   r
   r   r   r   s          u/root/.openclaw/workspace/.venvs/ark-sdk/lib/python3.11/site-packages/volcenginesdkbmq/models/create_topic_request.py__init__zCreateTopicRequest.__init__3   sv    !*__N,  !"*D&$"


    c                     | j         S )zGets the description of this CreateTopicRequest.  # noqa: E501


        :return: The description of this CreateTopicRequest.  # noqa: E501
        :rtype: str
        )r   r   s    r   r   zCreateTopicRequest.descriptionG          r   c                 t    | j         j        r$|"t          |          dk    rt          d          || _        dS )zSets the description of this CreateTopicRequest.


        :param description: The description of this CreateTopicRequest.  # noqa: E501
        :type: str
        N   zKInvalid value for `description`, length must be less than or equal to `255`)r   client_side_validationlen
ValueErrorr   )r   r   s     r   r   zCreateTopicRequest.descriptionQ   sH     6 	l'C,<,<s,B,Bjkkk'r   c                     | j         S )zGets the instance_id of this CreateTopicRequest.  # noqa: E501


        :return: The instance_id of this CreateTopicRequest.  # noqa: E501
        :rtype: str
        )r   r   s    r   r	   zCreateTopicRequest.instance_id_   r    r   c                 N    | j         j        r|t          d          || _        dS )zSets the instance_id of this CreateTopicRequest.


        :param instance_id: The instance_id of this CreateTopicRequest.  # noqa: E501
        :type: str
        Nz3Invalid value for `instance_id`, must not be `None`)r   r#   r%   r   )r   r	   s     r   r	   zCreateTopicRequest.instance_idi   s5     5 	T+:MRSSS'r   c                     | j         S )zGets the partitions of this CreateTopicRequest.  # noqa: E501


        :return: The partitions of this CreateTopicRequest.  # noqa: E501
        :rtype: int
        )r   r   s    r   r
   zCreateTopicRequest.partitionsv   s     r   c                 N    | j         j        r|t          d          || _        dS )zSets the partitions of this CreateTopicRequest.


        :param partitions: The partitions of this CreateTopicRequest.  # noqa: E501
        :type: int
        Nz2Invalid value for `partitions`, must not be `None`)r   r#   r%   r   )r   r
   s     r   r
   zCreateTopicRequest.partitions   s5     5 	S*:LQRRR%r   c                     | j         S )zGets the retention of this CreateTopicRequest.  # noqa: E501


        :return: The retention of this CreateTopicRequest.  # noqa: E501
        :rtype: int
        )r   r   s    r   r   zCreateTopicRequest.retention   s     r   c                     | j         j        r|t          d          | j         j        r||dk    rt          d          || _        dS )zSets the retention of this CreateTopicRequest.


        :param retention: The retention of this CreateTopicRequest.  # noqa: E501
        :type: int
        Nz1Invalid value for `retention`, must not be `None`iP  zJInvalid value for `retention`, must be a value less than or equal to `336`)r   r#   r%   r   )r   r   s     r   r   zCreateTopicRequest.retention   s^     5 	R):KPQQQ6 	k%)c//ijjj#r   c                     | j         S )zGets the topic of this CreateTopicRequest.  # noqa: E501


        :return: The topic of this CreateTopicRequest.  # noqa: E501
        :rtype: str
        )r   r   s    r   r   zCreateTopicRequest.topic   s     {r   c                    | j         j        r|t          d          | j         j        r$|"t          |          dk    rt          d          | j         j        r$|"t          |          dk     rt          d          || _        dS )zSets the topic of this CreateTopicRequest.


        :param topic: The topic of this CreateTopicRequest.  # noqa: E501
        :type: str
        Nz-Invalid value for `topic`, must not be `None`   zEInvalid value for `topic`, length must be less than or equal to `128`   zFInvalid value for `topic`, length must be greater than or equal to `3`)r   r#   r%   r$   r   )r   r   s     r   r   zCreateTopicRequest.topic   s     5 	N%-LMMM6 	f!c%jj3&6&6deee6 	g!c%jj1nnefffr   c                 4   i }t          j        | j                  D ]\  }}t          | |          }t	          |t
                    r"t          t          d |                    ||<   Lt          |d          r|                                ||<   tt	          |t                    r4t          t          d |
                                                    ||<   |||<   t          t          t                    r| 
                                D ]
\  }}|||<   |S )z&Returns the model properties as a dictc                 N    t          | d          r|                                 n| S )Nto_dicthasattrr2   )xs    r   <lambda>z,CreateTopicRequest.to_dict.<locals>.<lambda>   s!    WQ	-B-BIaiikkk r   r2   c                 v    t          | d         d          r"| d         | d                                         fn| S )N   r2   r   r3   )items    r   r6   z,CreateTopicRequest.to_dict.<locals>.<lambda>   s<    tAw	22"=$q'47??+<+<!=!=8< r   )six	iteritemsswagger_typesgetattr
isinstancelistmapr4   r2   dictitems
issubclassr   )r   resultattr_valuekeys         r   r2   zCreateTopicRequest.to_dict   s,   }T%788 	% 	%GD!D$''E%&& %#CII% %    t 	** 	%$}}tE4(( %#C= =KKMM% %    t  %t($// 	$"jjll $ $
U#sr   c                 N    t          j        |                                           S )z.Returns the string representation of the model)pprintpformatr2   r   s    r   to_strzCreateTopicRequest.to_str   s    ~dllnn---r   c                 *    |                                  S )zFor `print` and `pprint`)rL   r   s    r   __repr__zCreateTopicRequest.__repr__   s    {{}}r   c                     t          |t                    sdS |                                 |                                k    S )z&Returns true if both objects are equalFr>   r   r2   r   others     r   __eq__zCreateTopicRequest.__eq__   s5    %!344 	5||~~00r   c                     t          |t                    sdS |                                 |                                k    S )z*Returns true if both objects are not equalTrP   rQ   s     r   __ne__zCreateTopicRequest.__ne__   s5    %!344 	4||~~00r   )NNNNNN)__name__
__module____qualname____doc__r<   attribute_mapr   propertyr   setterr	   r
   r   r   r2   rL   rN   rS   rU    r   r   r   r      s        
  M %#"  M   ( ! ! X! ( ( ( ! ! X! 
( 
( 
(     X  
& 
& 
&   X $ $ $   X \  \$  6. . .  1 1 11 1 1 1 1r   r   )rY   rJ   rer:   volcenginesdkcore.configurationr   objectr   r]   r   r   <module>ra      s|      				 



 9 9 9 9 9 9]1 ]1 ]1 ]1 ]1 ]1 ]1 ]1 ]1 ]1r   