@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SNSConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about the SNS topic to which you want to send your alerts and the IAM role that has access to that topic.
Constructor and Description |
---|
SNSConfiguration() |
Modifier and Type | Method and Description |
---|---|
SNSConfiguration |
clone() |
boolean |
equals(Object obj) |
String |
getRoleArn()
The ARN of the IAM role that has access to the target SNS topic.
|
String |
getSnsFormat()
The format of the SNS topic.
|
String |
getSnsTopicArn()
The ARN of the target SNS topic.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setRoleArn(String roleArn)
The ARN of the IAM role that has access to the target SNS topic.
|
void |
setSnsFormat(String snsFormat)
The format of the SNS topic.
|
void |
setSnsTopicArn(String snsTopicArn)
The ARN of the target SNS topic.
|
String |
toString()
Returns a string representation of this object.
|
SNSConfiguration |
withRoleArn(String roleArn)
The ARN of the IAM role that has access to the target SNS topic.
|
SNSConfiguration |
withSnsFormat(SnsFormat snsFormat)
The format of the SNS topic.
|
SNSConfiguration |
withSnsFormat(String snsFormat)
The format of the SNS topic.
|
SNSConfiguration |
withSnsTopicArn(String snsTopicArn)
The ARN of the target SNS topic.
|
public void setRoleArn(String roleArn)
The ARN of the IAM role that has access to the target SNS topic.
roleArn
- The ARN of the IAM role that has access to the target SNS topic.public String getRoleArn()
The ARN of the IAM role that has access to the target SNS topic.
public SNSConfiguration withRoleArn(String roleArn)
The ARN of the IAM role that has access to the target SNS topic.
roleArn
- The ARN of the IAM role that has access to the target SNS topic.public void setSnsTopicArn(String snsTopicArn)
The ARN of the target SNS topic.
snsTopicArn
- The ARN of the target SNS topic.public String getSnsTopicArn()
The ARN of the target SNS topic.
public SNSConfiguration withSnsTopicArn(String snsTopicArn)
The ARN of the target SNS topic.
snsTopicArn
- The ARN of the target SNS topic.public void setSnsFormat(String snsFormat)
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.
snsFormat
- 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.
SnsFormat
public String getSnsFormat()
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.
SnsFormat
public SNSConfiguration withSnsFormat(String snsFormat)
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.
snsFormat
- 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.
SnsFormat
public SNSConfiguration withSnsFormat(SnsFormat snsFormat)
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.
snsFormat
- 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.
SnsFormat
public String toString()
toString
in class Object
Object.toString()
public SNSConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.