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
public class TopicConfiguration extends NotificationConfiguration implements Serializable
Represents the topic configuration for an Amazon S3 bucket.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TopicConfiguration()
TopicConfiguration(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getTopicARN()
Returns the topic arn for this notification configuration.void
setTopicARN(String topicARN)
Sets the topic ARN for this configurationTopicConfiguration
withTopicARN(String topicARN)
Fluent method to set the topic ARN for this configuration-
Methods inherited from class com.amazonaws.services.s3.model.NotificationConfiguration
addEvent, addEvent, addObjectPrefix, getEvents, getFilter, getObjectPrefixes, setEvents, setFilter, setObjectPrefixes, withEvents, withFilter, withObjectPrefixes
-
-
-
-
Constructor Detail
-
TopicConfiguration
public TopicConfiguration()
-
TopicConfiguration
public TopicConfiguration(String topicARN, EnumSet<S3Event> events)
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
public TopicConfiguration(String topicARN, String... events)
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 Detail
-
getTopicARN
public String getTopicARN()
Returns the topic arn for this notification configuration.
-
setTopicARN
public void setTopicARN(String topicARN)
Sets the topic ARN for this configuration- Parameters:
topicARN
- ARN for the SNS topic
-
withTopicARN
public TopicConfiguration withTopicARN(String topicARN)
Fluent method to set the topic ARN for this configuration- Parameters:
topicARN
- ARN for the SNS topic- Returns:
- This object for method chaining
-
-