# coding: utf-8

"""
    Python SDK for Opsgenie REST API

    Python SDK for Opsgenie REST API  # noqa: E501

    The version of the OpenAPI document: 2.0.0
    Contact: support@opsgenie.com
    Generated by: https://openapi-generator.tech
"""


import pprint
import re  # noqa: F401

import six


class BaseAlert(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 = {
        'id': 'str',
        'tiny_id': 'str',
        'alias': 'str',
        'message': 'str',
        'status': 'str',
        'acknowledged': 'bool',
        'is_seen': 'bool',
        'tags': 'list[str]',
        'snoozed': 'bool',
        'snoozed_until': 'datetime',
        'count': 'int',
        'last_occurred_at': 'datetime',
        'created_at': 'datetime',
        'updated_at': 'datetime',
        'source': 'str',
        'owner': 'str',
        'priority': 'str',
        'responders': 'list[Responder]',
        'integration': 'AlertIntegration',
        'report': 'AlertReport'
    }

    attribute_map = {
        'id': 'id',
        'tiny_id': 'tinyId',
        'alias': 'alias',
        'message': 'message',
        'status': 'status',
        'acknowledged': 'acknowledged',
        'is_seen': 'isSeen',
        'tags': 'tags',
        'snoozed': 'snoozed',
        'snoozed_until': 'snoozedUntil',
        'count': 'count',
        'last_occurred_at': 'lastOccurredAt',
        'created_at': 'createdAt',
        'updated_at': 'updatedAt',
        'source': 'source',
        'owner': 'owner',
        'priority': 'priority',
        'responders': 'responders',
        'integration': 'integration',
        'report': 'report'
    }

    def __init__(self, id=None, tiny_id=None, alias=None, message=None, status=None, acknowledged=None, is_seen=None, tags=None, snoozed=None, snoozed_until=None, count=None, last_occurred_at=None, created_at=None, updated_at=None, source=None, owner=None, priority=None, responders=None, integration=None, report=None):  # noqa: E501
        """BaseAlert - a model defined in OpenAPI"""  # noqa: E501

        self._id = None
        self._tiny_id = None
        self._alias = None
        self._message = None
        self._status = None
        self._acknowledged = None
        self._is_seen = None
        self._tags = None
        self._snoozed = None
        self._snoozed_until = None
        self._count = None
        self._last_occurred_at = None
        self._created_at = None
        self._updated_at = None
        self._source = None
        self._owner = None
        self._priority = None
        self._responders = None
        self._integration = None
        self._report = None
        self.discriminator = None

        self.id = id
        if tiny_id is not None:
            self.tiny_id = tiny_id
        if alias is not None:
            self.alias = alias
        if message is not None:
            self.message = message
        if status is not None:
            self.status = status
        if acknowledged is not None:
            self.acknowledged = acknowledged
        if is_seen is not None:
            self.is_seen = is_seen
        if tags is not None:
            self.tags = tags
        if snoozed is not None:
            self.snoozed = snoozed
        if snoozed_until is not None:
            self.snoozed_until = snoozed_until
        if count is not None:
            self.count = count
        if last_occurred_at is not None:
            self.last_occurred_at = last_occurred_at
        if created_at is not None:
            self.created_at = created_at
        if updated_at is not None:
            self.updated_at = updated_at
        if source is not None:
            self.source = source
        if owner is not None:
            self.owner = owner
        if priority is not None:
            self.priority = priority
        if responders is not None:
            self.responders = responders
        if integration is not None:
            self.integration = integration
        if report is not None:
            self.report = report

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


        :return: The id of this BaseAlert.  # noqa: E501
        :rtype: str
        """
        return self._id

    @id.setter
    def id(self, id):
        """Sets the id of this BaseAlert.


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

        self._id = id

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


        :return: The tiny_id of this BaseAlert.  # noqa: E501
        :rtype: str
        """
        return self._tiny_id

    @tiny_id.setter
    def tiny_id(self, tiny_id):
        """Sets the tiny_id of this BaseAlert.


        :param tiny_id: The tiny_id of this BaseAlert.  # noqa: E501
        :type: str
        """

        self._tiny_id = tiny_id

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


        :return: The alias of this BaseAlert.  # noqa: E501
        :rtype: str
        """
        return self._alias

    @alias.setter
    def alias(self, alias):
        """Sets the alias of this BaseAlert.


        :param alias: The alias of this BaseAlert.  # noqa: E501
        :type: str
        """

        self._alias = alias

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


        :return: The message of this BaseAlert.  # noqa: E501
        :rtype: str
        """
        return self._message

    @message.setter
    def message(self, message):
        """Sets the message of this BaseAlert.


        :param message: The message of this BaseAlert.  # noqa: E501
        :type: str
        """

        self._message = message

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


        :return: The status of this BaseAlert.  # noqa: E501
        :rtype: str
        """
        return self._status

    @status.setter
    def status(self, status):
        """Sets the status of this BaseAlert.


        :param status: The status of this BaseAlert.  # noqa: E501
        :type: str
        """

        self._status = status

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


        :return: The acknowledged of this BaseAlert.  # noqa: E501
        :rtype: bool
        """
        return self._acknowledged

    @acknowledged.setter
    def acknowledged(self, acknowledged):
        """Sets the acknowledged of this BaseAlert.


        :param acknowledged: The acknowledged of this BaseAlert.  # noqa: E501
        :type: bool
        """

        self._acknowledged = acknowledged

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


        :return: The is_seen of this BaseAlert.  # noqa: E501
        :rtype: bool
        """
        return self._is_seen

    @is_seen.setter
    def is_seen(self, is_seen):
        """Sets the is_seen of this BaseAlert.


        :param is_seen: The is_seen of this BaseAlert.  # noqa: E501
        :type: bool
        """

        self._is_seen = is_seen

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


        :return: The tags of this BaseAlert.  # noqa: E501
        :rtype: list[str]
        """
        return self._tags

    @tags.setter
    def tags(self, tags):
        """Sets the tags of this BaseAlert.


        :param tags: The tags of this BaseAlert.  # noqa: E501
        :type: list[str]
        """

        self._tags = tags

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


        :return: The snoozed of this BaseAlert.  # noqa: E501
        :rtype: bool
        """
        return self._snoozed

    @snoozed.setter
    def snoozed(self, snoozed):
        """Sets the snoozed of this BaseAlert.


        :param snoozed: The snoozed of this BaseAlert.  # noqa: E501
        :type: bool
        """

        self._snoozed = snoozed

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


        :return: The snoozed_until of this BaseAlert.  # noqa: E501
        :rtype: datetime
        """
        return self._snoozed_until

    @snoozed_until.setter
    def snoozed_until(self, snoozed_until):
        """Sets the snoozed_until of this BaseAlert.


        :param snoozed_until: The snoozed_until of this BaseAlert.  # noqa: E501
        :type: datetime
        """

        self._snoozed_until = snoozed_until

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


        :return: The count of this BaseAlert.  # noqa: E501
        :rtype: int
        """
        return self._count

    @count.setter
    def count(self, count):
        """Sets the count of this BaseAlert.


        :param count: The count of this BaseAlert.  # noqa: E501
        :type: int
        """

        self._count = count

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


        :return: The last_occurred_at of this BaseAlert.  # noqa: E501
        :rtype: datetime
        """
        return self._last_occurred_at

    @last_occurred_at.setter
    def last_occurred_at(self, last_occurred_at):
        """Sets the last_occurred_at of this BaseAlert.


        :param last_occurred_at: The last_occurred_at of this BaseAlert.  # noqa: E501
        :type: datetime
        """

        self._last_occurred_at = last_occurred_at

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


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

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


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

        self._created_at = created_at

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


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

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


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

        self._updated_at = updated_at

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


        :return: The source of this BaseAlert.  # noqa: E501
        :rtype: str
        """
        return self._source

    @source.setter
    def source(self, source):
        """Sets the source of this BaseAlert.


        :param source: The source of this BaseAlert.  # noqa: E501
        :type: str
        """

        self._source = source

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


        :return: The owner of this BaseAlert.  # noqa: E501
        :rtype: str
        """
        return self._owner

    @owner.setter
    def owner(self, owner):
        """Sets the owner of this BaseAlert.


        :param owner: The owner of this BaseAlert.  # noqa: E501
        :type: str
        """

        self._owner = owner

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


        :return: The priority of this BaseAlert.  # noqa: E501
        :rtype: str
        """
        return self._priority

    @priority.setter
    def priority(self, priority):
        """Sets the priority of this BaseAlert.


        :param priority: The priority of this BaseAlert.  # noqa: E501
        :type: str
        """

        self._priority = priority

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


        :return: The responders of this BaseAlert.  # noqa: E501
        :rtype: list[Responder]
        """
        return self._responders

    @responders.setter
    def responders(self, responders):
        """Sets the responders of this BaseAlert.


        :param responders: The responders of this BaseAlert.  # noqa: E501
        :type: list[Responder]
        """

        self._responders = responders

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


        :return: The integration of this BaseAlert.  # noqa: E501
        :rtype: AlertIntegration
        """
        return self._integration

    @integration.setter
    def integration(self, integration):
        """Sets the integration of this BaseAlert.


        :param integration: The integration of this BaseAlert.  # noqa: E501
        :type: AlertIntegration
        """

        self._integration = integration

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


        :return: The report of this BaseAlert.  # noqa: E501
        :rtype: AlertReport
        """
        return self._report

    @report.setter
    def report(self, report):
        """Sets the report of this BaseAlert.


        :param report: The report of this BaseAlert.  # noqa: E501
        :type: AlertReport
        """

        self._report = report

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

        return self.__dict__ == other.__dict__

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