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.Builder
onPublish
(Consumer<HandlerConfig.Builder> onPublish) The configuration for theOnPublish
handler.onPublish
(HandlerConfig onPublish) The configuration for theOnPublish
handler.default HandlerConfigs.Builder
onSubscribe
(Consumer<HandlerConfig.Builder> onSubscribe) The configuration for theOnSubscribe
handler.onSubscribe
(HandlerConfig onSubscribe) The configuration for theOnSubscribe
handler.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 Details
-
onPublish
The configuration for the
OnPublish
handler.- Parameters:
onPublish
- The configuration for theOnPublish
handler.- 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 theOnPublish
handler.HandlerConfig.Builder
avoiding the need to create one manually viaHandlerConfig.builder()
.When the
Consumer
completes,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
OnSubscribe
handler.- Parameters:
onSubscribe
- The configuration for theOnSubscribe
handler.- 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 theOnSubscribe
handler.HandlerConfig.Builder
avoiding the need to create one manually viaHandlerConfig.builder()
.When the
Consumer
completes,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:
-