# coding: utf-8

"""
    XMS API

    XMS is the controller of distributed storage system  # noqa: E501

    OpenAPI spec version: 3.2.14
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re  # noqa: F401
import six

# from xms_client.models.snmp_gateway import SnmpGateway  # noqa: F401,E501
# from xms_client.models.trap_receiver import TrapReceiver  # noqa: F401,E501


class SnmpRespSnmp(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 = {
        'enabled': 'bool',
        'gateways': 'list[SnmpGateway]',
        'receivers': 'list[TrapReceiver]'
    }

    attribute_map = {
        'enabled': 'enabled',
        'gateways': 'gateways',
        'receivers': 'receivers'
    }

    def __init__(self, enabled=None, gateways=None, receivers=None):  # noqa: E501
        """SnmpRespSnmp - a model defined in Swagger"""  # noqa: E501

        self._enabled = None
        self._gateways = None
        self._receivers = None
        self.discriminator = None

        self.enabled = enabled
        self.gateways = gateways
        self.receivers = receivers

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

        enable snmp or not  # noqa: E501

        :return: The enabled of this SnmpRespSnmp.  # noqa: E501
        :rtype: bool
        """
        return self._enabled

    @enabled.setter
    def enabled(self, enabled):
        """Sets the enabled of this SnmpRespSnmp.

        enable snmp or not  # noqa: E501

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

        self._enabled = enabled

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

        snmp gateways  # noqa: E501

        :return: The gateways of this SnmpRespSnmp.  # noqa: E501
        :rtype: list[SnmpGateway]
        """
        return self._gateways

    @gateways.setter
    def gateways(self, gateways):
        """Sets the gateways of this SnmpRespSnmp.

        snmp gateways  # noqa: E501

        :param gateways: The gateways of this SnmpRespSnmp.  # noqa: E501
        :type: list[SnmpGateway]
        """
        if gateways is None:
            raise ValueError("Invalid value for `gateways`, must not be `None`")  # noqa: E501

        self._gateways = gateways

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

        snmp receivers  # noqa: E501

        :return: The receivers of this SnmpRespSnmp.  # noqa: E501
        :rtype: list[TrapReceiver]
        """
        return self._receivers

    @receivers.setter
    def receivers(self, receivers):
        """Sets the receivers of this SnmpRespSnmp.

        snmp receivers  # noqa: E501

        :param receivers: The receivers of this SnmpRespSnmp.  # noqa: E501
        :type: list[TrapReceiver]
        """
        if receivers is None:
            raise ValueError("Invalid value for `receivers`, must not be `None`")  # noqa: E501

        self._receivers = receivers

    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

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

        return self.__dict__ == other.__dict__

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