All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ibm.cloud.eventnotifications.event_notifications.v1.model.SubscriptionAttributes Maven / Gradle / Ivy

/*
 * (C) Copyright IBM Corp. 2023.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
 * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations under the License.
 */
package com.ibm.cloud.eventnotifications.event_notifications.v1.model;

import java.util.List;

import com.google.gson.annotations.SerializedName;
import com.google.gson.reflect.TypeToken;
import com.ibm.cloud.sdk.core.service.model.DynamicModel;

/**
 * SubscriptionAttributes.
 *
 * Classes which extend this class:
 * - SubscriptionAttributesSMSAttributesResponse
 * - SubscriptionAttributesEmailAttributesResponse
 * - SubscriptionAttributesCustomEmailAttributesResponse
 * - SubscriptionAttributesWebhookAttributesResponse
 * - SubscriptionAttributesSlackAttributesResponse
 * - SubscriptionAttributesServiceNowAttributesResponse
 */
public class SubscriptionAttributes extends DynamicModel {

  @SerializedName("subscribed")
  protected List subscribed;
  @SerializedName("unsubscribed")
  protected List unsubscribed;
  @SerializedName("invited")
  protected List invited;
  @SerializedName("add_notification_payload")
  protected Boolean addNotificationPayload;
  @SerializedName("reply_to_mail")
  protected String replyToMail;
  @SerializedName("reply_to_name")
  protected String replyToName;
  @SerializedName("from_name")
  protected String fromName;
  @SerializedName("from_email")
  protected String fromEmail;
  @SerializedName("template_id_notification")
  protected String templateIdNotification;
  @SerializedName("template_id_invitation")
  protected String templateIdInvitation;
  @SerializedName("signing_enabled")
  protected Boolean signingEnabled;
  @SerializedName("attachment_color")
  protected String attachmentColor;
  @SerializedName("assigned_to")
  protected String assignedTo;
  @SerializedName("assignment_group")
  protected String assignmentGroup;

  protected SubscriptionAttributes() {
    super(new TypeToken() { });
  }

  /**
   * Gets the subscribed.
   *
   * The subscribed list.
   *
   * @return the subscribed
   */
  public List getSubscribed() {
    return this.subscribed;
  }

  /**
   * Gets the unsubscribed.
   *
   * The unsubscribe list.
   *
   * @return the unsubscribed
   */
  public List getUnsubscribed() {
    return this.unsubscribed;
  }

  /**
   * Gets the invited.
   *
   * The email id string.
   *
   * @return the invited
   */
  public List getInvited() {
    return this.invited;
  }

  /**
   * Gets the addNotificationPayload.
   *
   * Whether to add the notification payload to the email.
   *
   * @return the addNotificationPayload
   */
  public Boolean isAddNotificationPayload() {
    return this.addNotificationPayload;
  }

  /**
   * Gets the replyToMail.
   *
   * The email address to reply to.
   *
   * @return the replyToMail
   */
  public String getReplyToMail() {
    return this.replyToMail;
  }

  /**
   * Gets the replyToName.
   *
   * The email name to reply to.
   *
   * @return the replyToName
   */
  public String getReplyToName() {
    return this.replyToName;
  }

  /**
   * Gets the fromName.
   *
   * The email name of From.
   *
   * @return the fromName
   */
  public String getFromName() {
    return this.fromName;
  }

  /**
   * Gets the fromEmail.
   *
   * The email from.
   *
   * @return the fromEmail
   */
  public String getFromEmail() {
    return this.fromEmail;
  }

  /**
   * Gets the templateIdNotification.
   *
   * The templete id for notification.
   *
   * @return the templateIdNotification
   */
  public String getTemplateIdNotification() {
    return this.templateIdNotification;
  }

  /**
   * Gets the templateIdInvitation.
   *
   * The templete id for invitation.
   *
   * @return the templateIdInvitation
   */
  public String getTemplateIdInvitation() {
    return this.templateIdInvitation;
  }

  /**
   * Gets the signingEnabled.
   *
   * Signing webhook attributes.
   *
   * @return the signingEnabled
   */
  public Boolean isSigningEnabled() {
    return this.signingEnabled;
  }

  /**
   * Gets the attachmentColor.
   *
   * Attachment Color for Slack Notification.
   *
   * @return the attachmentColor
   */
  public String getAttachmentColor() {
    return this.attachmentColor;
  }

  /**
   * Gets the assignedTo.
   *
   * Assigned name from ServiceNow account.
   *
   * @return the assignedTo
   */
  public String getAssignedTo() {
    return this.assignedTo;
  }

  /**
   * Gets the assignmentGroup.
   *
   * Assigned group name from ServiceNow account.
   *
   * @return the assignmentGroup
   */
  public String getAssignmentGroup() {
    return this.assignmentGroup;
  }
}