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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 )Messagez#
    The details of a message.
    ERRORWARNINGINFOc                 K   s2   dddd| _ dddd| _d| _d| _d| _dS )a  
        Initializes a new Message object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param type:
            The value to assign to the type property of this Message.
            Allowed values for this property are: "ERROR", "WARNING", "INFO", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type type: str

        :param code:
            The value to assign to the code property of this Message.
        :type code: str

        :param message:
            The value to assign to the message property of this Message.
        :type message: str

        str)typecodemessager   r   r   N)Zswagger_typesZattribute_map_type_code_message)selfkwargs r   Gusr/lib/python3.10/site-packages/oci/data_integration/models/message.py__init__   s   
zMessage.__init__c                 C      | j S )av  
        **[Required]** Gets the type of this Message.
        The type of message (error, warning, or info).

        Allowed values for this property are: "ERROR", "WARNING", "INFO", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The type of this Message.
        :rtype: str
        )r   r   r   r   r   r   B   s   zMessage.typec                 C   s    g d}t ||sd}|| _dS )z
        Sets the type of this Message.
        The type of message (error, warning, or info).


        :param type: The type of this Message.
        :type: str
        )r   r   r	   ZUNKNOWN_ENUM_VALUEN)r   r   )r   r   Zallowed_valuesr   r   r   r   Q   s   


c                 C   r   )z
        **[Required]** Gets the code of this Message.
        The message code.


        :return: The code of this Message.
        :rtype: str
        r   r   r   r   r   r   `      
zMessage.codec                 C   
   || _ dS )z
        Sets the code of this Message.
        The message code.


        :param code: The code of this Message.
        :type: str
        Nr   )r   r   r   r   r   r   l      

c                 C   r   )z
        **[Required]** Gets the message of this Message.
        The message text.


        :return: The message of this Message.
        :rtype: str
        r   r   r   r   r   r   x   r   zMessage.messagec                 C   r   )z
        Sets the message of this Message.
        The message text.


        :param message: The message of this Message.
        :type: str
        Nr   )r   r   r   r   r   r      r   c                 C   s   t | S N)r   r   r   r   r   __repr__   s   zMessage.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r   otherr   r   r   __eq__   s   zMessage.__eq__c                 C   s
   | |k S r   r   r    r   r   r   __ne__   s   
zMessage.__ne__N)__name__
__module____qualname____doc__Z
TYPE_ERRORZTYPE_WARNINGZ	TYPE_INFOr   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   