@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 |
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 |
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 |
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 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.