# coding: utf-8

"""
    Lists

    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)  # noqa: E501

    The version of the OpenAPI document: v3
    Generated by: https://openapi-generator.tech
"""


try:
    from inspect import getfullargspec
except ImportError:
    from inspect import getargspec as getfullargspec
import pprint
import re  # noqa: F401
import six

from hubspot.crm.lists.configuration import Configuration


class PublicDatePropertyOperation(object):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """

    """
    Attributes:
      openapi_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.
    """
    openapi_types = {"include_objects_with_no_value_set": "bool", "month": "str", "year": "int", "operation_type": "str", "day": "int", "operator": "str"}

    attribute_map = {"include_objects_with_no_value_set": "includeObjectsWithNoValueSet", "month": "month", "year": "year", "operation_type": "operationType", "day": "day", "operator": "operator"}

    def __init__(self, include_objects_with_no_value_set=None, month=None, year=None, operation_type="DATE", day=None, operator=None, local_vars_configuration=None):  # noqa: E501
        """PublicDatePropertyOperation - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration.get_default_copy()
        self.local_vars_configuration = local_vars_configuration

        self._include_objects_with_no_value_set = None
        self._month = None
        self._year = None
        self._operation_type = None
        self._day = None
        self._operator = None
        self.discriminator = None

        self.include_objects_with_no_value_set = include_objects_with_no_value_set
        self.month = month
        self.year = year
        self.operation_type = operation_type
        self.day = day
        self.operator = operator

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


        :return: The include_objects_with_no_value_set of this PublicDatePropertyOperation.  # noqa: E501
        :rtype: bool
        """
        return self._include_objects_with_no_value_set

    @include_objects_with_no_value_set.setter
    def include_objects_with_no_value_set(self, include_objects_with_no_value_set):
        """Sets the include_objects_with_no_value_set of this PublicDatePropertyOperation.


        :param include_objects_with_no_value_set: The include_objects_with_no_value_set of this PublicDatePropertyOperation.  # noqa: E501
        :type include_objects_with_no_value_set: bool
        """
        if self.local_vars_configuration.client_side_validation and include_objects_with_no_value_set is None:  # noqa: E501
            raise ValueError("Invalid value for `include_objects_with_no_value_set`, must not be `None`")  # noqa: E501

        self._include_objects_with_no_value_set = include_objects_with_no_value_set

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


        :return: The month of this PublicDatePropertyOperation.  # noqa: E501
        :rtype: str
        """
        return self._month

    @month.setter
    def month(self, month):
        """Sets the month of this PublicDatePropertyOperation.


        :param month: The month of this PublicDatePropertyOperation.  # noqa: E501
        :type month: str
        """
        if self.local_vars_configuration.client_side_validation and month is None:  # noqa: E501
            raise ValueError("Invalid value for `month`, must not be `None`")  # noqa: E501

        self._month = month

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


        :return: The year of this PublicDatePropertyOperation.  # noqa: E501
        :rtype: int
        """
        return self._year

    @year.setter
    def year(self, year):
        """Sets the year of this PublicDatePropertyOperation.


        :param year: The year of this PublicDatePropertyOperation.  # noqa: E501
        :type year: int
        """
        if self.local_vars_configuration.client_side_validation and year is None:  # noqa: E501
            raise ValueError("Invalid value for `year`, must not be `None`")  # noqa: E501

        self._year = year

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


        :return: The operation_type of this PublicDatePropertyOperation.  # noqa: E501
        :rtype: str
        """
        return self._operation_type

    @operation_type.setter
    def operation_type(self, operation_type):
        """Sets the operation_type of this PublicDatePropertyOperation.


        :param operation_type: The operation_type of this PublicDatePropertyOperation.  # noqa: E501
        :type operation_type: str
        """
        if self.local_vars_configuration.client_side_validation and operation_type is None:  # noqa: E501
            raise ValueError("Invalid value for `operation_type`, must not be `None`")  # noqa: E501
        allowed_values = ["DATE"]  # noqa: E501
        if self.local_vars_configuration.client_side_validation and operation_type not in allowed_values:  # noqa: E501
            raise ValueError("Invalid value for `operation_type` ({0}), must be one of {1}".format(operation_type, allowed_values))  # noqa: E501

        self._operation_type = operation_type

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


        :return: The day of this PublicDatePropertyOperation.  # noqa: E501
        :rtype: int
        """
        return self._day

    @day.setter
    def day(self, day):
        """Sets the day of this PublicDatePropertyOperation.


        :param day: The day of this PublicDatePropertyOperation.  # noqa: E501
        :type day: int
        """
        if self.local_vars_configuration.client_side_validation and day is None:  # noqa: E501
            raise ValueError("Invalid value for `day`, must not be `None`")  # noqa: E501

        self._day = day

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


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

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


        :param operator: The operator of this PublicDatePropertyOperation.  # noqa: E501
        :type operator: str
        """
        if self.local_vars_configuration.client_side_validation and operator is None:  # noqa: E501
            raise ValueError("Invalid value for `operator`, must not be `None`")  # noqa: E501

        self._operator = operator

    def to_dict(self, serialize=False):
        """Returns the model properties as a dict"""
        result = {}

        def convert(x):
            if hasattr(x, "to_dict"):
                args = getfullargspec(x.to_dict).args
                if len(args) == 1:
                    return x.to_dict()
                else:
                    return x.to_dict(serialize)
            else:
                return x

        for attr, _ in six.iteritems(self.openapi_types):
            value = getattr(self, attr)
            attr = self.attribute_map.get(attr, attr) if serialize else attr
            if isinstance(value, list):
                result[attr] = list(map(lambda x: convert(x), value))
            elif isinstance(value, dict):
                result[attr] = dict(map(lambda item: (item[0], convert(item[1])), value.items()))
            else:
                result[attr] = convert(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, PublicDatePropertyOperation):
            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, PublicDatePropertyOperation):
            return True

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