# coding: utf-8

"""
    IoT服务

    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)  # noqa: E501

    The version of the OpenAPI document: 1.0.0
    Generated by: https://openapi-generator.tech
"""


import pprint
import re  # noqa: F401

import six

from dhicn_iot_service.configuration import Configuration


class ModifyOnlineProcessedDatasInput(object):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """

    """
    Attributes:
      openapi_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.
    """
    openapi_types = {
        'time': 'str',
        'point_code': 'str',
        'value': 'float',
        'tag': 'str',
        'tenant_id': 'str'
    }

    attribute_map = {
        'time': 'time',
        'point_code': 'pointCode',
        'value': 'value',
        'tag': 'tag',
        'tenant_id': 'tenantId'
    }

    def __init__(self, time=None, point_code=None, value=None, tag=None, tenant_id=None, local_vars_configuration=None):  # noqa: E501
        """ModifyOnlineProcessedDatasInput - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._time = None
        self._point_code = None
        self._value = None
        self._tag = None
        self._tenant_id = None
        self.discriminator = None

        self.time = time
        self.point_code = point_code
        self.value = value
        self.tag = tag
        self.tenant_id = tenant_id

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

        时间 time  # noqa: E501

        :return: The time of this ModifyOnlineProcessedDatasInput.  # noqa: E501
        :rtype: str
        """
        return self._time

    @time.setter
    def time(self, time):
        """Sets the time of this ModifyOnlineProcessedDatasInput.

        时间 time  # noqa: E501

        :param time: The time of this ModifyOnlineProcessedDatasInput.  # noqa: E501
        :type: str
        """
        if self.local_vars_configuration.client_side_validation and time is None:  # noqa: E501
            raise ValueError("Invalid value for `time`, must not be `None`")  # noqa: E501

        self._time = time

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

        在线点位代码 online point code  # noqa: E501

        :return: The point_code of this ModifyOnlineProcessedDatasInput.  # noqa: E501
        :rtype: str
        """
        return self._point_code

    @point_code.setter
    def point_code(self, point_code):
        """Sets the point_code of this ModifyOnlineProcessedDatasInput.

        在线点位代码 online point code  # noqa: E501

        :param point_code: The point_code of this ModifyOnlineProcessedDatasInput.  # noqa: E501
        :type: str
        """
        if self.local_vars_configuration.client_side_validation and point_code is None:  # noqa: E501
            raise ValueError("Invalid value for `point_code`, must not be `None`")  # noqa: E501

        self._point_code = point_code

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

        清洗后的值 cleaned value  # noqa: E501

        :return: The value of this ModifyOnlineProcessedDatasInput.  # noqa: E501
        :rtype: float
        """
        return self._value

    @value.setter
    def value(self, value):
        """Sets the value of this ModifyOnlineProcessedDatasInput.

        清洗后的值 cleaned value  # noqa: E501

        :param value: The value of this ModifyOnlineProcessedDatasInput.  # noqa: E501
        :type: float
        """
        if self.local_vars_configuration.client_side_validation and value is None:  # noqa: E501
            raise ValueError("Invalid value for `value`, must not be `None`")  # noqa: E501

        self._value = value

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

        清洗标签 clean tag  # noqa: E501

        :return: The tag of this ModifyOnlineProcessedDatasInput.  # noqa: E501
        :rtype: str
        """
        return self._tag

    @tag.setter
    def tag(self, tag):
        """Sets the tag of this ModifyOnlineProcessedDatasInput.

        清洗标签 clean tag  # noqa: E501

        :param tag: The tag of this ModifyOnlineProcessedDatasInput.  # noqa: E501
        :type: str
        """

        self._tag = tag

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

        租户ID tenant id  # noqa: E501

        :return: The tenant_id of this ModifyOnlineProcessedDatasInput.  # noqa: E501
        :rtype: str
        """
        return self._tenant_id

    @tenant_id.setter
    def tenant_id(self, tenant_id):
        """Sets the tenant_id of this ModifyOnlineProcessedDatasInput.

        租户ID tenant id  # noqa: E501

        :param tenant_id: The tenant_id of this ModifyOnlineProcessedDatasInput.  # noqa: E501
        :type: str
        """

        self._tenant_id = tenant_id

    def to_dict(self):
        """Returns the model properties as a dict"""
        result = {}

        for attr, _ in six.iteritems(self.openapi_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

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

        return self.to_dict() == other.to_dict()

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

        return self.to_dict() != other.to_dict()
