Interface TopicConfiguration.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<TopicConfiguration.Builder,TopicConfiguration>
,SdkBuilder<TopicConfiguration.Builder,TopicConfiguration>
,SdkPojo
- Enclosing class:
- TopicConfiguration
public static interface TopicConfiguration.Builder extends SdkPojo, CopyableBuilder<TopicConfiguration.Builder,TopicConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description TopicConfiguration.Builder
events(Collection<Event> events)
The Amazon S3 bucket event about which to send notifications.TopicConfiguration.Builder
events(Event... events)
The Amazon S3 bucket event about which to send notifications.TopicConfiguration.Builder
eventsWithStrings(String... events)
The Amazon S3 bucket event about which to send notifications.TopicConfiguration.Builder
eventsWithStrings(Collection<String> events)
The Amazon S3 bucket event about which to send notifications.default TopicConfiguration.Builder
filter(Consumer<NotificationConfigurationFilter.Builder> filter)
Sets the value of the Filter property for this object.TopicConfiguration.Builder
filter(NotificationConfigurationFilter filter)
Sets the value of the Filter property for this object.TopicConfiguration.Builder
id(String id)
Sets the value of the Id property for this object.TopicConfiguration.Builder
topicArn(String topicArn)
The Amazon Resource Name (ARN) of the Amazon SNS topic to which Amazon S3 publishes a message when it detects events of the specified type.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
id
TopicConfiguration.Builder id(String id)
Sets the value of the Id property for this object.- Parameters:
id
- The new value for the Id property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
topicArn
TopicConfiguration.Builder topicArn(String topicArn)
The Amazon Resource Name (ARN) of the Amazon SNS topic to which Amazon S3 publishes a message when it detects events of the specified type.
- Parameters:
topicArn
- The Amazon Resource Name (ARN) of the Amazon SNS topic to which Amazon S3 publishes a message when it detects events of the specified type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventsWithStrings
TopicConfiguration.Builder eventsWithStrings(Collection<String> events)
The Amazon S3 bucket event about which to send notifications. For more information, see Supported Event Types in the Amazon S3 User Guide.
- Parameters:
events
- The Amazon S3 bucket event about which to send notifications. For more information, see Supported Event Types in the Amazon S3 User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventsWithStrings
TopicConfiguration.Builder eventsWithStrings(String... events)
The Amazon S3 bucket event about which to send notifications. For more information, see Supported Event Types in the Amazon S3 User Guide.
- Parameters:
events
- The Amazon S3 bucket event about which to send notifications. For more information, see Supported Event Types in the Amazon S3 User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
events
TopicConfiguration.Builder events(Collection<Event> events)
The Amazon S3 bucket event about which to send notifications. For more information, see Supported Event Types in the Amazon S3 User Guide.
- Parameters:
events
- The Amazon S3 bucket event about which to send notifications. For more information, see Supported Event Types in the Amazon S3 User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
events
TopicConfiguration.Builder events(Event... events)
The Amazon S3 bucket event about which to send notifications. For more information, see Supported Event Types in the Amazon S3 User Guide.
- Parameters:
events
- The Amazon S3 bucket event about which to send notifications. For more information, see Supported Event Types in the Amazon S3 User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filter
TopicConfiguration.Builder filter(NotificationConfigurationFilter filter)
Sets the value of the Filter property for this object.- Parameters:
filter
- The new value for the Filter property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filter
default TopicConfiguration.Builder filter(Consumer<NotificationConfigurationFilter.Builder> filter)
Sets the value of the Filter property for this object. This is a convenience method that creates an instance of theNotificationConfigurationFilter.Builder
avoiding the need to create one manually viaNotificationConfigurationFilter.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofilter(NotificationConfigurationFilter)
.- Parameters:
filter
- a consumer that will call methods onNotificationConfigurationFilter.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
filter(NotificationConfigurationFilter)
-
-