# coding: utf-8

"""
    vikingdb

    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 CreateVikingdbCollectionRequest(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 = {
        'collection_name': 'str',
        'description': 'str',
        'fields': 'list[FieldForCreateVikingdbCollectionInput]',
        'project_name': 'str',
        'tags': 'list[TagForCreateVikingdbCollectionInput]',
        'vectorize': 'VectorizeForCreateVikingdbCollectionInput'
    }

    attribute_map = {
        'collection_name': 'CollectionName',
        'description': 'Description',
        'fields': 'Fields',
        'project_name': 'ProjectName',
        'tags': 'Tags',
        'vectorize': 'Vectorize'
    }

    def __init__(self, collection_name=None, description=None, fields=None, project_name=None, tags=None, vectorize=None, _configuration=None):  # noqa: E501
        """CreateVikingdbCollectionRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._collection_name = None
        self._description = None
        self._fields = None
        self._project_name = None
        self._tags = None
        self._vectorize = None
        self.discriminator = None

        self.collection_name = collection_name
        if description is not None:
            self.description = description
        if fields is not None:
            self.fields = fields
        if project_name is not None:
            self.project_name = project_name
        if tags is not None:
            self.tags = tags
        if vectorize is not None:
            self.vectorize = vectorize

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


        :return: The collection_name of this CreateVikingdbCollectionRequest.  # noqa: E501
        :rtype: str
        """
        return self._collection_name

    @collection_name.setter
    def collection_name(self, collection_name):
        """Sets the collection_name of this CreateVikingdbCollectionRequest.


        :param collection_name: The collection_name of this CreateVikingdbCollectionRequest.  # noqa: E501
        :type: str
        """
        if self._configuration.client_side_validation and collection_name is None:
            raise ValueError("Invalid value for `collection_name`, must not be `None`")  # noqa: E501
        if (self._configuration.client_side_validation and
                collection_name is not None and len(collection_name) > 128):
            raise ValueError("Invalid value for `collection_name`, length must be less than or equal to `128`")  # noqa: E501
        if (self._configuration.client_side_validation and
                collection_name is not None and len(collection_name) < 1):
            raise ValueError("Invalid value for `collection_name`, length must be greater than or equal to `1`")  # noqa: E501

        self._collection_name = collection_name

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


        :return: The description of this CreateVikingdbCollectionRequest.  # noqa: E501
        :rtype: str
        """
        return self._description

    @description.setter
    def description(self, description):
        """Sets the description of this CreateVikingdbCollectionRequest.


        :param description: The description of this CreateVikingdbCollectionRequest.  # noqa: E501
        :type: str
        """
        if (self._configuration.client_side_validation and
                description is not None and len(description) > 65535):
            raise ValueError("Invalid value for `description`, length must be less than or equal to `65535`")  # noqa: E501

        self._description = description

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


        :return: The fields of this CreateVikingdbCollectionRequest.  # noqa: E501
        :rtype: list[FieldForCreateVikingdbCollectionInput]
        """
        return self._fields

    @fields.setter
    def fields(self, fields):
        """Sets the fields of this CreateVikingdbCollectionRequest.


        :param fields: The fields of this CreateVikingdbCollectionRequest.  # noqa: E501
        :type: list[FieldForCreateVikingdbCollectionInput]
        """

        self._fields = fields

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


        :return: The project_name of this CreateVikingdbCollectionRequest.  # noqa: E501
        :rtype: str
        """
        return self._project_name

    @project_name.setter
    def project_name(self, project_name):
        """Sets the project_name of this CreateVikingdbCollectionRequest.


        :param project_name: The project_name of this CreateVikingdbCollectionRequest.  # noqa: E501
        :type: str
        """
        if (self._configuration.client_side_validation and
                project_name is not None and len(project_name) < 1):
            raise ValueError("Invalid value for `project_name`, length must be greater than or equal to `1`")  # noqa: E501

        self._project_name = project_name

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


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

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


        :param tags: The tags of this CreateVikingdbCollectionRequest.  # noqa: E501
        :type: list[TagForCreateVikingdbCollectionInput]
        """

        self._tags = tags

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


        :return: The vectorize of this CreateVikingdbCollectionRequest.  # noqa: E501
        :rtype: VectorizeForCreateVikingdbCollectionInput
        """
        return self._vectorize

    @vectorize.setter
    def vectorize(self, vectorize):
        """Sets the vectorize of this CreateVikingdbCollectionRequest.


        :param vectorize: The vectorize of this CreateVikingdbCollectionRequest.  # noqa: E501
        :type: VectorizeForCreateVikingdbCollectionInput
        """

        self._vectorize = vectorize

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

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