# 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 FarmResourceDto(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 = {
        'address': 'AddressDto',
        'client_id': 'str',
        'cost': 'float',
        'data': 'dict(str, object)',
        'deleted': 'bool',
        'description': 'str',
        'id': 'int',
        'images': 'dict(str, object)',
        'name': 'str',
        'owner_first_name': 'str',
        'owner_id': 'int',
        'type_id': 'int',
        'type_name': 'str'
    }

    attribute_map = {
        'address': 'address',
        'client_id': 'clientId',
        'cost': 'cost',
        'data': 'data',
        'deleted': 'deleted',
        'description': 'description',
        'id': 'id',
        'images': 'images',
        'name': 'name',
        'owner_first_name': 'ownerFirstName',
        'owner_id': 'ownerId',
        'type_id': 'typeId',
        'type_name': 'typeName'
    }

    def __init__(self, address=None, client_id=None, cost=None, data=None, deleted=None, description=None, id=None, images=None, name=None, owner_first_name=None, owner_id=None, type_id=None, type_name=None):  # noqa: E501
        """FarmResourceDto - a model defined in Swagger"""  # noqa: E501
        self._address = None
        self._client_id = None
        self._cost = None
        self._data = None
        self._deleted = None
        self._description = None
        self._id = None
        self._images = None
        self._name = None
        self._owner_first_name = None
        self._owner_id = None
        self._type_id = None
        self._type_name = None
        self.discriminator = None
        if address is not None:
            self.address = address
        if client_id is not None:
            self.client_id = client_id
        if cost is not None:
            self.cost = cost
        if data is not None:
            self.data = data
        if deleted is not None:
            self.deleted = deleted
        if description is not None:
            self.description = description
        if id is not None:
            self.id = id
        if images is not None:
            self.images = images
        self.name = name
        if owner_first_name is not None:
            self.owner_first_name = owner_first_name
        if owner_id is not None:
            self.owner_id = owner_id
        self.type_id = type_id
        if type_name is not None:
            self.type_name = type_name

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


        :return: The address of this FarmResourceDto.  # noqa: E501
        :rtype: AddressDto
        """
        return self._address

    @address.setter
    def address(self, address):
        """Sets the address of this FarmResourceDto.


        :param address: The address of this FarmResourceDto.  # noqa: E501
        :type: AddressDto
        """

        self._address = address

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


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

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


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

        self._client_id = client_id

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


        :return: The cost of this FarmResourceDto.  # noqa: E501
        :rtype: float
        """
        return self._cost

    @cost.setter
    def cost(self, cost):
        """Sets the cost of this FarmResourceDto.


        :param cost: The cost of this FarmResourceDto.  # noqa: E501
        :type: float
        """

        self._cost = cost

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


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

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


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

        self._data = data

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


        :return: The deleted of this FarmResourceDto.  # noqa: E501
        :rtype: bool
        """
        return self._deleted

    @deleted.setter
    def deleted(self, deleted):
        """Sets the deleted of this FarmResourceDto.


        :param deleted: The deleted of this FarmResourceDto.  # noqa: E501
        :type: bool
        """

        self._deleted = deleted

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


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

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


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

        self._description = description

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


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

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


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

        self._id = id

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


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

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


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

        self._images = images

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


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

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


        :param name: The name of this FarmResourceDto.  # 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 owner_first_name(self):
        """Gets the owner_first_name of this FarmResourceDto.  # noqa: E501


        :return: The owner_first_name of this FarmResourceDto.  # noqa: E501
        :rtype: str
        """
        return self._owner_first_name

    @owner_first_name.setter
    def owner_first_name(self, owner_first_name):
        """Sets the owner_first_name of this FarmResourceDto.


        :param owner_first_name: The owner_first_name of this FarmResourceDto.  # noqa: E501
        :type: str
        """

        self._owner_first_name = owner_first_name

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


        :return: The owner_id of this FarmResourceDto.  # noqa: E501
        :rtype: int
        """
        return self._owner_id

    @owner_id.setter
    def owner_id(self, owner_id):
        """Sets the owner_id of this FarmResourceDto.


        :param owner_id: The owner_id of this FarmResourceDto.  # noqa: E501
        :type: int
        """

        self._owner_id = owner_id

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


        :return: The type_id of this FarmResourceDto.  # noqa: E501
        :rtype: int
        """
        return self._type_id

    @type_id.setter
    def type_id(self, type_id):
        """Sets the type_id of this FarmResourceDto.


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

        self._type_id = type_id

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


        :return: The type_name of this FarmResourceDto.  # noqa: E501
        :rtype: str
        """
        return self._type_name

    @type_name.setter
    def type_name(self, type_name):
        """Sets the type_name of this FarmResourceDto.


        :param type_name: The type_name of this FarmResourceDto.  # noqa: E501
        :type: str
        """

        self._type_name = type_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(FarmResourceDto, 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, FarmResourceDto):
            return False

        return self.__dict__ == other.__dict__

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