# coding: utf-8

"""
    Lotus API

    Lotus is an open-core pricing and billing engine. We enable API companies to automate and optimize their custom usage-based pricing for any metric.  # noqa: E501

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

import pprint
import re  # noqa: F401

import six

class NumericFilterRequest(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 = {
        'property_name': 'str',
        'operator': 'str',
        'comparison_value': 'float'
    }

    attribute_map = {
        'property_name': 'property_name',
        'operator': 'operator',
        'comparison_value': 'comparison_value'
    }

    def __init__(self, property_name=None, operator=None, comparison_value=None):  # noqa: E501
        """NumericFilterRequest - a model defined in Swagger"""  # noqa: E501
        self._property_name = None
        self._operator = None
        self._comparison_value = None
        self.discriminator = None
        self.property_name = property_name
        self.operator = operator
        self.comparison_value = comparison_value

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


        :return: The property_name of this NumericFilterRequest.  # noqa: E501
        :rtype: str
        """
        return self._property_name

    @property_name.setter
    def property_name(self, property_name):
        """Sets the property_name of this NumericFilterRequest.


        :param property_name: The property_name of this NumericFilterRequest.  # noqa: E501
        :type: str
        """
        if property_name is None:
            raise ValueError("Invalid value for `property_name`, must not be `None`")  # noqa: E501

        self._property_name = property_name

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

        * `gte` - Greater than or equal to * `gt` - Greater than * `eq` - Equal to * `lt` - Less than * `lte` - Less than or equal to  # noqa: E501

        :return: The operator of this NumericFilterRequest.  # noqa: E501
        :rtype: str
        """
        return self._operator

    @operator.setter
    def operator(self, operator):
        """Sets the operator of this NumericFilterRequest.

        * `gte` - Greater than or equal to * `gt` - Greater than * `eq` - Equal to * `lt` - Less than * `lte` - Less than or equal to  # noqa: E501

        :param operator: The operator of this NumericFilterRequest.  # noqa: E501
        :type: str
        """
        if operator is None:
            raise ValueError("Invalid value for `operator`, must not be `None`")  # noqa: E501
        allowed_values = ["gte", "gt", "eq", "lt", "lte"]  # noqa: E501
        if operator not in allowed_values:
            raise ValueError(
                "Invalid value for `operator` ({0}), must be one of {1}"  # noqa: E501
                .format(operator, allowed_values)
            )

        self._operator = operator

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


        :return: The comparison_value of this NumericFilterRequest.  # noqa: E501
        :rtype: float
        """
        return self._comparison_value

    @comparison_value.setter
    def comparison_value(self, comparison_value):
        """Sets the comparison_value of this NumericFilterRequest.


        :param comparison_value: The comparison_value of this NumericFilterRequest.  # noqa: E501
        :type: float
        """
        if comparison_value is None:
            raise ValueError("Invalid value for `comparison_value`, must not be `None`")  # noqa: E501

        self._comparison_value = comparison_value

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

        return self.__dict__ == other.__dict__

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