Interface PartnerEventsSourceConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PartnerEventsSourceConfiguration.Builder,,PartnerEventsSourceConfiguration> SdkBuilder<PartnerEventsSourceConfiguration.Builder,,PartnerEventsSourceConfiguration> SdkPojo
- Enclosing class:
PartnerEventsSourceConfiguration
@Mutable
@NotThreadSafe
public static interface PartnerEventsSourceConfiguration.Builder
extends SdkPojo, CopyableBuilder<PartnerEventsSourceConfiguration.Builder,PartnerEventsSourceConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptiononFailureConfiguration(Consumer<OnFailureConfiguration.Builder> onFailureConfiguration) The destination for events that could not be forwarded, covering both the forwarding target and the managed partner event bus.onFailureConfiguration(OnFailureConfiguration onFailureConfiguration) The destination for events that could not be forwarded, covering both the forwarding target and the managed partner event bus.partnerBusKmsKeyIdentifier(String partnerBusKmsKeyIdentifier) Sets the value of the PartnerBusKmsKeyIdentifier property for this object.partnerEventSourceArn(String partnerEventSourceArn) Sets the value of the PartnerEventSourceArn property for this object.A filter pattern, as a JSON string, that defines which of the partner event source'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
-
partnerEventSourceArn
Sets the value of the PartnerEventSourceArn property for this object.- Parameters:
partnerEventSourceArn- The new value for the PartnerEventSourceArn 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 partner event source's events are forwarded to the event bus. If no pattern is specified, all events from the partner event source are forwarded.
- Parameters:
pattern- A filter pattern, as a JSON string, that defines which of the partner event source's events are forwarded to the event bus. If no pattern is specified, all events from the partner event source are forwarded.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
partnerBusKmsKeyIdentifier
PartnerEventsSourceConfiguration.Builder partnerBusKmsKeyIdentifier(String partnerBusKmsKeyIdentifier) Sets the value of the PartnerBusKmsKeyIdentifier property for this object.- Parameters:
partnerBusKmsKeyIdentifier- The new value for the PartnerBusKmsKeyIdentifier property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
onFailureConfiguration
PartnerEventsSourceConfiguration.Builder onFailureConfiguration(OnFailureConfiguration onFailureConfiguration) The destination for events that could not be forwarded, covering both the forwarding target and the managed partner event bus.
- Parameters:
onFailureConfiguration- The destination for events that could not be forwarded, covering both the forwarding target and the managed partner event bus.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
onFailureConfiguration
default PartnerEventsSourceConfiguration.Builder onFailureConfiguration(Consumer<OnFailureConfiguration.Builder> onFailureConfiguration) The destination for events that could not be forwarded, covering both the forwarding target and the managed partner event bus.
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:
-