text: # coding: utf-8
  
  """
      OpsGenie REST API
  
      OpsGenie OpenAPI Specification  # noqa: E501
  
      OpenAPI spec version: 2.0.0
      
      Generated by: https://github.com/swagger-api/swagger-codegen.git
  """
  
  
  import pprint
  import re  # noqa: F401
  
  import six
  
  from opsgenie_swagger.models.email_based_incoming_feature import EmailBasedIncomingFeature  # noqa: F401,E501
  from opsgenie_swagger.models.integration import Integration  # noqa: F401,E501
  from opsgenie_swagger.models.recipient import Recipient  # noqa: F401,E501
  from opsgenie_swagger.models.team_meta import TeamMeta  # noqa: F401,E501
  
  
  class UptrendsEmailIntegration(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 = {
          'suppress_notifications': 'bool',
          'ignore_teams_from_payload': 'bool',
          'ignore_recipients_from_payload': 'bool',
          'recipients': 'list[Recipient]',
          'is_advanced': 'bool',
          'feature_type': 'str',
          'email_address': 'str',
          'email_username': 'str'
      }
  
      attribute_map = {
          'suppress_notifications': 'suppressNotifications',
          'ignore_teams_from_payload': 'ignoreTeamsFromPayload',
          'ignore_recipients_from_payload': 'ignoreRecipientsFromPayload',
          'recipients': 'recipients',
          'is_advanced': 'isAdvanced',
          'feature_type': 'feature-type',
          'email_address': 'emailAddress',
          'email_username': 'emailUsername'
      }
  
      def __init__(self, suppress_notifications=None, ignore_teams_from_payload=None, ignore_recipients_from_payload=None, recipients=None, is_advanced=None, feature_type=None, email_address=None, email_username=None):  # noqa: E501
          """UptrendsEmailIntegration - a model defined in Swagger"""  # noqa: E501
  
          self._suppress_notifications = None
          self._ignore_teams_from_payload = None
          self._ignore_recipients_from_payload = None
          self._recipients = None
          self._is_advanced = None
          self._feature_type = None
          self._email_address = None
          self._email_username = None
          self.discriminator = None
  
          if suppress_notifications is not None:
              self.suppress_notifications = suppress_notifications
          if ignore_teams_from_payload is not None:
              self.ignore_teams_from_payload = ignore_teams_from_payload
          if ignore_recipients_from_payload is not None:
              self.ignore_recipients_from_payload = ignore_recipients_from_payload
          if recipients is not None:
              self.recipients = recipients
          if is_advanced is not None:
              self.is_advanced = is_advanced
          if feature_type is not None:
              self.feature_type = feature_type
          if email_address is not None:
              self.email_address = email_address
          if email_username is not None:
              self.email_username = email_username
  
      @property
      def suppress_notifications(self):
          """Gets the suppress_notifications of this UptrendsEmailIntegration.  # noqa: E501
  
          If enabled, notifications that come from alerts will be suppressed. Defaults to false  # noqa: E501
  
          :return: The suppress_notifications of this UptrendsEmailIntegration.  # noqa: E501
          :rtype: bool
          """
          return self._suppress_notifications
  
      @suppress_notifications.setter
      def suppress_notifications(self, suppress_notifications):
          """Sets the suppress_notifications of this UptrendsEmailIntegration.
  
          If enabled, notifications that come from alerts will be suppressed. Defaults to false  # noqa: E501
  
          :param suppress_notifications: The suppress_notifications of this UptrendsEmailIntegration.  # noqa: E501
          :type: bool
          """
  
          self._suppress_notifications = suppress_notifications
  
      @property
      def ignore_teams_from_payload(self):
          """Gets the ignore_teams_from_payload of this UptrendsEmailIntegration.  # noqa: E501
  
          If enabled, the integration will ignore teams sent in request payloads. Defaults to false  # noqa: E501
  
          :return: The ignore_teams_from_payload of this UptrendsEmailIntegration.  # noqa: E501
          :rtype: bool
          """
          return self._ignore_teams_from_payload
  
      @ignore_teams_from_payload.setter
      def ignore_teams_from_payload(self, ignore_teams_from_payload):
          """Sets the ignore_teams_from_payload of this UptrendsEmailIntegration.
  
          If enabled, the integration will ignore teams sent in request payloads. Defaults to false  # noqa: E501
  
          :param ignore_teams_from_payload: The ignore_teams_from_payload of this UptrendsEmailIntegration.  # noqa: E501
          :type: bool
          """
  
          self._ignore_teams_from_payload = ignore_teams_from_payload
  
      @property
      def ignore_recipients_from_payload(self):
          """Gets the ignore_recipients_from_payload of this UptrendsEmailIntegration.  # noqa: E501
  
          If enabled, the integration will ignore recipients sent in request payloads. Defaults to false  # noqa: E501
  
          :return: The ignore_recipients_from_payload of this UptrendsEmailIntegration.  # noqa: E501
          :rtype: bool
          """
          return self._ignore_recipients_from_payload
  
      @ignore_recipients_from_payload.setter
      def ignore_recipients_from_payload(self, ignore_recipients_from_payload):
          """Sets the ignore_recipients_from_payload of this UptrendsEmailIntegration.
  
          If enabled, the integration will ignore recipients sent in request payloads. Defaults to false  # noqa: E501
  
          :param ignore_recipients_from_payload: The ignore_recipients_from_payload of this UptrendsEmailIntegration.  # noqa: E501
          :type: bool
          """
  
          self._ignore_recipients_from_payload = ignore_recipients_from_payload
  
      @property
      def recipients(self):
          """Gets the recipients of this UptrendsEmailIntegration.  # noqa: E501
  
          Optional user, schedule, teams or escalation names to calculate which users will receive the notifications of the alert. Recipients which are exceeding the limit are ignored  # noqa: E501
  
          :return: The recipients of this UptrendsEmailIntegration.  # noqa: E501
          :rtype: list[Recipient]
          """
          return self._recipients
  
      @recipients.setter
      def recipients(self, recipients):
          """Sets the recipients of this UptrendsEmailIntegration.
  
          Optional user, schedule, teams or escalation names to calculate which users will receive the notifications of the alert. Recipients which are exceeding the limit are ignored  # noqa: E501
  
          :param recipients: The recipients of this UptrendsEmailIntegration.  # noqa: E501
          :type: list[Recipient]
          """
  
          self._recipients = recipients
  
      @property
      def is_advanced(self):
          """Gets the is_advanced of this UptrendsEmailIntegration.  # noqa: E501
  
  
          :return: The is_advanced of this UptrendsEmailIntegration.  # noqa: E501
          :rtype: bool
          """
          return self._is_advanced
  
      @is_advanced.setter
      def is_advanced(self, is_advanced):
          """Sets the is_advanced of this UptrendsEmailIntegration.
  
  
          :param is_advanced: The is_advanced of this UptrendsEmailIntegration.  # noqa: E501
          :type: bool
          """
  
          self._is_advanced = is_advanced
  
      @property
      def feature_type(self):
          """Gets the feature_type of this UptrendsEmailIntegration.  # noqa: E501
  
  
          :return: The feature_type of this UptrendsEmailIntegration.  # noqa: E501
          :rtype: str
          """
          return self._feature_type
  
      @feature_type.setter
      def feature_type(self, feature_type):
          """Sets the feature_type of this UptrendsEmailIntegration.
  
  
          :param feature_type: The feature_type of this UptrendsEmailIntegration.  # noqa: E501
          :type: str
          """
          allowed_values = ["email-based", "token-based"]  # noqa: E501
          if feature_type not in allowed_values:
              raise ValueError(
                  "Invalid value for `feature_type` ({0}), must be one of {1}"  # noqa: E501
                  .format(feature_type, allowed_values)
              )
  
          self._feature_type = feature_type
  
      @property
      def email_address(self):
          """Gets the email_address of this UptrendsEmailIntegration.  # noqa: E501
  
  
          :return: The email_address of this UptrendsEmailIntegration.  # noqa: E501
          :rtype: str
          """
          return self._email_address
  
      @email_address.setter
      def email_address(self, email_address):
          """Sets the email_address of this UptrendsEmailIntegration.
  
  
          :param email_address: The email_address of this UptrendsEmailIntegration.  # noqa: E501
          :type: str
          """
  
          self._email_address = email_address
  
      @property
      def email_username(self):
          """Gets the email_username of this UptrendsEmailIntegration.  # noqa: E501
  
          The username part of the email address. It must be unique for each integration  # noqa: E501
  
          :return: The email_username of this UptrendsEmailIntegration.  # noqa: E501
          :rtype: str
          """
          return self._email_username
  
      @email_username.setter
      def email_username(self, email_username):
          """Sets the email_username of this UptrendsEmailIntegration.
  
          The username part of the email address. It must be unique for each integration  # noqa: E501
  
          :param email_username: The email_username of this UptrendsEmailIntegration.  # noqa: E501
          :type: str
          """
  
          self._email_username = email_username
  
      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, UptrendsEmailIntegration):
              return False
  
          return self.__dict__ == other.__dict__
  
      def __ne__(self, other):
          """Returns true if both objects are not equal"""
          return not self == other
  