# 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 GroupEquipRelOutput(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 = {
        'group_id': 'str',
        'group_name': 'str',
        'equipment_id': 'str',
        'device_name': 'str',
        'device_label': 'str'
    }

    attribute_map = {
        'group_id': 'groupId',
        'group_name': 'groupName',
        'equipment_id': 'equipmentId',
        'device_name': 'deviceName',
        'device_label': 'deviceLabel'
    }

    def __init__(self, group_id=None, group_name=None, equipment_id=None, device_name=None, device_label=None, local_vars_configuration=None):  # noqa: E501
        """GroupEquipRelOutput - 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._group_id = None
        self._group_name = None
        self._equipment_id = None
        self._device_name = None
        self._device_label = None
        self.discriminator = None

        if group_id is not None:
            self.group_id = group_id
        self.group_name = group_name
        if equipment_id is not None:
            self.equipment_id = equipment_id
        self.device_name = device_name
        self.device_label = device_label

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

        分组id，关联DeviceGroupConfig的id  # noqa: E501

        :return: The group_id of this GroupEquipRelOutput.  # noqa: E501
        :rtype: str
        """
        return self._group_id

    @group_id.setter
    def group_id(self, group_id):
        """Sets the group_id of this GroupEquipRelOutput.

        分组id，关联DeviceGroupConfig的id  # noqa: E501

        :param group_id: The group_id of this GroupEquipRelOutput.  # noqa: E501
        :type: str
        """

        self._group_id = group_id

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

        分组名称  # noqa: E501

        :return: The group_name of this GroupEquipRelOutput.  # noqa: E501
        :rtype: str
        """
        return self._group_name

    @group_name.setter
    def group_name(self, group_name):
        """Sets the group_name of this GroupEquipRelOutput.

        分组名称  # noqa: E501

        :param group_name: The group_name of this GroupEquipRelOutput.  # noqa: E501
        :type: str
        """

        self._group_name = group_name

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

        资产或设备id，关联iot中的资产id或设备id  # noqa: E501

        :return: The equipment_id of this GroupEquipRelOutput.  # noqa: E501
        :rtype: str
        """
        return self._equipment_id

    @equipment_id.setter
    def equipment_id(self, equipment_id):
        """Sets the equipment_id of this GroupEquipRelOutput.

        资产或设备id，关联iot中的资产id或设备id  # noqa: E501

        :param equipment_id: The equipment_id of this GroupEquipRelOutput.  # noqa: E501
        :type: str
        """

        self._equipment_id = equipment_id

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

        设备标签  # noqa: E501

        :return: The device_name of this GroupEquipRelOutput.  # noqa: E501
        :rtype: str
        """
        return self._device_name

    @device_name.setter
    def device_name(self, device_name):
        """Sets the device_name of this GroupEquipRelOutput.

        设备标签  # noqa: E501

        :param device_name: The device_name of this GroupEquipRelOutput.  # noqa: E501
        :type: str
        """

        self._device_name = device_name

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

        设备标签 device label  # noqa: E501

        :return: The device_label of this GroupEquipRelOutput.  # noqa: E501
        :rtype: str
        """
        return self._device_label

    @device_label.setter
    def device_label(self, device_label):
        """Sets the device_label of this GroupEquipRelOutput.

        设备标签 device label  # noqa: E501

        :param device_label: The device_label of this GroupEquipRelOutput.  # noqa: E501
        :type: str
        """

        self._device_label = device_label

    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, GroupEquipRelOutput):
            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, GroupEquipRelOutput):
            return True

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