# 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 CaDtoForForm(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 = {
        'ca_id': 'int',
        'ca_name': 'str',
        'farmer_code': 'str',
        'farmer_id': 'int',
        'first_name': 'str',
        'last_name': 'str',
        'variety_id': 'int',
        'variety_name': 'str'
    }

    attribute_map = {
        'ca_id': 'caId',
        'ca_name': 'caName',
        'farmer_code': 'farmerCode',
        'farmer_id': 'farmerId',
        'first_name': 'firstName',
        'last_name': 'lastName',
        'variety_id': 'varietyId',
        'variety_name': 'varietyName'
    }

    def __init__(self, ca_id=None, ca_name=None, farmer_code=None, farmer_id=None, first_name=None, last_name=None, variety_id=None, variety_name=None):  # noqa: E501
        """CaDtoForForm - a model defined in Swagger"""  # noqa: E501
        self._ca_id = None
        self._ca_name = None
        self._farmer_code = None
        self._farmer_id = None
        self._first_name = None
        self._last_name = None
        self._variety_id = None
        self._variety_name = None
        self.discriminator = None
        if ca_id is not None:
            self.ca_id = ca_id
        if ca_name is not None:
            self.ca_name = ca_name
        if farmer_code is not None:
            self.farmer_code = farmer_code
        if farmer_id is not None:
            self.farmer_id = farmer_id
        if first_name is not None:
            self.first_name = first_name
        if last_name is not None:
            self.last_name = last_name
        if variety_id is not None:
            self.variety_id = variety_id
        if variety_name is not None:
            self.variety_name = variety_name

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


        :return: The ca_id of this CaDtoForForm.  # noqa: E501
        :rtype: int
        """
        return self._ca_id

    @ca_id.setter
    def ca_id(self, ca_id):
        """Sets the ca_id of this CaDtoForForm.


        :param ca_id: The ca_id of this CaDtoForForm.  # noqa: E501
        :type: int
        """

        self._ca_id = ca_id

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


        :return: The ca_name of this CaDtoForForm.  # noqa: E501
        :rtype: str
        """
        return self._ca_name

    @ca_name.setter
    def ca_name(self, ca_name):
        """Sets the ca_name of this CaDtoForForm.


        :param ca_name: The ca_name of this CaDtoForForm.  # noqa: E501
        :type: str
        """

        self._ca_name = ca_name

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


        :return: The farmer_code of this CaDtoForForm.  # noqa: E501
        :rtype: str
        """
        return self._farmer_code

    @farmer_code.setter
    def farmer_code(self, farmer_code):
        """Sets the farmer_code of this CaDtoForForm.


        :param farmer_code: The farmer_code of this CaDtoForForm.  # noqa: E501
        :type: str
        """

        self._farmer_code = farmer_code

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


        :return: The farmer_id of this CaDtoForForm.  # noqa: E501
        :rtype: int
        """
        return self._farmer_id

    @farmer_id.setter
    def farmer_id(self, farmer_id):
        """Sets the farmer_id of this CaDtoForForm.


        :param farmer_id: The farmer_id of this CaDtoForForm.  # noqa: E501
        :type: int
        """

        self._farmer_id = farmer_id

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


        :return: The first_name of this CaDtoForForm.  # noqa: E501
        :rtype: str
        """
        return self._first_name

    @first_name.setter
    def first_name(self, first_name):
        """Sets the first_name of this CaDtoForForm.


        :param first_name: The first_name of this CaDtoForForm.  # noqa: E501
        :type: str
        """

        self._first_name = first_name

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


        :return: The last_name of this CaDtoForForm.  # noqa: E501
        :rtype: str
        """
        return self._last_name

    @last_name.setter
    def last_name(self, last_name):
        """Sets the last_name of this CaDtoForForm.


        :param last_name: The last_name of this CaDtoForForm.  # noqa: E501
        :type: str
        """

        self._last_name = last_name

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


        :return: The variety_id of this CaDtoForForm.  # noqa: E501
        :rtype: int
        """
        return self._variety_id

    @variety_id.setter
    def variety_id(self, variety_id):
        """Sets the variety_id of this CaDtoForForm.


        :param variety_id: The variety_id of this CaDtoForForm.  # noqa: E501
        :type: int
        """

        self._variety_id = variety_id

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


        :return: The variety_name of this CaDtoForForm.  # noqa: E501
        :rtype: str
        """
        return self._variety_name

    @variety_name.setter
    def variety_name(self, variety_name):
        """Sets the variety_name of this CaDtoForForm.


        :param variety_name: The variety_name of this CaDtoForForm.  # noqa: E501
        :type: str
        """

        self._variety_name = variety_name

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

        return self.__dict__ == other.__dict__

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