# 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 SatelliteMetricsResponse(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 = {
        'boundary_id': 'str',
        'boundary_type': 'str',
        'captured_date_time': 'datetime',
        'created_date_time': 'datetime',
        'geo_hierarchy': 'list[MapOfstringAndstring]',
        'id': 'str',
        'metrics': 'Metrics',
        'model_info': 'ModelInfo',
        'modified_date_time': 'datetime',
        'org_id': 'str',
        'properties': 'object',
        'status': 'str',
        'tenant_type': 'str',
        'unit_version': 'str'
    }

    attribute_map = {
        'boundary_id': 'boundaryId',
        'boundary_type': 'boundaryType',
        'captured_date_time': 'capturedDateTime',
        'created_date_time': 'createdDateTime',
        'geo_hierarchy': 'geoHierarchy',
        'id': 'id',
        'metrics': 'metrics',
        'model_info': 'modelInfo',
        'modified_date_time': 'modifiedDateTime',
        'org_id': 'orgId',
        'properties': 'properties',
        'status': 'status',
        'tenant_type': 'tenantType',
        'unit_version': 'unitVersion'
    }

    def __init__(self, boundary_id=None, boundary_type=None, captured_date_time=None, created_date_time=None, geo_hierarchy=None, id=None, metrics=None, model_info=None, modified_date_time=None, org_id=None, properties=None, status=None, tenant_type=None, unit_version=None):  # noqa: E501
        """SatelliteMetricsResponse - a model defined in Swagger"""  # noqa: E501
        self._boundary_id = None
        self._boundary_type = None
        self._captured_date_time = None
        self._created_date_time = None
        self._geo_hierarchy = None
        self._id = None
        self._metrics = None
        self._model_info = None
        self._modified_date_time = None
        self._org_id = None
        self._properties = None
        self._status = None
        self._tenant_type = None
        self._unit_version = None
        self.discriminator = None
        if boundary_id is not None:
            self.boundary_id = boundary_id
        if boundary_type is not None:
            self.boundary_type = boundary_type
        if captured_date_time is not None:
            self.captured_date_time = captured_date_time
        if created_date_time is not None:
            self.created_date_time = created_date_time
        if geo_hierarchy is not None:
            self.geo_hierarchy = geo_hierarchy
        if id is not None:
            self.id = id
        if metrics is not None:
            self.metrics = metrics
        if model_info is not None:
            self.model_info = model_info
        if modified_date_time is not None:
            self.modified_date_time = modified_date_time
        if org_id is not None:
            self.org_id = org_id
        if properties is not None:
            self.properties = properties
        if status is not None:
            self.status = status
        if tenant_type is not None:
            self.tenant_type = tenant_type
        if unit_version is not None:
            self.unit_version = unit_version

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


        :return: The boundary_id of this SatelliteMetricsResponse.  # noqa: E501
        :rtype: str
        """
        return self._boundary_id

    @boundary_id.setter
    def boundary_id(self, boundary_id):
        """Sets the boundary_id of this SatelliteMetricsResponse.


        :param boundary_id: The boundary_id of this SatelliteMetricsResponse.  # noqa: E501
        :type: str
        """

        self._boundary_id = boundary_id

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


        :return: The boundary_type of this SatelliteMetricsResponse.  # noqa: E501
        :rtype: str
        """
        return self._boundary_type

    @boundary_type.setter
    def boundary_type(self, boundary_type):
        """Sets the boundary_type of this SatelliteMetricsResponse.


        :param boundary_type: The boundary_type of this SatelliteMetricsResponse.  # noqa: E501
        :type: str
        """
        allowed_values = ["SURVEY", "REGION", "PLOT", "TILE"]  # noqa: E501
        if boundary_type not in allowed_values:
            raise ValueError(
                "Invalid value for `boundary_type` ({0}), must be one of {1}"  # noqa: E501
                .format(boundary_type, allowed_values)
            )

        self._boundary_type = boundary_type

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


        :return: The captured_date_time of this SatelliteMetricsResponse.  # noqa: E501
        :rtype: datetime
        """
        return self._captured_date_time

    @captured_date_time.setter
    def captured_date_time(self, captured_date_time):
        """Sets the captured_date_time of this SatelliteMetricsResponse.


        :param captured_date_time: The captured_date_time of this SatelliteMetricsResponse.  # noqa: E501
        :type: datetime
        """

        self._captured_date_time = captured_date_time

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


        :return: The created_date_time of this SatelliteMetricsResponse.  # noqa: E501
        :rtype: datetime
        """
        return self._created_date_time

    @created_date_time.setter
    def created_date_time(self, created_date_time):
        """Sets the created_date_time of this SatelliteMetricsResponse.


        :param created_date_time: The created_date_time of this SatelliteMetricsResponse.  # noqa: E501
        :type: datetime
        """

        self._created_date_time = created_date_time

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


        :return: The geo_hierarchy of this SatelliteMetricsResponse.  # noqa: E501
        :rtype: list[MapOfstringAndstring]
        """
        return self._geo_hierarchy

    @geo_hierarchy.setter
    def geo_hierarchy(self, geo_hierarchy):
        """Sets the geo_hierarchy of this SatelliteMetricsResponse.


        :param geo_hierarchy: The geo_hierarchy of this SatelliteMetricsResponse.  # noqa: E501
        :type: list[MapOfstringAndstring]
        """

        self._geo_hierarchy = geo_hierarchy

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


        :return: The id of this SatelliteMetricsResponse.  # noqa: E501
        :rtype: str
        """
        return self._id

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


        :param id: The id of this SatelliteMetricsResponse.  # noqa: E501
        :type: str
        """

        self._id = id

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


        :return: The metrics of this SatelliteMetricsResponse.  # noqa: E501
        :rtype: Metrics
        """
        return self._metrics

    @metrics.setter
    def metrics(self, metrics):
        """Sets the metrics of this SatelliteMetricsResponse.


        :param metrics: The metrics of this SatelliteMetricsResponse.  # noqa: E501
        :type: Metrics
        """

        self._metrics = metrics

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


        :return: The model_info of this SatelliteMetricsResponse.  # noqa: E501
        :rtype: ModelInfo
        """
        return self._model_info

    @model_info.setter
    def model_info(self, model_info):
        """Sets the model_info of this SatelliteMetricsResponse.


        :param model_info: The model_info of this SatelliteMetricsResponse.  # noqa: E501
        :type: ModelInfo
        """

        self._model_info = model_info

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


        :return: The modified_date_time of this SatelliteMetricsResponse.  # noqa: E501
        :rtype: datetime
        """
        return self._modified_date_time

    @modified_date_time.setter
    def modified_date_time(self, modified_date_time):
        """Sets the modified_date_time of this SatelliteMetricsResponse.


        :param modified_date_time: The modified_date_time of this SatelliteMetricsResponse.  # noqa: E501
        :type: datetime
        """

        self._modified_date_time = modified_date_time

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


        :return: The org_id of this SatelliteMetricsResponse.  # noqa: E501
        :rtype: str
        """
        return self._org_id

    @org_id.setter
    def org_id(self, org_id):
        """Sets the org_id of this SatelliteMetricsResponse.


        :param org_id: The org_id of this SatelliteMetricsResponse.  # noqa: E501
        :type: str
        """

        self._org_id = org_id

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


        :return: The properties of this SatelliteMetricsResponse.  # noqa: E501
        :rtype: object
        """
        return self._properties

    @properties.setter
    def properties(self, properties):
        """Sets the properties of this SatelliteMetricsResponse.


        :param properties: The properties of this SatelliteMetricsResponse.  # noqa: E501
        :type: object
        """

        self._properties = properties

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


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

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


        :param status: The status of this SatelliteMetricsResponse.  # noqa: E501
        :type: str
        """

        self._status = status

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


        :return: The tenant_type of this SatelliteMetricsResponse.  # noqa: E501
        :rtype: str
        """
        return self._tenant_type

    @tenant_type.setter
    def tenant_type(self, tenant_type):
        """Sets the tenant_type of this SatelliteMetricsResponse.


        :param tenant_type: The tenant_type of this SatelliteMetricsResponse.  # noqa: E501
        :type: str
        """
        allowed_values = ["SMARTFARM", "SMARTFARM_PLUS", "SMARTRISK", "API_USER", "SF_PLUS_API"]  # noqa: E501
        if tenant_type not in allowed_values:
            raise ValueError(
                "Invalid value for `tenant_type` ({0}), must be one of {1}"  # noqa: E501
                .format(tenant_type, allowed_values)
            )

        self._tenant_type = tenant_type

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


        :return: The unit_version of this SatelliteMetricsResponse.  # noqa: E501
        :rtype: str
        """
        return self._unit_version

    @unit_version.setter
    def unit_version(self, unit_version):
        """Sets the unit_version of this SatelliteMetricsResponse.


        :param unit_version: The unit_version of this SatelliteMetricsResponse.  # noqa: E501
        :type: str
        """

        self._unit_version = unit_version

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

        return self.__dict__ == other.__dict__

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