Interface FulfillmentCodeHookSettings.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<FulfillmentCodeHookSettings.Builder,FulfillmentCodeHookSettings>,SdkBuilder<FulfillmentCodeHookSettings.Builder,FulfillmentCodeHookSettings>,SdkPojo
- Enclosing class:
- FulfillmentCodeHookSettings
public static interface FulfillmentCodeHookSettings.Builder extends SdkPojo, CopyableBuilder<FulfillmentCodeHookSettings.Builder,FulfillmentCodeHookSettings>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description FulfillmentCodeHookSettings.Builderactive(Boolean active)Determines whether the fulfillment code hook is used.FulfillmentCodeHookSettings.Builderenabled(Boolean enabled)Indicates whether a Lambda function should be invoked to fulfill a specific intent.default FulfillmentCodeHookSettings.BuilderfulfillmentUpdatesSpecification(Consumer<FulfillmentUpdatesSpecification.Builder> fulfillmentUpdatesSpecification)Provides settings for update messages sent to the user for long-running Lambda fulfillment functions.FulfillmentCodeHookSettings.BuilderfulfillmentUpdatesSpecification(FulfillmentUpdatesSpecification fulfillmentUpdatesSpecification)Provides settings for update messages sent to the user for long-running Lambda fulfillment functions.default FulfillmentCodeHookSettings.BuilderpostFulfillmentStatusSpecification(Consumer<PostFulfillmentStatusSpecification.Builder> postFulfillmentStatusSpecification)Provides settings for messages sent to the user for after the Lambda fulfillment function completes.FulfillmentCodeHookSettings.BuilderpostFulfillmentStatusSpecification(PostFulfillmentStatusSpecification postFulfillmentStatusSpecification)Provides settings for messages sent to the user for after the Lambda fulfillment function completes.-
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, sdkFields
-
-
-
-
Method Detail
-
enabled
FulfillmentCodeHookSettings.Builder enabled(Boolean enabled)
Indicates whether a Lambda function should be invoked to fulfill a specific intent.
- Parameters:
enabled- Indicates whether a Lambda function should be invoked to fulfill a specific intent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
postFulfillmentStatusSpecification
FulfillmentCodeHookSettings.Builder postFulfillmentStatusSpecification(PostFulfillmentStatusSpecification postFulfillmentStatusSpecification)
Provides settings for messages sent to the user for after the Lambda fulfillment function completes. Post-fulfillment messages can be sent for both streaming and non-streaming conversations.
- Parameters:
postFulfillmentStatusSpecification- Provides settings for messages sent to the user for after the Lambda fulfillment function completes. Post-fulfillment messages can be sent for both streaming and non-streaming conversations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
postFulfillmentStatusSpecification
default FulfillmentCodeHookSettings.Builder postFulfillmentStatusSpecification(Consumer<PostFulfillmentStatusSpecification.Builder> postFulfillmentStatusSpecification)
Provides settings for messages sent to the user for after the Lambda fulfillment function completes. Post-fulfillment messages can be sent for both streaming and non-streaming conversations.
This is a convenience method that creates an instance of thePostFulfillmentStatusSpecification.Builderavoiding the need to create one manually viaPostFulfillmentStatusSpecification.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topostFulfillmentStatusSpecification(PostFulfillmentStatusSpecification).- Parameters:
postFulfillmentStatusSpecification- a consumer that will call methods onPostFulfillmentStatusSpecification.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
postFulfillmentStatusSpecification(PostFulfillmentStatusSpecification)
-
fulfillmentUpdatesSpecification
FulfillmentCodeHookSettings.Builder fulfillmentUpdatesSpecification(FulfillmentUpdatesSpecification fulfillmentUpdatesSpecification)
Provides settings for update messages sent to the user for long-running Lambda fulfillment functions. Fulfillment updates can be used only with streaming conversations.
- Parameters:
fulfillmentUpdatesSpecification- Provides settings for update messages sent to the user for long-running Lambda fulfillment functions. Fulfillment updates can be used only with streaming conversations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fulfillmentUpdatesSpecification
default FulfillmentCodeHookSettings.Builder fulfillmentUpdatesSpecification(Consumer<FulfillmentUpdatesSpecification.Builder> fulfillmentUpdatesSpecification)
Provides settings for update messages sent to the user for long-running Lambda fulfillment functions. Fulfillment updates can be used only with streaming conversations.
This is a convenience method that creates an instance of theFulfillmentUpdatesSpecification.Builderavoiding the need to create one manually viaFulfillmentUpdatesSpecification.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofulfillmentUpdatesSpecification(FulfillmentUpdatesSpecification).- Parameters:
fulfillmentUpdatesSpecification- a consumer that will call methods onFulfillmentUpdatesSpecification.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
fulfillmentUpdatesSpecification(FulfillmentUpdatesSpecification)
-
active
FulfillmentCodeHookSettings.Builder active(Boolean active)
Determines whether the fulfillment code hook is used. When
activeis false, the code hook doesn't run.- Parameters:
active- Determines whether the fulfillment code hook is used. Whenactiveis false, the code hook doesn't run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-