# coding: utf-8

"""
    Spotii Billing API

    API for Billing  # noqa: E501

    OpenAPI spec version: v1.0
    Contact: hello@nuclearo.com
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""

import pprint
import re  # noqa: F401

import six


class PushNotification(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 = {
        'push_notification_id': 'str',
        'callback_url': 'str',
        'created_at': 'datetime',
        'updated_at': 'datetime',
        'deleted_at': 'datetime'
    }

    attribute_map = {
        'push_notification_id': 'push_notification_id',
        'callback_url': 'callback_url',
        'created_at': 'created_at',
        'updated_at': 'updated_at',
        'deleted_at': 'deleted_at'
    }

    def __init__(self, push_notification_id=None, callback_url=None, created_at=None, updated_at=None, deleted_at=None):  # noqa: E501
        """PushNotification - a model defined in Swagger"""  # noqa: E501
        self._push_notification_id = None
        self._callback_url = None
        self._created_at = None
        self._updated_at = None
        self._deleted_at = None
        self.discriminator = None
        if push_notification_id is not None:
            self.push_notification_id = push_notification_id
        self.callback_url = callback_url
        if created_at is not None:
            self.created_at = created_at
        if updated_at is not None:
            self.updated_at = updated_at
        if deleted_at is not None:
            self.deleted_at = deleted_at

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


        :return: The push_notification_id of this PushNotification.  # noqa: E501
        :rtype: str
        """
        return self._push_notification_id

    @push_notification_id.setter
    def push_notification_id(self, push_notification_id):
        """Sets the push_notification_id of this PushNotification.


        :param push_notification_id: The push_notification_id of this PushNotification.  # noqa: E501
        :type: str
        """

        self._push_notification_id = push_notification_id

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


        :return: The callback_url of this PushNotification.  # noqa: E501
        :rtype: str
        """
        return self._callback_url

    @callback_url.setter
    def callback_url(self, callback_url):
        """Sets the callback_url of this PushNotification.


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

        self._callback_url = callback_url

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


        :return: The created_at of this PushNotification.  # noqa: E501
        :rtype: datetime
        """
        return self._created_at

    @created_at.setter
    def created_at(self, created_at):
        """Sets the created_at of this PushNotification.


        :param created_at: The created_at of this PushNotification.  # noqa: E501
        :type: datetime
        """

        self._created_at = created_at

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


        :return: The updated_at of this PushNotification.  # noqa: E501
        :rtype: datetime
        """
        return self._updated_at

    @updated_at.setter
    def updated_at(self, updated_at):
        """Sets the updated_at of this PushNotification.


        :param updated_at: The updated_at of this PushNotification.  # noqa: E501
        :type: datetime
        """

        self._updated_at = updated_at

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


        :return: The deleted_at of this PushNotification.  # noqa: E501
        :rtype: datetime
        """
        return self._deleted_at

    @deleted_at.setter
    def deleted_at(self, deleted_at):
        """Sets the deleted_at of this PushNotification.


        :param deleted_at: The deleted_at of this PushNotification.  # noqa: E501
        :type: datetime
        """

        self._deleted_at = deleted_at

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

        return self.__dict__ == other.__dict__

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