# 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 CompanyDto(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',
        'area_unit': 'str',
        'client_id': 'str',
        'corresponding_realm_id': 'str',
        'data': 'dict(str, object)',
        'deleted': 'bool',
        'id': 'int',
        'images': 'dict(str, object)',
        'name': 'str',
        'parent_id': 'int',
        'status': 'str',
        'tenant_name': 'str'
    }

    attribute_map = {
        'address': 'address',
        'area_unit': 'areaUnit',
        'client_id': 'clientId',
        'corresponding_realm_id': 'correspondingRealmId',
        'data': 'data',
        'deleted': 'deleted',
        'id': 'id',
        'images': 'images',
        'name': 'name',
        'parent_id': 'parentId',
        'status': 'status',
        'tenant_name': 'tenantName'
    }

    def __init__(self, address=None, area_unit=None, client_id=None, corresponding_realm_id=None, data=None, deleted=None, id=None, images=None, name=None, parent_id=None, status=None, tenant_name=None):  # noqa: E501
        """CompanyDto - a model defined in Swagger"""  # noqa: E501
        self._address = None
        self._area_unit = None
        self._client_id = None
        self._corresponding_realm_id = None
        self._data = None
        self._deleted = None
        self._id = None
        self._images = None
        self._name = None
        self._parent_id = None
        self._status = None
        self._tenant_name = None
        self.discriminator = None
        if address is not None:
            self.address = address
        if area_unit is not None:
            self.area_unit = area_unit
        if client_id is not None:
            self.client_id = client_id
        if corresponding_realm_id is not None:
            self.corresponding_realm_id = corresponding_realm_id
        if data is not None:
            self.data = data
        if deleted is not None:
            self.deleted = deleted
        if id is not None:
            self.id = id
        if images is not None:
            self.images = images
        self.name = name
        if parent_id is not None:
            self.parent_id = parent_id
        if status is not None:
            self.status = status
        if tenant_name is not None:
            self.tenant_name = tenant_name

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


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

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


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

        self._address = address

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


        :return: The area_unit of this CompanyDto.  # noqa: E501
        :rtype: str
        """
        return self._area_unit

    @area_unit.setter
    def area_unit(self, area_unit):
        """Sets the area_unit of this CompanyDto.


        :param area_unit: The area_unit of this CompanyDto.  # noqa: E501
        :type: str
        """

        self._area_unit = area_unit

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


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

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


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

        self._client_id = client_id

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


        :return: The corresponding_realm_id of this CompanyDto.  # noqa: E501
        :rtype: str
        """
        return self._corresponding_realm_id

    @corresponding_realm_id.setter
    def corresponding_realm_id(self, corresponding_realm_id):
        """Sets the corresponding_realm_id of this CompanyDto.


        :param corresponding_realm_id: The corresponding_realm_id of this CompanyDto.  # noqa: E501
        :type: str
        """

        self._corresponding_realm_id = corresponding_realm_id

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


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

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


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

        self._data = data

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


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

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


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

        self._deleted = deleted

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


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

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


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

        self._id = id

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


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

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


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

        self._images = images

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


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

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


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


        :return: The parent_id of this CompanyDto.  # noqa: E501
        :rtype: int
        """
        return self._parent_id

    @parent_id.setter
    def parent_id(self, parent_id):
        """Sets the parent_id of this CompanyDto.


        :param parent_id: The parent_id of this CompanyDto.  # noqa: E501
        :type: int
        """

        self._parent_id = parent_id

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


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

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


        :param status: The status of this CompanyDto.  # noqa: E501
        :type: str
        """
        allowed_values = ["ACTIVE", "TRIAL", "DEMO", "DISABLE", "DELETE"]  # noqa: E501
        if status not in allowed_values:
            raise ValueError(
                "Invalid value for `status` ({0}), must be one of {1}"  # noqa: E501
                .format(status, allowed_values)
            )

        self._status = status

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


        :return: The tenant_name of this CompanyDto.  # noqa: E501
        :rtype: str
        """
        return self._tenant_name

    @tenant_name.setter
    def tenant_name(self, tenant_name):
        """Sets the tenant_name of this CompanyDto.


        :param tenant_name: The tenant_name of this CompanyDto.  # noqa: E501
        :type: str
        """

        self._tenant_name = tenant_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(CompanyDto, 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, CompanyDto):
            return False

        return self.__dict__ == other.__dict__

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