Interface UserTurnOutputSpecification.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<UserTurnOutputSpecification.Builder,,UserTurnOutputSpecification> SdkBuilder<UserTurnOutputSpecification.Builder,,UserTurnOutputSpecification> SdkPojo
- Enclosing class:
UserTurnOutputSpecification
public static interface UserTurnOutputSpecification.Builder
extends SdkPojo, CopyableBuilder<UserTurnOutputSpecification.Builder,UserTurnOutputSpecification>
-
Method Summary
Modifier and TypeMethodDescriptionactiveContexts(Collection<ActiveContext> activeContexts) The contexts that are active in the turn.activeContexts(Consumer<ActiveContext.Builder>... activeContexts) The contexts that are active in the turn.activeContexts(ActiveContext... activeContexts) The contexts that are active in the turn.intent(Consumer<UserTurnIntentOutput.Builder> intent) Contains information about the intent.intent(UserTurnIntentOutput intent) Contains information about the intent.transcript(String transcript) The transcript that is output for the user turn by the test execution.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, sdkFields
-
Method Details
-
intent
Contains information about the intent.
- Parameters:
intent- Contains information about the intent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
intent
Contains information about the intent.
This is a convenience method that creates an instance of theUserTurnIntentOutput.Builderavoiding the need to create one manually viaUserTurnIntentOutput.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tointent(UserTurnIntentOutput).- Parameters:
intent- a consumer that will call methods onUserTurnIntentOutput.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
activeContexts
The contexts that are active in the turn.
- Parameters:
activeContexts- The contexts that are active in the turn.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
activeContexts
The contexts that are active in the turn.
- Parameters:
activeContexts- The contexts that are active in the turn.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
activeContexts
UserTurnOutputSpecification.Builder activeContexts(Consumer<ActiveContext.Builder>... activeContexts) The contexts that are active in the turn.
This is a convenience method that creates an instance of theActiveContext.Builderavoiding the need to create one manually viaActiveContext.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toactiveContexts(List<ActiveContext>).- Parameters:
activeContexts- a consumer that will call methods onActiveContext.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
transcript
The transcript that is output for the user turn by the test execution.
- Parameters:
transcript- The transcript that is output for the user turn by the test execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-