# 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 VarietyCropStageDto(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 = {
        'client_id': 'str',
        'days_after_sowing': 'int',
        'description': 'str',
        'id': 'int',
        'name': 'str',
        'variety': 'VarietyDto'
    }

    attribute_map = {
        'client_id': 'clientId',
        'days_after_sowing': 'daysAfterSowing',
        'description': 'description',
        'id': 'id',
        'name': 'name',
        'variety': 'variety'
    }

    def __init__(self, client_id=None, days_after_sowing=None, description=None, id=None, name=None, variety=None):  # noqa: E501
        """VarietyCropStageDto - a model defined in Swagger"""  # noqa: E501
        self._client_id = None
        self._days_after_sowing = None
        self._description = None
        self._id = None
        self._name = None
        self._variety = None
        self.discriminator = None
        if client_id is not None:
            self.client_id = client_id
        if days_after_sowing is not None:
            self.days_after_sowing = days_after_sowing
        if description is not None:
            self.description = description
        if id is not None:
            self.id = id
        self.name = name
        if variety is not None:
            self.variety = variety

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


        :return: The client_id of this VarietyCropStageDto.  # noqa: E501
        :rtype: str
        """
        return self._client_id

    @client_id.setter
    def client_id(self, client_id):
        """Sets the client_id of this VarietyCropStageDto.


        :param client_id: The client_id of this VarietyCropStageDto.  # noqa: E501
        :type: str
        """

        self._client_id = client_id

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


        :return: The days_after_sowing of this VarietyCropStageDto.  # noqa: E501
        :rtype: int
        """
        return self._days_after_sowing

    @days_after_sowing.setter
    def days_after_sowing(self, days_after_sowing):
        """Sets the days_after_sowing of this VarietyCropStageDto.


        :param days_after_sowing: The days_after_sowing of this VarietyCropStageDto.  # noqa: E501
        :type: int
        """

        self._days_after_sowing = days_after_sowing

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


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

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


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

        self._description = description

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


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

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


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

        self._id = id

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


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

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


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

        self._name = name

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


        :return: The variety of this VarietyCropStageDto.  # noqa: E501
        :rtype: VarietyDto
        """
        return self._variety

    @variety.setter
    def variety(self, variety):
        """Sets the variety of this VarietyCropStageDto.


        :param variety: The variety of this VarietyCropStageDto.  # noqa: E501
        :type: VarietyDto
        """

        self._variety = variety

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

        return self.__dict__ == other.__dict__

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