# 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 GetVikingdbIndexResponse(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 = {
        'actual_cu': 'int',
        'collection_name': 'str',
        'cpu_quota': 'int',
        'description': 'str',
        'index_name': 'str',
        'project_name': 'str',
        'resource_id': 'str',
        'scalar_index': 'list[ScalarIndexForGetVikingdbIndexOutput]',
        'shard_count': 'int',
        'shard_policy': 'str',
        'status': 'str',
        'vector_index': 'VectorIndexForGetVikingdbIndexOutput'
    }

    attribute_map = {
        'actual_cu': 'ActualCU',
        'collection_name': 'CollectionName',
        'cpu_quota': 'CpuQuota',
        'description': 'Description',
        'index_name': 'IndexName',
        'project_name': 'ProjectName',
        'resource_id': 'ResourceId',
        'scalar_index': 'ScalarIndex',
        'shard_count': 'ShardCount',
        'shard_policy': 'ShardPolicy',
        'status': 'Status',
        'vector_index': 'VectorIndex'
    }

    def __init__(self, actual_cu=None, collection_name=None, cpu_quota=None, description=None, index_name=None, project_name=None, resource_id=None, scalar_index=None, shard_count=None, shard_policy=None, status=None, vector_index=None, _configuration=None):  # noqa: E501
        """GetVikingdbIndexResponse - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._actual_cu = None
        self._collection_name = None
        self._cpu_quota = None
        self._description = None
        self._index_name = None
        self._project_name = None
        self._resource_id = None
        self._scalar_index = None
        self._shard_count = None
        self._shard_policy = None
        self._status = None
        self._vector_index = None
        self.discriminator = None

        if actual_cu is not None:
            self.actual_cu = actual_cu
        if collection_name is not None:
            self.collection_name = collection_name
        if cpu_quota is not None:
            self.cpu_quota = cpu_quota
        if description is not None:
            self.description = description
        if index_name is not None:
            self.index_name = index_name
        if project_name is not None:
            self.project_name = project_name
        if resource_id is not None:
            self.resource_id = resource_id
        if scalar_index is not None:
            self.scalar_index = scalar_index
        if shard_count is not None:
            self.shard_count = shard_count
        if shard_policy is not None:
            self.shard_policy = shard_policy
        if status is not None:
            self.status = status
        if vector_index is not None:
            self.vector_index = vector_index

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


        :return: The actual_cu of this GetVikingdbIndexResponse.  # noqa: E501
        :rtype: int
        """
        return self._actual_cu

    @actual_cu.setter
    def actual_cu(self, actual_cu):
        """Sets the actual_cu of this GetVikingdbIndexResponse.


        :param actual_cu: The actual_cu of this GetVikingdbIndexResponse.  # noqa: E501
        :type: int
        """

        self._actual_cu = actual_cu

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


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

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


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

        self._collection_name = collection_name

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


        :return: The cpu_quota of this GetVikingdbIndexResponse.  # noqa: E501
        :rtype: int
        """
        return self._cpu_quota

    @cpu_quota.setter
    def cpu_quota(self, cpu_quota):
        """Sets the cpu_quota of this GetVikingdbIndexResponse.


        :param cpu_quota: The cpu_quota of this GetVikingdbIndexResponse.  # noqa: E501
        :type: int
        """

        self._cpu_quota = cpu_quota

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


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

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


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

        self._description = description

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


        :return: The index_name of this GetVikingdbIndexResponse.  # noqa: E501
        :rtype: str
        """
        return self._index_name

    @index_name.setter
    def index_name(self, index_name):
        """Sets the index_name of this GetVikingdbIndexResponse.


        :param index_name: The index_name of this GetVikingdbIndexResponse.  # noqa: E501
        :type: str
        """

        self._index_name = index_name

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


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

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


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

        self._project_name = project_name

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


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

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


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

        self._resource_id = resource_id

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


        :return: The scalar_index of this GetVikingdbIndexResponse.  # noqa: E501
        :rtype: list[ScalarIndexForGetVikingdbIndexOutput]
        """
        return self._scalar_index

    @scalar_index.setter
    def scalar_index(self, scalar_index):
        """Sets the scalar_index of this GetVikingdbIndexResponse.


        :param scalar_index: The scalar_index of this GetVikingdbIndexResponse.  # noqa: E501
        :type: list[ScalarIndexForGetVikingdbIndexOutput]
        """

        self._scalar_index = scalar_index

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


        :return: The shard_count of this GetVikingdbIndexResponse.  # noqa: E501
        :rtype: int
        """
        return self._shard_count

    @shard_count.setter
    def shard_count(self, shard_count):
        """Sets the shard_count of this GetVikingdbIndexResponse.


        :param shard_count: The shard_count of this GetVikingdbIndexResponse.  # noqa: E501
        :type: int
        """

        self._shard_count = shard_count

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


        :return: The shard_policy of this GetVikingdbIndexResponse.  # noqa: E501
        :rtype: str
        """
        return self._shard_policy

    @shard_policy.setter
    def shard_policy(self, shard_policy):
        """Sets the shard_policy of this GetVikingdbIndexResponse.


        :param shard_policy: The shard_policy of this GetVikingdbIndexResponse.  # noqa: E501
        :type: str
        """

        self._shard_policy = shard_policy

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


        :return: The status of this GetVikingdbIndexResponse.  # noqa: E501
        :rtype: str
        """
        return self._status

    @status.setter
    def status(self, status):
        """Sets the status of this GetVikingdbIndexResponse.


        :param status: The status of this GetVikingdbIndexResponse.  # noqa: E501
        :type: str
        """

        self._status = status

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


        :return: The vector_index of this GetVikingdbIndexResponse.  # noqa: E501
        :rtype: VectorIndexForGetVikingdbIndexOutput
        """
        return self._vector_index

    @vector_index.setter
    def vector_index(self, vector_index):
        """Sets the vector_index of this GetVikingdbIndexResponse.


        :param vector_index: The vector_index of this GetVikingdbIndexResponse.  # noqa: E501
        :type: VectorIndexForGetVikingdbIndexOutput
        """

        self._vector_index = vector_index

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

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