@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SnsChannelConfig extends Object implements Serializable, Cloneable, StructuredPojo
Contains the Amazon Resource Name (ARN) of an Amazon Simple Notification Service topic.
If you use an Amazon SNS topic in another account, you must attach a policy to it that grants DevOps Guru permission to send it notifications. DevOps Guru adds the required policy on your behalf to send notifications using Amazon SNS in your account. DevOps Guru only supports standard SNS topics. For more information, see Permissions for Amazon SNS topics.
If you use an Amazon SNS topic that is encrypted by an Amazon Web Services Key Management Service customer-managed key (CMK), then you must add permissions to the CMK. For more information, see Permissions for Amazon Web Services KMS–encrypted Amazon SNS topics.
Constructor and Description |
---|
SnsChannelConfig() |
Modifier and Type | Method and Description |
---|---|
SnsChannelConfig |
clone() |
boolean |
equals(Object obj) |
String |
getTopicArn()
The Amazon Resource Name (ARN) of an Amazon Simple Notification Service topic.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setTopicArn(String topicArn)
The Amazon Resource Name (ARN) of an Amazon Simple Notification Service topic.
|
String |
toString()
Returns a string representation of this object.
|
SnsChannelConfig |
withTopicArn(String topicArn)
The Amazon Resource Name (ARN) of an Amazon Simple Notification Service topic.
|
public void setTopicArn(String topicArn)
The Amazon Resource Name (ARN) of an Amazon Simple Notification Service topic.
topicArn
- The Amazon Resource Name (ARN) of an Amazon Simple Notification Service topic.public String getTopicArn()
The Amazon Resource Name (ARN) of an Amazon Simple Notification Service topic.
public SnsChannelConfig withTopicArn(String topicArn)
The Amazon Resource Name (ARN) of an Amazon Simple Notification Service topic.
topicArn
- The Amazon Resource Name (ARN) of an Amazon Simple Notification Service topic.public String toString()
toString
in class Object
Object.toString()
public SnsChannelConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.