# coding: utf-8

"""
    Curia Platform API

    These are the docs for the curia platform API. To test, generate an authorization token first.  # noqa: E501

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

import pprint
import re  # noqa: F401

import six

class TimelineFeatureFilter(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 = {
        'id': 'str',
        'operator': 'str',
        'comparison_value': 'str',
        'feature_id': 'str',
        'project_id': 'str',
        'timeline_feature_filter_group_id': 'str',
        'created_at': 'datetime',
        'updated_at': 'datetime',
        'version': 'float'
    }

    attribute_map = {
        'id': 'id',
        'operator': 'operator',
        'comparison_value': 'comparisonValue',
        'feature_id': 'featureId',
        'project_id': 'projectId',
        'timeline_feature_filter_group_id': 'timelineFeatureFilterGroupId',
        'created_at': 'createdAt',
        'updated_at': 'updatedAt',
        'version': 'version'
    }

    def __init__(self, id=None, operator=None, comparison_value=None, feature_id=None, project_id=None, timeline_feature_filter_group_id=None, created_at=None, updated_at=None, version=None):  # noqa: E501
        """TimelineFeatureFilter - a model defined in Swagger"""  # noqa: E501
        self._id = None
        self._operator = None
        self._comparison_value = None
        self._feature_id = None
        self._project_id = None
        self._timeline_feature_filter_group_id = None
        self._created_at = None
        self._updated_at = None
        self._version = None
        self.discriminator = None
        if id is not None:
            self.id = id
        self.operator = operator
        self.comparison_value = comparison_value
        self.feature_id = feature_id
        self.project_id = project_id
        self.timeline_feature_filter_group_id = timeline_feature_filter_group_id
        if created_at is not None:
            self.created_at = created_at
        if updated_at is not None:
            self.updated_at = updated_at
        if version is not None:
            self.version = version

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


        :return: The id of this TimelineFeatureFilter.  # noqa: E501
        :rtype: str
        """
        return self._id

    @id.setter
    def id(self, id):
        """Sets the id of this TimelineFeatureFilter.


        :param id: The id of this TimelineFeatureFilter.  # noqa: E501
        :type: str
        """

        self._id = id

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


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

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


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

        self._operator = operator

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


        :return: The comparison_value of this TimelineFeatureFilter.  # noqa: E501
        :rtype: str
        """
        return self._comparison_value

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


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

        self._comparison_value = comparison_value

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


        :return: The feature_id of this TimelineFeatureFilter.  # noqa: E501
        :rtype: str
        """
        return self._feature_id

    @feature_id.setter
    def feature_id(self, feature_id):
        """Sets the feature_id of this TimelineFeatureFilter.


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

        self._feature_id = feature_id

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


        :return: The project_id of this TimelineFeatureFilter.  # noqa: E501
        :rtype: str
        """
        return self._project_id

    @project_id.setter
    def project_id(self, project_id):
        """Sets the project_id of this TimelineFeatureFilter.


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

        self._project_id = project_id

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


        :return: The timeline_feature_filter_group_id of this TimelineFeatureFilter.  # noqa: E501
        :rtype: str
        """
        return self._timeline_feature_filter_group_id

    @timeline_feature_filter_group_id.setter
    def timeline_feature_filter_group_id(self, timeline_feature_filter_group_id):
        """Sets the timeline_feature_filter_group_id of this TimelineFeatureFilter.


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

        self._timeline_feature_filter_group_id = timeline_feature_filter_group_id

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


        :return: The created_at of this TimelineFeatureFilter.  # noqa: E501
        :rtype: datetime
        """
        return self._created_at

    @created_at.setter
    def created_at(self, created_at):
        """Sets the created_at of this TimelineFeatureFilter.


        :param created_at: The created_at of this TimelineFeatureFilter.  # noqa: E501
        :type: datetime
        """

        self._created_at = created_at

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


        :return: The updated_at of this TimelineFeatureFilter.  # noqa: E501
        :rtype: datetime
        """
        return self._updated_at

    @updated_at.setter
    def updated_at(self, updated_at):
        """Sets the updated_at of this TimelineFeatureFilter.


        :param updated_at: The updated_at of this TimelineFeatureFilter.  # noqa: E501
        :type: datetime
        """

        self._updated_at = updated_at

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


        :return: The version of this TimelineFeatureFilter.  # noqa: E501
        :rtype: float
        """
        return self._version

    @version.setter
    def version(self, version):
        """Sets the version of this TimelineFeatureFilter.


        :param version: The version of this TimelineFeatureFilter.  # noqa: E501
        :type: float
        """

        self._version = version

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

        return self.__dict__ == other.__dict__

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