# 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 CroppableAreaCropStageDto(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',
        'crop_stage_id': 'int',
        'crop_stage_name': 'str',
        'crop_unit_id': 'int',
        'crop_unit_name': 'str',
        'croppable_area_id': 'int',
        'croppable_area_name': 'str',
        'data': 'dict(str, object)',
        'id': 'int',
        'images': 'dict(str, object)',
        'name': 'str'
    }

    attribute_map = {
        'client_id': 'clientId',
        'crop_stage_id': 'cropStageId',
        'crop_stage_name': 'cropStageName',
        'crop_unit_id': 'cropUnitId',
        'crop_unit_name': 'cropUnitName',
        'croppable_area_id': 'croppableAreaId',
        'croppable_area_name': 'croppableAreaName',
        'data': 'data',
        'id': 'id',
        'images': 'images',
        'name': 'name'
    }

    def __init__(self, client_id=None, crop_stage_id=None, crop_stage_name=None, crop_unit_id=None, crop_unit_name=None, croppable_area_id=None, croppable_area_name=None, data=None, id=None, images=None, name=None):  # noqa: E501
        """CroppableAreaCropStageDto - a model defined in Swagger"""  # noqa: E501
        self._client_id = None
        self._crop_stage_id = None
        self._crop_stage_name = None
        self._crop_unit_id = None
        self._crop_unit_name = None
        self._croppable_area_id = None
        self._croppable_area_name = None
        self._data = None
        self._id = None
        self._images = None
        self._name = None
        self.discriminator = None
        if client_id is not None:
            self.client_id = client_id
        if crop_stage_id is not None:
            self.crop_stage_id = crop_stage_id
        if crop_stage_name is not None:
            self.crop_stage_name = crop_stage_name
        if crop_unit_id is not None:
            self.crop_unit_id = crop_unit_id
        if crop_unit_name is not None:
            self.crop_unit_name = crop_unit_name
        if croppable_area_id is not None:
            self.croppable_area_id = croppable_area_id
        if croppable_area_name is not None:
            self.croppable_area_name = croppable_area_name
        if data is not None:
            self.data = data
        if id is not None:
            self.id = id
        if images is not None:
            self.images = images
        if name is not None:
            self.name = name

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


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

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


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

        self._client_id = client_id

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


        :return: The crop_stage_id of this CroppableAreaCropStageDto.  # noqa: E501
        :rtype: int
        """
        return self._crop_stage_id

    @crop_stage_id.setter
    def crop_stage_id(self, crop_stage_id):
        """Sets the crop_stage_id of this CroppableAreaCropStageDto.


        :param crop_stage_id: The crop_stage_id of this CroppableAreaCropStageDto.  # noqa: E501
        :type: int
        """

        self._crop_stage_id = crop_stage_id

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


        :return: The crop_stage_name of this CroppableAreaCropStageDto.  # noqa: E501
        :rtype: str
        """
        return self._crop_stage_name

    @crop_stage_name.setter
    def crop_stage_name(self, crop_stage_name):
        """Sets the crop_stage_name of this CroppableAreaCropStageDto.


        :param crop_stage_name: The crop_stage_name of this CroppableAreaCropStageDto.  # noqa: E501
        :type: str
        """

        self._crop_stage_name = crop_stage_name

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


        :return: The crop_unit_id of this CroppableAreaCropStageDto.  # noqa: E501
        :rtype: int
        """
        return self._crop_unit_id

    @crop_unit_id.setter
    def crop_unit_id(self, crop_unit_id):
        """Sets the crop_unit_id of this CroppableAreaCropStageDto.


        :param crop_unit_id: The crop_unit_id of this CroppableAreaCropStageDto.  # noqa: E501
        :type: int
        """

        self._crop_unit_id = crop_unit_id

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


        :return: The crop_unit_name of this CroppableAreaCropStageDto.  # noqa: E501
        :rtype: str
        """
        return self._crop_unit_name

    @crop_unit_name.setter
    def crop_unit_name(self, crop_unit_name):
        """Sets the crop_unit_name of this CroppableAreaCropStageDto.


        :param crop_unit_name: The crop_unit_name of this CroppableAreaCropStageDto.  # noqa: E501
        :type: str
        """

        self._crop_unit_name = crop_unit_name

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


        :return: The croppable_area_id of this CroppableAreaCropStageDto.  # noqa: E501
        :rtype: int
        """
        return self._croppable_area_id

    @croppable_area_id.setter
    def croppable_area_id(self, croppable_area_id):
        """Sets the croppable_area_id of this CroppableAreaCropStageDto.


        :param croppable_area_id: The croppable_area_id of this CroppableAreaCropStageDto.  # noqa: E501
        :type: int
        """

        self._croppable_area_id = croppable_area_id

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


        :return: The croppable_area_name of this CroppableAreaCropStageDto.  # noqa: E501
        :rtype: str
        """
        return self._croppable_area_name

    @croppable_area_name.setter
    def croppable_area_name(self, croppable_area_name):
        """Sets the croppable_area_name of this CroppableAreaCropStageDto.


        :param croppable_area_name: The croppable_area_name of this CroppableAreaCropStageDto.  # noqa: E501
        :type: str
        """

        self._croppable_area_name = croppable_area_name

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


        :return: The data of this CroppableAreaCropStageDto.  # noqa: E501
        :rtype: dict(str, object)
        """
        return self._data

    @data.setter
    def data(self, data):
        """Sets the data of this CroppableAreaCropStageDto.


        :param data: The data of this CroppableAreaCropStageDto.  # noqa: E501
        :type: dict(str, object)
        """

        self._data = data

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


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

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


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

        self._id = id

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


        :return: The images of this CroppableAreaCropStageDto.  # noqa: E501
        :rtype: dict(str, object)
        """
        return self._images

    @images.setter
    def images(self, images):
        """Sets the images of this CroppableAreaCropStageDto.


        :param images: The images of this CroppableAreaCropStageDto.  # noqa: E501
        :type: dict(str, object)
        """

        self._images = images

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


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

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


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

        self._name = 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(CroppableAreaCropStageDto, 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, CroppableAreaCropStageDto):
            return False

        return self.__dict__ == other.__dict__

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