# coding: utf-8

"""
    vepfs

    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 ConditionForUpdateLensPolicyInput(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 = {
        'constraint_type': 'str',
        'number_value': 'NumberValueForUpdateLensPolicyInput',
        'range_value': 'RangeValueForUpdateLensPolicyInput',
        'string_value': 'StringValueForUpdateLensPolicyInput',
        'value_type': 'str'
    }

    attribute_map = {
        'constraint_type': 'ConstraintType',
        'number_value': 'NumberValue',
        'range_value': 'RangeValue',
        'string_value': 'StringValue',
        'value_type': 'ValueType'
    }

    def __init__(self, constraint_type=None, number_value=None, range_value=None, string_value=None, value_type=None, _configuration=None):  # noqa: E501
        """ConditionForUpdateLensPolicyInput - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._constraint_type = None
        self._number_value = None
        self._range_value = None
        self._string_value = None
        self._value_type = None
        self.discriminator = None

        if constraint_type is not None:
            self.constraint_type = constraint_type
        if number_value is not None:
            self.number_value = number_value
        if range_value is not None:
            self.range_value = range_value
        if string_value is not None:
            self.string_value = string_value
        if value_type is not None:
            self.value_type = value_type

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


        :return: The constraint_type of this ConditionForUpdateLensPolicyInput.  # noqa: E501
        :rtype: str
        """
        return self._constraint_type

    @constraint_type.setter
    def constraint_type(self, constraint_type):
        """Sets the constraint_type of this ConditionForUpdateLensPolicyInput.


        :param constraint_type: The constraint_type of this ConditionForUpdateLensPolicyInput.  # noqa: E501
        :type: str
        """
        allowed_values = ["Before", "UntilNow", "Between", "Greater", "GreaterEqual", "Less", "LessEqual", "Equal", "Contain", "Prefix", "NotEqual", "NotContain", "NotPrefix"]  # noqa: E501
        if (self._configuration.client_side_validation and
                constraint_type not in allowed_values):
            raise ValueError(
                "Invalid value for `constraint_type` ({0}), must be one of {1}"  # noqa: E501
                .format(constraint_type, allowed_values)
            )

        self._constraint_type = constraint_type

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


        :return: The number_value of this ConditionForUpdateLensPolicyInput.  # noqa: E501
        :rtype: NumberValueForUpdateLensPolicyInput
        """
        return self._number_value

    @number_value.setter
    def number_value(self, number_value):
        """Sets the number_value of this ConditionForUpdateLensPolicyInput.


        :param number_value: The number_value of this ConditionForUpdateLensPolicyInput.  # noqa: E501
        :type: NumberValueForUpdateLensPolicyInput
        """

        self._number_value = number_value

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


        :return: The range_value of this ConditionForUpdateLensPolicyInput.  # noqa: E501
        :rtype: RangeValueForUpdateLensPolicyInput
        """
        return self._range_value

    @range_value.setter
    def range_value(self, range_value):
        """Sets the range_value of this ConditionForUpdateLensPolicyInput.


        :param range_value: The range_value of this ConditionForUpdateLensPolicyInput.  # noqa: E501
        :type: RangeValueForUpdateLensPolicyInput
        """

        self._range_value = range_value

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


        :return: The string_value of this ConditionForUpdateLensPolicyInput.  # noqa: E501
        :rtype: StringValueForUpdateLensPolicyInput
        """
        return self._string_value

    @string_value.setter
    def string_value(self, string_value):
        """Sets the string_value of this ConditionForUpdateLensPolicyInput.


        :param string_value: The string_value of this ConditionForUpdateLensPolicyInput.  # noqa: E501
        :type: StringValueForUpdateLensPolicyInput
        """

        self._string_value = string_value

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


        :return: The value_type of this ConditionForUpdateLensPolicyInput.  # noqa: E501
        :rtype: str
        """
        return self._value_type

    @value_type.setter
    def value_type(self, value_type):
        """Sets the value_type of this ConditionForUpdateLensPolicyInput.


        :param value_type: The value_type of this ConditionForUpdateLensPolicyInput.  # noqa: E501
        :type: str
        """
        allowed_values = ["StorageUnit", "Timestamp", "RelativeTime", "Text"]  # noqa: E501
        if (self._configuration.client_side_validation and
                value_type not in allowed_values):
            raise ValueError(
                "Invalid value for `value_type` ({0}), must be one of {1}"  # noqa: E501
                .format(value_type, allowed_values)
            )

        self._value_type = value_type

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

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