Interface HandlerConfigs.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<HandlerConfigs.Builder,,HandlerConfigs> SdkBuilder<HandlerConfigs.Builder,,HandlerConfigs> SdkPojo
- Enclosing class:
HandlerConfigs
@Mutable
@NotThreadSafe
public static interface HandlerConfigs.Builder
extends SdkPojo, CopyableBuilder<HandlerConfigs.Builder,HandlerConfigs>
-
Method Summary
Modifier and TypeMethodDescriptiondefault HandlerConfigs.BuilderonPublish(Consumer<HandlerConfig.Builder> onPublish) The configuration for theOnPublishhandler.onPublish(HandlerConfig onPublish) The configuration for theOnPublishhandler.default HandlerConfigs.BuilderonSubscribe(Consumer<HandlerConfig.Builder> onSubscribe) The configuration for theOnSubscribehandler.onSubscribe(HandlerConfig onSubscribe) The configuration for theOnSubscribehandler.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
-
onPublish
The configuration for the
OnPublishhandler.- Parameters:
onPublish- The configuration for theOnPublishhandler.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
onPublish
The configuration for the
This is a convenience method that creates an instance of theOnPublishhandler.HandlerConfig.Builderavoiding the need to create one manually viaHandlerConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toonPublish(HandlerConfig).- Parameters:
onPublish- a consumer that will call methods onHandlerConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
onSubscribe
The configuration for the
OnSubscribehandler.- Parameters:
onSubscribe- The configuration for theOnSubscribehandler.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
onSubscribe
The configuration for the
This is a convenience method that creates an instance of theOnSubscribehandler.HandlerConfig.Builderavoiding the need to create one manually viaHandlerConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toonSubscribe(HandlerConfig).- Parameters:
onSubscribe- a consumer that will call methods onHandlerConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-