# coding: utf-8

"""
    Quickpac API

    Here you will find all public interfaces to the Quickpac system.  # noqa: E501

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

import pprint
import re  # noqa: F401

import six

class Notification(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 = {
        'communication': 'Communication',
        'service': 'str',
        'language': 'Language',
        'type': 'NotificationType',
        'dispatcher_name': 'str'
    }

    attribute_map = {
        'communication': 'Communication',
        'service': 'Service',
        'language': 'Language',
        'type': 'Type',
        'dispatcher_name': 'DispatcherName'
    }

    def __init__(self, communication=None, service=None, language=None, type=None, dispatcher_name=None):  # noqa: E501
        """Notification - a model defined in Swagger"""  # noqa: E501
        self._communication = None
        self._service = None
        self._language = None
        self._type = None
        self._dispatcher_name = None
        self.discriminator = None
        if communication is not None:
            self.communication = communication
        if service is not None:
            self.service = service
        if language is not None:
            self.language = language
        if type is not None:
            self.type = type
        if dispatcher_name is not None:
            self.dispatcher_name = dispatcher_name

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


        :return: The communication of this Notification.  # noqa: E501
        :rtype: Communication
        """
        return self._communication

    @communication.setter
    def communication(self, communication):
        """Sets the communication of this Notification.


        :param communication: The communication of this Notification.  # noqa: E501
        :type: Communication
        """

        self._communication = communication

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


        :return: The service of this Notification.  # noqa: E501
        :rtype: str
        """
        return self._service

    @service.setter
    def service(self, service):
        """Sets the service of this Notification.


        :param service: The service of this Notification.  # noqa: E501
        :type: str
        """

        self._service = service

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


        :return: The language of this Notification.  # noqa: E501
        :rtype: Language
        """
        return self._language

    @language.setter
    def language(self, language):
        """Sets the language of this Notification.


        :param language: The language of this Notification.  # noqa: E501
        :type: Language
        """

        self._language = language

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


        :return: The type of this Notification.  # noqa: E501
        :rtype: NotificationType
        """
        return self._type

    @type.setter
    def type(self, type):
        """Sets the type of this Notification.


        :param type: The type of this Notification.  # noqa: E501
        :type: NotificationType
        """

        self._type = type

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


        :return: The dispatcher_name of this Notification.  # noqa: E501
        :rtype: str
        """
        return self._dispatcher_name

    @dispatcher_name.setter
    def dispatcher_name(self, dispatcher_name):
        """Sets the dispatcher_name of this Notification.


        :param dispatcher_name: The dispatcher_name of this Notification.  # noqa: E501
        :type: str
        """

        self._dispatcher_name = dispatcher_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(Notification, 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, Notification):
            return False

        return self.__dict__ == other.__dict__

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