/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file 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.amazonaws.services.lookoutmetrics.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Contains information about the SNS topic to which you want to send your alerts and the IAM role that has access to * that topic. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class SNSConfiguration implements Serializable, Cloneable, StructuredPojo { /** ** The ARN of the IAM role that has access to the target SNS topic. *
*/ private String roleArn; /** ** The ARN of the target SNS topic. *
*/ private String snsTopicArn; /** ** The format of the SNS topic. *
*
* JSON
– Send JSON alerts with an anomaly ID and a link to the anomaly detail page. This is the
* default.
*
* LONG_TEXT
– Send human-readable alerts with information about the impacted timeseries and a link to
* the anomaly detail page. We recommend this for email.
*
* SHORT_TEXT
– Send human-readable alerts with a link to the anomaly detail page. We recommend this
* for SMS.
*
* The ARN of the IAM role that has access to the target SNS topic. *
* * @param roleArn * The ARN of the IAM role that has access to the target SNS topic. */ public void setRoleArn(String roleArn) { this.roleArn = roleArn; } /** ** The ARN of the IAM role that has access to the target SNS topic. *
* * @return The ARN of the IAM role that has access to the target SNS topic. */ public String getRoleArn() { return this.roleArn; } /** ** The ARN of the IAM role that has access to the target SNS topic. *
* * @param roleArn * The ARN of the IAM role that has access to the target SNS topic. * @return Returns a reference to this object so that method calls can be chained together. */ public SNSConfiguration withRoleArn(String roleArn) { setRoleArn(roleArn); return this; } /** ** The ARN of the target SNS topic. *
* * @param snsTopicArn * The ARN of the target SNS topic. */ public void setSnsTopicArn(String snsTopicArn) { this.snsTopicArn = snsTopicArn; } /** ** The ARN of the target SNS topic. *
* * @return The ARN of the target SNS topic. */ public String getSnsTopicArn() { return this.snsTopicArn; } /** ** The ARN of the target SNS topic. *
* * @param snsTopicArn * The ARN of the target SNS topic. * @return Returns a reference to this object so that method calls can be chained together. */ public SNSConfiguration withSnsTopicArn(String snsTopicArn) { setSnsTopicArn(snsTopicArn); return this; } /** ** The format of the SNS topic. *
*
* JSON
– Send JSON alerts with an anomaly ID and a link to the anomaly detail page. This is the
* default.
*
* LONG_TEXT
– Send human-readable alerts with information about the impacted timeseries and a link to
* the anomaly detail page. We recommend this for email.
*
* SHORT_TEXT
– Send human-readable alerts with a link to the anomaly detail page. We recommend this
* for SMS.
*
* JSON
– Send JSON alerts with an anomaly ID and a link to the anomaly detail page. This is the
* default.
*
* LONG_TEXT
– Send human-readable alerts with information about the impacted timeseries and a
* link to the anomaly detail page. We recommend this for email.
*
* SHORT_TEXT
– Send human-readable alerts with a link to the anomaly detail page. We recommend
* this for SMS.
*
* The format of the SNS topic. *
*
* JSON
– Send JSON alerts with an anomaly ID and a link to the anomaly detail page. This is the
* default.
*
* LONG_TEXT
– Send human-readable alerts with information about the impacted timeseries and a link to
* the anomaly detail page. We recommend this for email.
*
* SHORT_TEXT
– Send human-readable alerts with a link to the anomaly detail page. We recommend this
* for SMS.
*
* JSON
– Send JSON alerts with an anomaly ID and a link to the anomaly detail page. This is
* the default.
*
* LONG_TEXT
– Send human-readable alerts with information about the impacted timeseries and a
* link to the anomaly detail page. We recommend this for email.
*
* SHORT_TEXT
– Send human-readable alerts with a link to the anomaly detail page. We recommend
* this for SMS.
*
* The format of the SNS topic. *
*
* JSON
– Send JSON alerts with an anomaly ID and a link to the anomaly detail page. This is the
* default.
*
* LONG_TEXT
– Send human-readable alerts with information about the impacted timeseries and a link to
* the anomaly detail page. We recommend this for email.
*
* SHORT_TEXT
– Send human-readable alerts with a link to the anomaly detail page. We recommend this
* for SMS.
*
* JSON
– Send JSON alerts with an anomaly ID and a link to the anomaly detail page. This is the
* default.
*
* LONG_TEXT
– Send human-readable alerts with information about the impacted timeseries and a
* link to the anomaly detail page. We recommend this for email.
*
* SHORT_TEXT
– Send human-readable alerts with a link to the anomaly detail page. We recommend
* this for SMS.
*
* The format of the SNS topic. *
*
* JSON
– Send JSON alerts with an anomaly ID and a link to the anomaly detail page. This is the
* default.
*
* LONG_TEXT
– Send human-readable alerts with information about the impacted timeseries and a link to
* the anomaly detail page. We recommend this for email.
*
* SHORT_TEXT
– Send human-readable alerts with a link to the anomaly detail page. We recommend this
* for SMS.
*
* JSON
– Send JSON alerts with an anomaly ID and a link to the anomaly detail page. This is the
* default.
*
* LONG_TEXT
– Send human-readable alerts with information about the impacted timeseries and a
* link to the anomaly detail page. We recommend this for email.
*
* SHORT_TEXT
– Send human-readable alerts with a link to the anomaly detail page. We recommend
* this for SMS.
*