public class TopicConfiguration extends NotificationConfiguration implements Serializable
Constructor and Description |
---|
TopicConfiguration() |
TopicConfiguration(String topicARN,
EnumSet<S3Event> events)
Creates a new topic configuration with the given topic arn and set of events.
|
TopicConfiguration(String topicARN,
String... events)
Creates a new topic configuration with the given topic arn and set of events.
|
Modifier and Type | Method and Description |
---|---|
String |
getTopicARN()
Returns the topic arn for this notification configuration.
|
void |
setTopicARN(String topicARN)
Sets the topic ARN for this configuration
|
TopicConfiguration |
withTopicARN(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(String topicARN, 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(String topicARN, 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 String getTopicARN()
public void setTopicARN(String topicARN)
topicARN
- ARN for the SNS topicpublic TopicConfiguration withTopicARN(String topicARN)
topicARN
- ARN for the SNS topicCopyright © 2024. All rights reserved.