# coding: utf-8

"""
    Hopsworks api

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501

    OpenAPI spec version: 1.1.0-SNAPSHOT
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""

import pprint
import re  # noqa: F401

import six
from swagger_client.models.constraint_dto import ConstraintDTO  # noqa: F401,E501


class ConstraintDTO(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 = {
        'href': 'str',
        'items': 'list[ConstraintDTO]',
        'count': 'int',
        'name': 'str',
        'hint': 'str',
        'min': 'float',
        'max': 'float',
        'columns': 'list[str]'
    }

    attribute_map = {
        'href': 'href',
        'items': 'items',
        'count': 'count',
        'name': 'name',
        'hint': 'hint',
        'min': 'min',
        'max': 'max',
        'columns': 'columns'
    }

    def __init__(self, href=None, items=None, count=None, name=None, hint=None, min=None, max=None, columns=None):  # noqa: E501
        """ConstraintDTO - a model defined in Swagger"""  # noqa: E501
        self._href = None
        self._items = None
        self._count = None
        self._name = None
        self._hint = None
        self._min = None
        self._max = None
        self._columns = None
        self.discriminator = None
        if href is not None:
            self.href = href
        if items is not None:
            self.items = items
        if count is not None:
            self.count = count
        if name is not None:
            self.name = name
        if hint is not None:
            self.hint = hint
        if min is not None:
            self.min = min
        if max is not None:
            self.max = max
        if columns is not None:
            self.columns = columns

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


        :return: The href of this ConstraintDTO.  # noqa: E501
        :rtype: str
        """
        return self._href

    @href.setter
    def href(self, href):
        """Sets the href of this ConstraintDTO.


        :param href: The href of this ConstraintDTO.  # noqa: E501
        :type: str
        """

        self._href = href

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


        :return: The items of this ConstraintDTO.  # noqa: E501
        :rtype: list[ConstraintDTO]
        """
        return self._items

    @items.setter
    def items(self, items):
        """Sets the items of this ConstraintDTO.


        :param items: The items of this ConstraintDTO.  # noqa: E501
        :type: list[ConstraintDTO]
        """

        self._items = items

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


        :return: The count of this ConstraintDTO.  # noqa: E501
        :rtype: int
        """
        return self._count

    @count.setter
    def count(self, count):
        """Sets the count of this ConstraintDTO.


        :param count: The count of this ConstraintDTO.  # noqa: E501
        :type: int
        """

        self._count = count

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


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

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


        :param name: The name of this ConstraintDTO.  # noqa: E501
        :type: str
        """

        self._name = name

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


        :return: The hint of this ConstraintDTO.  # noqa: E501
        :rtype: str
        """
        return self._hint

    @hint.setter
    def hint(self, hint):
        """Sets the hint of this ConstraintDTO.


        :param hint: The hint of this ConstraintDTO.  # noqa: E501
        :type: str
        """

        self._hint = hint

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


        :return: The min of this ConstraintDTO.  # noqa: E501
        :rtype: float
        """
        return self._min

    @min.setter
    def min(self, min):
        """Sets the min of this ConstraintDTO.


        :param min: The min of this ConstraintDTO.  # noqa: E501
        :type: float
        """

        self._min = min

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


        :return: The max of this ConstraintDTO.  # noqa: E501
        :rtype: float
        """
        return self._max

    @max.setter
    def max(self, max):
        """Sets the max of this ConstraintDTO.


        :param max: The max of this ConstraintDTO.  # noqa: E501
        :type: float
        """

        self._max = max

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


        :return: The columns of this ConstraintDTO.  # noqa: E501
        :rtype: list[str]
        """
        return self._columns

    @columns.setter
    def columns(self, columns):
        """Sets the columns of this ConstraintDTO.


        :param columns: The columns of this ConstraintDTO.  # noqa: E501
        :type: list[str]
        """

        self._columns = columns

    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(ConstraintDTO, 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, ConstraintDTO):
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        return not self == other
