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:
  • Constructor Details

    • 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 Details

    • 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