o
    ɶdO                     @   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
edd Zejdd Zdd Zdd Zdd ZdS )Fieldz
    Field information
    c                 K   sF   dddddd| _ dddd	d
d| _d| _d| _d| _d| _d| _dS )aY  
        Initializes a new Field object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param name:
            The value to assign to the name property of this Field.
        :type name: str

        :param is_required:
            The value to assign to the is_required property of this Field.
        :type is_required: bool

        :param format:
            The value to assign to the format property of this Field.
        :type format: oci.osp_gateway.models.Format

        :param label:
            The value to assign to the label property of this Field.
        :type label: oci.osp_gateway.models.Label

        :param language:
            The value to assign to the language property of this Field.
        :type language: str

        strboolZFormatZLabel)nameis_requiredformatlabellanguager	   Z
isRequiredr   r   r   N)Zswagger_typesZattribute_map_name_is_required_format_label	_language)selfkwargs r   @usr/lib/python3.10/site-packages/oci/osp_gateway/models/field.py__init__   s"   	
zField.__init__c                 C      | j S )z
        **[Required]** Gets the name of this Field.
        The field name


        :return: The name of this Field.
        :rtype: str
        r   r   r   r   r   r	   B      
z
Field.namec                 C   
   || _ dS )z
        Sets the name of this Field.
        The field name


        :param name: The name of this Field.
        :type: str
        Nr   )r   r	   r   r   r   r	   N      

c                 C   r   )z
        **[Required]** Gets the is_required of this Field.
        The given field is requeired or not


        :return: The is_required of this Field.
        :rtype: bool
        r   r   r   r   r   r
   Z   r   zField.is_requiredc                 C   r   )z
        Sets the is_required of this Field.
        The given field is requeired or not


        :param is_required: The is_required of this Field.
        :type: bool
        Nr   )r   r
   r   r   r   r
   f   r   c                 C   r   )z
        Gets the format of this Field.

        :return: The format of this Field.
        :rtype: oci.osp_gateway.models.Format
        r   r   r   r   r   r   r      zField.formatc                 C   r   )z
        Sets the format of this Field.

        :param format: The format of this Field.
        :type: oci.osp_gateway.models.Format
        Nr   )r   r   r   r   r   r   |      
c                 C   r   )z
        Gets the label of this Field.

        :return: The label of this Field.
        :rtype: oci.osp_gateway.models.Label
        r   r   r   r   r   r      r    zField.labelc                 C   r   )z
        Sets the label of this Field.

        :param label: The label of this Field.
        :type: oci.osp_gateway.models.Label
        Nr"   )r   r   r   r   r   r      r!   c                 C   r   )z
        Gets the language of this Field.
        Locale code (rfc4646 format) of a forced language (e.g.: jp addresses require jp always)


        :return: The language of this Field.
        :rtype: str
        r   r   r   r   r   r      r   zField.languagec                 C   r   )z
        Sets the language of this Field.
        Locale code (rfc4646 format) of a forced language (e.g.: jp addresses require jp always)


        :param language: The language of this Field.
        :type: str
        Nr#   )r   r   r   r   r   r      r   c                 C   s   t | S N)r   r   r   r   r   __repr__   s   zField.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r   otherr   r   r   __eq__   s   zField.__eq__c                 C   s
   | |k S r$   r   r'   r   r   r   __ne__   s   
zField.__ne__N)__name__
__module____qualname____doc__r   propertyr	   setterr
   r   r   r   r%   r)   r*   r   r   r   r   r      s4    0




	
	
	
	

r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r   r   r   r   <module>   s   