# 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 AlertNote(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 = {
        'note': 'str',
        'owner': 'str',
        'created_at': 'datetime',
        'offset': 'str'
    }

    attribute_map = {
        'note': 'note',
        'owner': 'owner',
        'created_at': 'createdAt',
        'offset': 'offset'
    }

    def __init__(self, note=None, owner=None, created_at=None, offset=None):  # noqa: E501
        """AlertNote - a model defined in OpenAPI"""  # noqa: E501

        self._note = None
        self._owner = None
        self._created_at = None
        self._offset = None
        self.discriminator = None

        if note is not None:
            self.note = note
        if owner is not None:
            self.owner = owner
        if created_at is not None:
            self.created_at = created_at
        if offset is not None:
            self.offset = offset

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


        :return: The note of this AlertNote.  # noqa: E501
        :rtype: str
        """
        return self._note

    @note.setter
    def note(self, note):
        """Sets the note of this AlertNote.


        :param note: The note of this AlertNote.  # noqa: E501
        :type: str
        """

        self._note = note

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


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

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


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

        self._owner = owner

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


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

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


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

        self._created_at = created_at

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


        :return: The offset of this AlertNote.  # noqa: E501
        :rtype: str
        """
        return self._offset

    @offset.setter
    def offset(self, offset):
        """Sets the offset of this AlertNote.


        :param offset: The offset of this AlertNote.  # noqa: E501
        :type: str
        """

        self._offset = offset

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

        return self.__dict__ == other.__dict__

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