# 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 GetVikingdbCollectionResponse(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',
        'collection_stats': 'CollectionStatsForGetVikingdbCollectionOutput',
        'create_time': 'str',
        'description': 'str',
        'enable_keywords_search': 'bool',
        'fields': 'list[FieldForGetVikingdbCollectionOutput]',
        'index_count': 'int',
        'index_names': 'list[str]',
        'project_name': 'str',
        'resource_id': 'str',
        'update_person': 'str',
        'update_time': 'str',
        'vectorize': 'VectorizeForGetVikingdbCollectionOutput'
    }

    attribute_map = {
        'collection_name': 'CollectionName',
        'collection_stats': 'CollectionStats',
        'create_time': 'CreateTime',
        'description': 'Description',
        'enable_keywords_search': 'EnableKeywordsSearch',
        'fields': 'Fields',
        'index_count': 'IndexCount',
        'index_names': 'IndexNames',
        'project_name': 'ProjectName',
        'resource_id': 'ResourceId',
        'update_person': 'UpdatePerson',
        'update_time': 'UpdateTime',
        'vectorize': 'Vectorize'
    }

    def __init__(self, collection_name=None, collection_stats=None, create_time=None, description=None, enable_keywords_search=None, fields=None, index_count=None, index_names=None, project_name=None, resource_id=None, update_person=None, update_time=None, vectorize=None, _configuration=None):  # noqa: E501
        """GetVikingdbCollectionResponse - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._collection_name = None
        self._collection_stats = None
        self._create_time = None
        self._description = None
        self._enable_keywords_search = None
        self._fields = None
        self._index_count = None
        self._index_names = None
        self._project_name = None
        self._resource_id = None
        self._update_person = None
        self._update_time = None
        self._vectorize = None
        self.discriminator = None

        if collection_name is not None:
            self.collection_name = collection_name
        if collection_stats is not None:
            self.collection_stats = collection_stats
        if create_time is not None:
            self.create_time = create_time
        if description is not None:
            self.description = description
        if enable_keywords_search is not None:
            self.enable_keywords_search = enable_keywords_search
        if fields is not None:
            self.fields = fields
        if index_count is not None:
            self.index_count = index_count
        if index_names is not None:
            self.index_names = index_names
        if project_name is not None:
            self.project_name = project_name
        if resource_id is not None:
            self.resource_id = resource_id
        if update_person is not None:
            self.update_person = update_person
        if update_time is not None:
            self.update_time = update_time
        if vectorize is not None:
            self.vectorize = vectorize

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


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

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


        :param collection_name: The collection_name of this GetVikingdbCollectionResponse.  # noqa: E501
        :type: str
        """

        self._collection_name = collection_name

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


        :return: The collection_stats of this GetVikingdbCollectionResponse.  # noqa: E501
        :rtype: CollectionStatsForGetVikingdbCollectionOutput
        """
        return self._collection_stats

    @collection_stats.setter
    def collection_stats(self, collection_stats):
        """Sets the collection_stats of this GetVikingdbCollectionResponse.


        :param collection_stats: The collection_stats of this GetVikingdbCollectionResponse.  # noqa: E501
        :type: CollectionStatsForGetVikingdbCollectionOutput
        """

        self._collection_stats = collection_stats

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


        :return: The create_time of this GetVikingdbCollectionResponse.  # noqa: E501
        :rtype: str
        """
        return self._create_time

    @create_time.setter
    def create_time(self, create_time):
        """Sets the create_time of this GetVikingdbCollectionResponse.


        :param create_time: The create_time of this GetVikingdbCollectionResponse.  # noqa: E501
        :type: str
        """

        self._create_time = create_time

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


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

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


        :param description: The description of this GetVikingdbCollectionResponse.  # noqa: E501
        :type: str
        """

        self._description = description

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


        :return: The enable_keywords_search of this GetVikingdbCollectionResponse.  # noqa: E501
        :rtype: bool
        """
        return self._enable_keywords_search

    @enable_keywords_search.setter
    def enable_keywords_search(self, enable_keywords_search):
        """Sets the enable_keywords_search of this GetVikingdbCollectionResponse.


        :param enable_keywords_search: The enable_keywords_search of this GetVikingdbCollectionResponse.  # noqa: E501
        :type: bool
        """

        self._enable_keywords_search = enable_keywords_search

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


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

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


        :param fields: The fields of this GetVikingdbCollectionResponse.  # noqa: E501
        :type: list[FieldForGetVikingdbCollectionOutput]
        """

        self._fields = fields

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


        :return: The index_count of this GetVikingdbCollectionResponse.  # noqa: E501
        :rtype: int
        """
        return self._index_count

    @index_count.setter
    def index_count(self, index_count):
        """Sets the index_count of this GetVikingdbCollectionResponse.


        :param index_count: The index_count of this GetVikingdbCollectionResponse.  # noqa: E501
        :type: int
        """

        self._index_count = index_count

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


        :return: The index_names of this GetVikingdbCollectionResponse.  # noqa: E501
        :rtype: list[str]
        """
        return self._index_names

    @index_names.setter
    def index_names(self, index_names):
        """Sets the index_names of this GetVikingdbCollectionResponse.


        :param index_names: The index_names of this GetVikingdbCollectionResponse.  # noqa: E501
        :type: list[str]
        """

        self._index_names = index_names

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


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

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


        :param project_name: The project_name of this GetVikingdbCollectionResponse.  # noqa: E501
        :type: str
        """

        self._project_name = project_name

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


        :return: The resource_id of this GetVikingdbCollectionResponse.  # noqa: E501
        :rtype: str
        """
        return self._resource_id

    @resource_id.setter
    def resource_id(self, resource_id):
        """Sets the resource_id of this GetVikingdbCollectionResponse.


        :param resource_id: The resource_id of this GetVikingdbCollectionResponse.  # noqa: E501
        :type: str
        """

        self._resource_id = resource_id

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


        :return: The update_person of this GetVikingdbCollectionResponse.  # noqa: E501
        :rtype: str
        """
        return self._update_person

    @update_person.setter
    def update_person(self, update_person):
        """Sets the update_person of this GetVikingdbCollectionResponse.


        :param update_person: The update_person of this GetVikingdbCollectionResponse.  # noqa: E501
        :type: str
        """

        self._update_person = update_person

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


        :return: The update_time of this GetVikingdbCollectionResponse.  # noqa: E501
        :rtype: str
        """
        return self._update_time

    @update_time.setter
    def update_time(self, update_time):
        """Sets the update_time of this GetVikingdbCollectionResponse.


        :param update_time: The update_time of this GetVikingdbCollectionResponse.  # noqa: E501
        :type: str
        """

        self._update_time = update_time

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


        :return: The vectorize of this GetVikingdbCollectionResponse.  # noqa: E501
        :rtype: VectorizeForGetVikingdbCollectionOutput
        """
        return self._vectorize

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


        :param vectorize: The vectorize of this GetVikingdbCollectionResponse.  # noqa: E501
        :type: VectorizeForGetVikingdbCollectionOutput
        """

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

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