Interface FulfillmentCodeHookSettings.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<FulfillmentCodeHookSettings.Builder,,FulfillmentCodeHookSettings> SdkBuilder<FulfillmentCodeHookSettings.Builder,,FulfillmentCodeHookSettings> SdkPojo
- Enclosing class:
FulfillmentCodeHookSettings
-
Method Summary
Modifier and TypeMethodDescriptionDetermines whether the fulfillment code hook is used.Indicates whether a Lambda function should be invoked to fulfill a specific intent.fulfillmentUpdatesSpecification(Consumer<FulfillmentUpdatesSpecification.Builder> fulfillmentUpdatesSpecification) Provides settings for update messages sent to the user for long-running Lambda fulfillment functions.fulfillmentUpdatesSpecification(FulfillmentUpdatesSpecification fulfillmentUpdatesSpecification) Provides settings for update messages sent to the user for long-running Lambda fulfillment functions.postFulfillmentStatusSpecification(Consumer<PostFulfillmentStatusSpecification.Builder> postFulfillmentStatusSpecification) Provides settings for messages sent to the user for after the Lambda fulfillment function completes.postFulfillmentStatusSpecification(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
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
-
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:
-
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:
-
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.
-