Interface AwsServiceEventsSourceConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AwsServiceEventsSourceConfiguration.Builder,,AwsServiceEventsSourceConfiguration> SdkBuilder<AwsServiceEventsSourceConfiguration.Builder,,AwsServiceEventsSourceConfiguration> SdkPojo
- Enclosing class:
AwsServiceEventsSourceConfiguration
@Mutable
@NotThreadSafe
public static interface AwsServiceEventsSourceConfiguration.Builder
extends SdkPojo, CopyableBuilder<AwsServiceEventsSourceConfiguration.Builder,AwsServiceEventsSourceConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptionawsService(String awsService) Sets the value of the AwsService property for this object.onFailureConfiguration(Consumer<OnFailureConfiguration.Builder> onFailureConfiguration) The destination for events that could not be forwarded.onFailureConfiguration(OnFailureConfiguration onFailureConfiguration) The destination for events that could not be forwarded.A filter pattern, as a JSON string, that defines which of the service's events are forwarded to the event bus.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
awsService
Sets the value of the AwsService property for this object.- Parameters:
awsService- The new value for the AwsService property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pattern
A filter pattern, as a JSON string, that defines which of the service's events are forwarded to the event bus. Do not include source, account, or region as top-level fields. If no pattern is specified, all events from the service are forwarded.
- Parameters:
pattern- A filter pattern, as a JSON string, that defines which of the service's events are forwarded to the event bus. Do not include source, account, or region as top-level fields. If no pattern is specified, all events from the service are forwarded.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
onFailureConfiguration
AwsServiceEventsSourceConfiguration.Builder onFailureConfiguration(OnFailureConfiguration onFailureConfiguration) The destination for events that could not be forwarded.
- Parameters:
onFailureConfiguration- The destination for events that could not be forwarded.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
onFailureConfiguration
default AwsServiceEventsSourceConfiguration.Builder onFailureConfiguration(Consumer<OnFailureConfiguration.Builder> onFailureConfiguration) The destination for events that could not be forwarded.
This is a convenience method that creates an instance of theOnFailureConfiguration.Builderavoiding the need to create one manually viaOnFailureConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toonFailureConfiguration(OnFailureConfiguration).- Parameters:
onFailureConfiguration- a consumer that will call methods onOnFailureConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-