Package com.amazonaws.services.s3.model
Class TopicConfiguration
java.lang.Object
com.amazonaws.services.s3.model.NotificationConfiguration
com.amazonaws.services.s3.model.TopicConfiguration
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BucketNotificationConfiguration.TopicConfiguration
Represents the topic configuration for an Amazon S3 bucket.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTopicConfiguration
(String topicARN, String... events) Creates a new topic configuration with the given topic arn and set of events.TopicConfiguration
(String topicARN, EnumSet<S3Event> events) Creates a new topic configuration with the given topic arn and set of events. -
Method Summary
Modifier and TypeMethodDescriptionReturns the topic arn for this notification configuration.void
setTopicARN
(String topicARN) Sets the topic ARN for this configurationwithTopicARN
(String topicARN) Fluent method to set the topic ARN for this configurationMethods inherited from class com.amazonaws.services.s3.model.NotificationConfiguration
addEvent, addEvent, addObjectPrefix, getEvents, getFilter, getObjectPrefixes, setEvents, setFilter, setObjectPrefixes, withEvents, withFilter, withObjectPrefixes
-
Constructor Details
-
TopicConfiguration
public TopicConfiguration() -
TopicConfiguration
Creates a new topic configuration with the given topic arn and set of events.- Parameters:
topicARN
- the Amazon SNS topic arn to which the notifications are to be sent.events
- the events for which the notifications are to be sent
-
TopicConfiguration
Creates a new topic configuration with the given topic arn and set of events.- Parameters:
topicARN
- the Amazon SNS topic arn to which the notifications are to be sent.events
- the events for which the notifications are to be sent
-
-
Method Details
-
getTopicARN
Returns the topic arn for this notification configuration. -
setTopicARN
Sets the topic ARN for this configuration- Parameters:
topicARN
- ARN for the SNS topic
-
withTopicARN
Fluent method to set the topic ARN for this configuration- Parameters:
topicARN
- ARN for the SNS topic- Returns:
- This object for method chaining
-