public class TopicConfiguration extends NotificationConfiguration implements java.io.Serializable
Constructor and Description |
---|
TopicConfiguration() |
TopicConfiguration(java.lang.String topicARN,
java.util.EnumSet<S3Event> events)
Creates a new topic configuration with the given topic arn and set of events.
|
TopicConfiguration(java.lang.String topicARN,
java.lang.String... events)
Creates a new topic configuration with the given topic arn and set of events.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getTopicARN()
Returns the topic arn for this notification configuration.
|
void |
setTopicARN(java.lang.String topicARN)
Sets the topic ARN for this configuration
|
TopicConfiguration |
withTopicARN(java.lang.String topicARN)
Fluent method to set the topic ARN for this configuration
|
addEvent, addEvent, addObjectPrefix, getEvents, getFilter, getObjectPrefixes, setEvents, setFilter, setObjectPrefixes, withEvents, withFilter, withObjectPrefixes
public TopicConfiguration()
public TopicConfiguration(java.lang.String topicARN, java.util.EnumSet<S3Event> events)
topicARN
- the Amazon SNS topic arn to which the notifications are to be sent.events
- the events for which the notifications are to be sentpublic TopicConfiguration(java.lang.String topicARN, java.lang.String... events)
topicARN
- the Amazon SNS topic arn to which the notifications are to be sent.events
- the events for which the notifications are to be sentpublic java.lang.String getTopicARN()
public void setTopicARN(java.lang.String topicARN)
topicARN
- ARN for the SNS topicpublic TopicConfiguration withTopicARN(java.lang.String topicARN)
topicARN
- ARN for the SNS topicCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.