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 )JavaLicensez4
    Information about a license type for Java.
    OTNNFTC
RESTRICTEDc                 K   s2   dddd| _ dddd| _d| _d| _d| _dS )a;  
        Initializes a new JavaLicense object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param display_name:
            The value to assign to the display_name property of this JavaLicense.
        :type display_name: str

        :param license_type:
            The value to assign to the license_type property of this JavaLicense.
            Allowed values for this property are: "OTN", "NFTC", "RESTRICTED", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type license_type: str

        :param license_url:
            The value to assign to the license_url property of this JavaLicense.
        :type license_url: str

        str)display_namelicense_typelicense_urlZdisplayNameZlicenseTypeZ
licenseUrlN)Zswagger_typesZattribute_map_display_name_license_type_license_url)selfkwargs r   ?usr/lib/python3.10/site-packages/oci/jms/models/java_license.py__init__   s   
zJavaLicense.__init__c                 C      | j S )z
        **[Required]** Gets the display_name of this JavaLicense.
        Commonly used name for the license type.


        :return: The display_name of this JavaLicense.
        :rtype: str
        r   r   r   r   r   r   B      
zJavaLicense.display_namec                 C   
   || _ dS )z
        Sets the display_name of this JavaLicense.
        Commonly used name for the license type.


        :param display_name: The display_name of this JavaLicense.
        :type: str
        Nr   )r   r   r   r   r   r   N      

c                 C   r   )am  
        **[Required]** Gets the license_type of this JavaLicense.
        License Type

        Allowed values for this property are: "OTN", "NFTC", "RESTRICTED", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The license_type of this JavaLicense.
        :rtype: str
        )r   r   r   r   r   r   Z   s   zJavaLicense.license_typec                 C   s    g d}t ||sd}|| _dS )z
        Sets the license_type of this JavaLicense.
        License Type


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


c                 C   r   )z
        **[Required]** Gets the license_url of this JavaLicense.
        Publicly accessible license URL containing the detailed terms and conditions.


        :return: The license_url of this JavaLicense.
        :rtype: str
        r   r   r   r   r   r   x   r   zJavaLicense.license_urlc                 C   r   )z
        Sets the license_url of this JavaLicense.
        Publicly accessible license URL containing the detailed terms and conditions.


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