# coding: utf-8

"""
    vei_api

    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
"""


import pprint
import re  # noqa: F401

import six

from volcenginesdkcore.configuration import Configuration


class CreateIotLlmTokenRequest(object):
    """NOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    """

    """
    Attributes:
      swagger_types (dict): The key is attribute name
                            and the value is attribute type.
      attribute_map (dict): The key is attribute name
                            and the value is json key in definition.
    """
    swagger_types = {
        'available_devices': 'int',
        'available_online_devices': 'int',
        'instance_id': 'str',
        'instance_name': 'str',
        'instance_region': 'str',
        'instance_spec': 'str',
        'mqtt_broker': 'str',
        'password': 'str',
        'quota': 'QuotaForCreateIotLlmTokenInput',
        'tags': 'list[TagForCreateIotLlmTokenInput]',
        'username': 'str'
    }

    attribute_map = {
        'available_devices': 'available_devices',
        'available_online_devices': 'available_online_devices',
        'instance_id': 'instance_id',
        'instance_name': 'instance_name',
        'instance_region': 'instance_region',
        'instance_spec': 'instance_spec',
        'mqtt_broker': 'mqtt_broker',
        'password': 'password',
        'quota': 'quota',
        'tags': 'tags',
        'username': 'username'
    }

    def __init__(self, available_devices=None, available_online_devices=None, instance_id=None, instance_name=None, instance_region=None, instance_spec=None, mqtt_broker=None, password=None, quota=None, tags=None, username=None, _configuration=None):  # noqa: E501
        """CreateIotLlmTokenRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._available_devices = None
        self._available_online_devices = None
        self._instance_id = None
        self._instance_name = None
        self._instance_region = None
        self._instance_spec = None
        self._mqtt_broker = None
        self._password = None
        self._quota = None
        self._tags = None
        self._username = None
        self.discriminator = None

        self.available_devices = available_devices
        self.available_online_devices = available_online_devices
        self.instance_id = instance_id
        self.instance_name = instance_name
        self.instance_region = instance_region
        self.instance_spec = instance_spec
        self.mqtt_broker = mqtt_broker
        self.password = password
        if quota is not None:
            self.quota = quota
        if tags is not None:
            self.tags = tags
        self.username = username

    @property
    def available_devices(self):
        """Gets the available_devices of this CreateIotLlmTokenRequest.  # noqa: E501


        :return: The available_devices of this CreateIotLlmTokenRequest.  # noqa: E501
        :rtype: int
        """
        return self._available_devices

    @available_devices.setter
    def available_devices(self, available_devices):
        """Sets the available_devices of this CreateIotLlmTokenRequest.


        :param available_devices: The available_devices of this CreateIotLlmTokenRequest.  # noqa: E501
        :type: int
        """
        if self._configuration.client_side_validation and available_devices is None:
            raise ValueError("Invalid value for `available_devices`, must not be `None`")  # noqa: E501

        self._available_devices = available_devices

    @property
    def available_online_devices(self):
        """Gets the available_online_devices of this CreateIotLlmTokenRequest.  # noqa: E501


        :return: The available_online_devices of this CreateIotLlmTokenRequest.  # noqa: E501
        :rtype: int
        """
        return self._available_online_devices

    @available_online_devices.setter
    def available_online_devices(self, available_online_devices):
        """Sets the available_online_devices of this CreateIotLlmTokenRequest.


        :param available_online_devices: The available_online_devices of this CreateIotLlmTokenRequest.  # noqa: E501
        :type: int
        """
        if self._configuration.client_side_validation and available_online_devices is None:
            raise ValueError("Invalid value for `available_online_devices`, must not be `None`")  # noqa: E501

        self._available_online_devices = available_online_devices

    @property
    def instance_id(self):
        """Gets the instance_id of this CreateIotLlmTokenRequest.  # noqa: E501


        :return: The instance_id of this CreateIotLlmTokenRequest.  # noqa: E501
        :rtype: str
        """
        return self._instance_id

    @instance_id.setter
    def instance_id(self, instance_id):
        """Sets the instance_id of this CreateIotLlmTokenRequest.


        :param instance_id: The instance_id of this CreateIotLlmTokenRequest.  # noqa: E501
        :type: str
        """
        if self._configuration.client_side_validation and instance_id is None:
            raise ValueError("Invalid value for `instance_id`, must not be `None`")  # noqa: E501

        self._instance_id = instance_id

    @property
    def instance_name(self):
        """Gets the instance_name of this CreateIotLlmTokenRequest.  # noqa: E501


        :return: The instance_name of this CreateIotLlmTokenRequest.  # noqa: E501
        :rtype: str
        """
        return self._instance_name

    @instance_name.setter
    def instance_name(self, instance_name):
        """Sets the instance_name of this CreateIotLlmTokenRequest.


        :param instance_name: The instance_name of this CreateIotLlmTokenRequest.  # noqa: E501
        :type: str
        """
        if self._configuration.client_side_validation and instance_name is None:
            raise ValueError("Invalid value for `instance_name`, must not be `None`")  # noqa: E501

        self._instance_name = instance_name

    @property
    def instance_region(self):
        """Gets the instance_region of this CreateIotLlmTokenRequest.  # noqa: E501


        :return: The instance_region of this CreateIotLlmTokenRequest.  # noqa: E501
        :rtype: str
        """
        return self._instance_region

    @instance_region.setter
    def instance_region(self, instance_region):
        """Sets the instance_region of this CreateIotLlmTokenRequest.


        :param instance_region: The instance_region of this CreateIotLlmTokenRequest.  # noqa: E501
        :type: str
        """
        if self._configuration.client_side_validation and instance_region is None:
            raise ValueError("Invalid value for `instance_region`, must not be `None`")  # noqa: E501

        self._instance_region = instance_region

    @property
    def instance_spec(self):
        """Gets the instance_spec of this CreateIotLlmTokenRequest.  # noqa: E501


        :return: The instance_spec of this CreateIotLlmTokenRequest.  # noqa: E501
        :rtype: str
        """
        return self._instance_spec

    @instance_spec.setter
    def instance_spec(self, instance_spec):
        """Sets the instance_spec of this CreateIotLlmTokenRequest.


        :param instance_spec: The instance_spec of this CreateIotLlmTokenRequest.  # noqa: E501
        :type: str
        """
        if self._configuration.client_side_validation and instance_spec is None:
            raise ValueError("Invalid value for `instance_spec`, must not be `None`")  # noqa: E501

        self._instance_spec = instance_spec

    @property
    def mqtt_broker(self):
        """Gets the mqtt_broker of this CreateIotLlmTokenRequest.  # noqa: E501


        :return: The mqtt_broker of this CreateIotLlmTokenRequest.  # noqa: E501
        :rtype: str
        """
        return self._mqtt_broker

    @mqtt_broker.setter
    def mqtt_broker(self, mqtt_broker):
        """Sets the mqtt_broker of this CreateIotLlmTokenRequest.


        :param mqtt_broker: The mqtt_broker of this CreateIotLlmTokenRequest.  # noqa: E501
        :type: str
        """
        if self._configuration.client_side_validation and mqtt_broker is None:
            raise ValueError("Invalid value for `mqtt_broker`, must not be `None`")  # noqa: E501

        self._mqtt_broker = mqtt_broker

    @property
    def password(self):
        """Gets the password of this CreateIotLlmTokenRequest.  # noqa: E501


        :return: The password of this CreateIotLlmTokenRequest.  # noqa: E501
        :rtype: str
        """
        return self._password

    @password.setter
    def password(self, password):
        """Sets the password of this CreateIotLlmTokenRequest.


        :param password: The password of this CreateIotLlmTokenRequest.  # noqa: E501
        :type: str
        """
        if self._configuration.client_side_validation and password is None:
            raise ValueError("Invalid value for `password`, must not be `None`")  # noqa: E501

        self._password = password

    @property
    def quota(self):
        """Gets the quota of this CreateIotLlmTokenRequest.  # noqa: E501


        :return: The quota of this CreateIotLlmTokenRequest.  # noqa: E501
        :rtype: QuotaForCreateIotLlmTokenInput
        """
        return self._quota

    @quota.setter
    def quota(self, quota):
        """Sets the quota of this CreateIotLlmTokenRequest.


        :param quota: The quota of this CreateIotLlmTokenRequest.  # noqa: E501
        :type: QuotaForCreateIotLlmTokenInput
        """

        self._quota = quota

    @property
    def tags(self):
        """Gets the tags of this CreateIotLlmTokenRequest.  # noqa: E501


        :return: The tags of this CreateIotLlmTokenRequest.  # noqa: E501
        :rtype: list[TagForCreateIotLlmTokenInput]
        """
        return self._tags

    @tags.setter
    def tags(self, tags):
        """Sets the tags of this CreateIotLlmTokenRequest.


        :param tags: The tags of this CreateIotLlmTokenRequest.  # noqa: E501
        :type: list[TagForCreateIotLlmTokenInput]
        """

        self._tags = tags

    @property
    def username(self):
        """Gets the username of this CreateIotLlmTokenRequest.  # noqa: E501


        :return: The username of this CreateIotLlmTokenRequest.  # noqa: E501
        :rtype: str
        """
        return self._username

    @username.setter
    def username(self, username):
        """Sets the username of this CreateIotLlmTokenRequest.


        :param username: The username of this CreateIotLlmTokenRequest.  # noqa: E501
        :type: str
        """
        if self._configuration.client_side_validation and username is None:
            raise ValueError("Invalid value for `username`, must not be `None`")  # noqa: E501

        self._username = username

    def to_dict(self):
        """Returns the model properties as a dict"""
        result = {}

        for attr, _ in six.iteritems(self.swagger_types):
            value = getattr(self, attr)
            if isinstance(value, list):
                result[attr] = list(map(
                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
                    value
                ))
            elif hasattr(value, "to_dict"):
                result[attr] = value.to_dict()
            elif isinstance(value, dict):
                result[attr] = dict(map(
                    lambda item: (item[0], item[1].to_dict())
                    if hasattr(item[1], "to_dict") else item,
                    value.items()
                ))
            else:
                result[attr] = value
        if issubclass(CreateIotLlmTokenRequest, dict):
            for key, value in self.items():
                result[key] = value

        return result

    def to_str(self):
        """Returns the string representation of the model"""
        return pprint.pformat(self.to_dict())

    def __repr__(self):
        """For `print` and `pprint`"""
        return self.to_str()

    def __eq__(self, other):
        """Returns true if both objects are equal"""
        if not isinstance(other, CreateIotLlmTokenRequest):
            return False

        return self.to_dict() == other.to_dict()

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        if not isinstance(other, CreateIotLlmTokenRequest):
            return True

        return self.to_dict() != other.to_dict()
