Class TopicConfiguration

    • 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