# 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 CreateAIGatewayModelRequest(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 = {
        'category': 'int',
        'model': 'str',
        'name': 'str',
        'properties': 'PropertiesForCreateAIGatewayModelInput',
        'provider': 'ProviderForCreateAIGatewayModelInput',
        'series': 'str',
        'tags': 'list[str]'
    }

    attribute_map = {
        'category': 'category',
        'model': 'model',
        'name': 'name',
        'properties': 'properties',
        'provider': 'provider',
        'series': 'series',
        'tags': 'tags'
    }

    def __init__(self, category=None, model=None, name=None, properties=None, provider=None, series=None, tags=None, _configuration=None):  # noqa: E501
        """CreateAIGatewayModelRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._category = None
        self._model = None
        self._name = None
        self._properties = None
        self._provider = None
        self._series = None
        self._tags = None
        self.discriminator = None

        self.category = category
        self.model = model
        self.name = name
        if properties is not None:
            self.properties = properties
        if provider is not None:
            self.provider = provider
        self.series = series
        if tags is not None:
            self.tags = tags

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


        :return: The category of this CreateAIGatewayModelRequest.  # noqa: E501
        :rtype: int
        """
        return self._category

    @category.setter
    def category(self, category):
        """Sets the category of this CreateAIGatewayModelRequest.


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

        self._category = category

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


        :return: The model of this CreateAIGatewayModelRequest.  # noqa: E501
        :rtype: str
        """
        return self._model

    @model.setter
    def model(self, model):
        """Sets the model of this CreateAIGatewayModelRequest.


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

        self._model = model

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


        :return: The name of this CreateAIGatewayModelRequest.  # noqa: E501
        :rtype: str
        """
        return self._name

    @name.setter
    def name(self, name):
        """Sets the name of this CreateAIGatewayModelRequest.


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

        self._name = name

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


        :return: The properties of this CreateAIGatewayModelRequest.  # noqa: E501
        :rtype: PropertiesForCreateAIGatewayModelInput
        """
        return self._properties

    @properties.setter
    def properties(self, properties):
        """Sets the properties of this CreateAIGatewayModelRequest.


        :param properties: The properties of this CreateAIGatewayModelRequest.  # noqa: E501
        :type: PropertiesForCreateAIGatewayModelInput
        """

        self._properties = properties

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


        :return: The provider of this CreateAIGatewayModelRequest.  # noqa: E501
        :rtype: ProviderForCreateAIGatewayModelInput
        """
        return self._provider

    @provider.setter
    def provider(self, provider):
        """Sets the provider of this CreateAIGatewayModelRequest.


        :param provider: The provider of this CreateAIGatewayModelRequest.  # noqa: E501
        :type: ProviderForCreateAIGatewayModelInput
        """

        self._provider = provider

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


        :return: The series of this CreateAIGatewayModelRequest.  # noqa: E501
        :rtype: str
        """
        return self._series

    @series.setter
    def series(self, series):
        """Sets the series of this CreateAIGatewayModelRequest.


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

        self._series = series

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


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

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


        :param tags: The tags of this CreateAIGatewayModelRequest.  # noqa: E501
        :type: list[str]
        """
        allowed_values = ["Speech", "Realtime"]  # noqa: E501
        if (self._configuration.client_side_validation and
                not set(tags).issubset(set(allowed_values))):  # noqa: E501
            raise ValueError(
                "Invalid values for `tags` [{0}], must be a subset of [{1}]"  # noqa: E501
                .format(", ".join(map(str, set(tags) - set(allowed_values))),  # noqa: E501
                        ", ".join(map(str, allowed_values)))
            )

        self._tags = tags

    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(CreateAIGatewayModelRequest, 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, CreateAIGatewayModelRequest):
            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, CreateAIGatewayModelRequest):
            return True

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