# coding: utf-8

"""
    farm API

    farm API documentation  # 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 TaskCaDetailsDto(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 = {
        'description': 'str',
        'end_date': 'datetime',
        'executed_on': 'datetime',
        'id': 'int',
        'name': 'str',
        'pinned': 'bool',
        'start_date': 'datetime',
        'status': 'str'
    }

    attribute_map = {
        'description': 'description',
        'end_date': 'endDate',
        'executed_on': 'executedOn',
        'id': 'id',
        'name': 'name',
        'pinned': 'pinned',
        'start_date': 'startDate',
        'status': 'status'
    }

    def __init__(self, description=None, end_date=None, executed_on=None, id=None, name=None, pinned=None, start_date=None, status=None):  # noqa: E501
        """TaskCaDetailsDto - a model defined in Swagger"""  # noqa: E501
        self._description = None
        self._end_date = None
        self._executed_on = None
        self._id = None
        self._name = None
        self._pinned = None
        self._start_date = None
        self._status = None
        self.discriminator = None
        if description is not None:
            self.description = description
        if end_date is not None:
            self.end_date = end_date
        if executed_on is not None:
            self.executed_on = executed_on
        if id is not None:
            self.id = id
        if name is not None:
            self.name = name
        if pinned is not None:
            self.pinned = pinned
        if start_date is not None:
            self.start_date = start_date
        if status is not None:
            self.status = status

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


        :return: The description of this TaskCaDetailsDto.  # noqa: E501
        :rtype: str
        """
        return self._description

    @description.setter
    def description(self, description):
        """Sets the description of this TaskCaDetailsDto.


        :param description: The description of this TaskCaDetailsDto.  # noqa: E501
        :type: str
        """

        self._description = description

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


        :return: The end_date of this TaskCaDetailsDto.  # noqa: E501
        :rtype: datetime
        """
        return self._end_date

    @end_date.setter
    def end_date(self, end_date):
        """Sets the end_date of this TaskCaDetailsDto.


        :param end_date: The end_date of this TaskCaDetailsDto.  # noqa: E501
        :type: datetime
        """

        self._end_date = end_date

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


        :return: The executed_on of this TaskCaDetailsDto.  # noqa: E501
        :rtype: datetime
        """
        return self._executed_on

    @executed_on.setter
    def executed_on(self, executed_on):
        """Sets the executed_on of this TaskCaDetailsDto.


        :param executed_on: The executed_on of this TaskCaDetailsDto.  # noqa: E501
        :type: datetime
        """

        self._executed_on = executed_on

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


        :return: The id of this TaskCaDetailsDto.  # noqa: E501
        :rtype: int
        """
        return self._id

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


        :param id: The id of this TaskCaDetailsDto.  # noqa: E501
        :type: int
        """

        self._id = id

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


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

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


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

        self._name = name

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


        :return: The pinned of this TaskCaDetailsDto.  # noqa: E501
        :rtype: bool
        """
        return self._pinned

    @pinned.setter
    def pinned(self, pinned):
        """Sets the pinned of this TaskCaDetailsDto.


        :param pinned: The pinned of this TaskCaDetailsDto.  # noqa: E501
        :type: bool
        """

        self._pinned = pinned

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


        :return: The start_date of this TaskCaDetailsDto.  # noqa: E501
        :rtype: datetime
        """
        return self._start_date

    @start_date.setter
    def start_date(self, start_date):
        """Sets the start_date of this TaskCaDetailsDto.


        :param start_date: The start_date of this TaskCaDetailsDto.  # noqa: E501
        :type: datetime
        """

        self._start_date = start_date

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


        :return: The status of this TaskCaDetailsDto.  # noqa: E501
        :rtype: str
        """
        return self._status

    @status.setter
    def status(self, status):
        """Sets the status of this TaskCaDetailsDto.


        :param status: The status of this TaskCaDetailsDto.  # noqa: E501
        :type: str
        """

        self._status = status

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

        return self.__dict__ == other.__dict__

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