# 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 FieldForGetVikingdbCollectionOutput(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 = {
        'default_value': 'object',
        'dim': 'int',
        'field_name': 'str',
        'field_type': 'str',
        'is_primary_key': 'bool'
    }

    attribute_map = {
        'default_value': 'DefaultValue',
        'dim': 'Dim',
        'field_name': 'FieldName',
        'field_type': 'FieldType',
        'is_primary_key': 'IsPrimaryKey'
    }

    def __init__(self, default_value=None, dim=None, field_name=None, field_type=None, is_primary_key=None, _configuration=None):  # noqa: E501
        """FieldForGetVikingdbCollectionOutput - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._default_value = None
        self._dim = None
        self._field_name = None
        self._field_type = None
        self._is_primary_key = None
        self.discriminator = None

        if default_value is not None:
            self.default_value = default_value
        if dim is not None:
            self.dim = dim
        if field_name is not None:
            self.field_name = field_name
        if field_type is not None:
            self.field_type = field_type
        if is_primary_key is not None:
            self.is_primary_key = is_primary_key

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


        :return: The default_value of this FieldForGetVikingdbCollectionOutput.  # noqa: E501
        :rtype: object
        """
        return self._default_value

    @default_value.setter
    def default_value(self, default_value):
        """Sets the default_value of this FieldForGetVikingdbCollectionOutput.


        :param default_value: The default_value of this FieldForGetVikingdbCollectionOutput.  # noqa: E501
        :type: object
        """

        self._default_value = default_value

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


        :return: The dim of this FieldForGetVikingdbCollectionOutput.  # noqa: E501
        :rtype: int
        """
        return self._dim

    @dim.setter
    def dim(self, dim):
        """Sets the dim of this FieldForGetVikingdbCollectionOutput.


        :param dim: The dim of this FieldForGetVikingdbCollectionOutput.  # noqa: E501
        :type: int
        """

        self._dim = dim

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


        :return: The field_name of this FieldForGetVikingdbCollectionOutput.  # noqa: E501
        :rtype: str
        """
        return self._field_name

    @field_name.setter
    def field_name(self, field_name):
        """Sets the field_name of this FieldForGetVikingdbCollectionOutput.


        :param field_name: The field_name of this FieldForGetVikingdbCollectionOutput.  # noqa: E501
        :type: str
        """

        self._field_name = field_name

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


        :return: The field_type of this FieldForGetVikingdbCollectionOutput.  # noqa: E501
        :rtype: str
        """
        return self._field_type

    @field_type.setter
    def field_type(self, field_type):
        """Sets the field_type of this FieldForGetVikingdbCollectionOutput.


        :param field_type: The field_type of this FieldForGetVikingdbCollectionOutput.  # noqa: E501
        :type: str
        """

        self._field_type = field_type

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


        :return: The is_primary_key of this FieldForGetVikingdbCollectionOutput.  # noqa: E501
        :rtype: bool
        """
        return self._is_primary_key

    @is_primary_key.setter
    def is_primary_key(self, is_primary_key):
        """Sets the is_primary_key of this FieldForGetVikingdbCollectionOutput.


        :param is_primary_key: The is_primary_key of this FieldForGetVikingdbCollectionOutput.  # noqa: E501
        :type: bool
        """

        self._is_primary_key = is_primary_key

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

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