Interface SessionState.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<SessionState.Builder,SessionState>,SdkBuilder<SessionState.Builder,SessionState>,SdkPojo
- Enclosing class:
- SessionState
public static interface SessionState.Builder extends SdkPojo, CopyableBuilder<SessionState.Builder,SessionState>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SessionState.BuilderinvocationId(String invocationId)The identifier of the invocation.SessionState.BuilderpromptSessionAttributes(Map<String,String> promptSessionAttributes)Contains attributes that persist across a prompt and the values of those attributes.SessionState.BuilderreturnControlInvocationResults(Collection<InvocationResultMember> returnControlInvocationResults)Contains information about the results from the action group invocation.SessionState.BuilderreturnControlInvocationResults(Consumer<InvocationResultMember.Builder>... returnControlInvocationResults)Contains information about the results from the action group invocation.SessionState.BuilderreturnControlInvocationResults(InvocationResultMember... returnControlInvocationResults)Contains information about the results from the action group invocation.SessionState.BuildersessionAttributes(Map<String,String> sessionAttributes)Contains attributes that persist across a session and the values of those attributes.-
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
-
invocationId
SessionState.Builder invocationId(String invocationId)
The identifier of the invocation.
- Parameters:
invocationId- The identifier of the invocation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
promptSessionAttributes
SessionState.Builder promptSessionAttributes(Map<String,String> promptSessionAttributes)
Contains attributes that persist across a prompt and the values of those attributes. These attributes replace the $prompt_session_attributes$ placeholder variable in the orchestration prompt template. For more information, see Prompt template placeholder variables.
- Parameters:
promptSessionAttributes- Contains attributes that persist across a prompt and the values of those attributes. These attributes replace the $prompt_session_attributes$ placeholder variable in the orchestration prompt template. For more information, see Prompt template placeholder variables.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
returnControlInvocationResults
SessionState.Builder returnControlInvocationResults(Collection<InvocationResultMember> returnControlInvocationResults)
Contains information about the results from the action group invocation.
- Parameters:
returnControlInvocationResults- Contains information about the results from the action group invocation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
returnControlInvocationResults
SessionState.Builder returnControlInvocationResults(InvocationResultMember... returnControlInvocationResults)
Contains information about the results from the action group invocation.
- Parameters:
returnControlInvocationResults- Contains information about the results from the action group invocation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
returnControlInvocationResults
SessionState.Builder returnControlInvocationResults(Consumer<InvocationResultMember.Builder>... returnControlInvocationResults)
Contains information about the results from the action group invocation.
This is a convenience method that creates an instance of theInvocationResultMember.Builderavoiding the need to create one manually viaInvocationResultMember.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#returnControlInvocationResults(List.) - Parameters:
returnControlInvocationResults- a consumer that will call methods onInvocationResultMember.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#returnControlInvocationResults(java.util.Collection)
-
sessionAttributes
SessionState.Builder sessionAttributes(Map<String,String> sessionAttributes)
Contains attributes that persist across a session and the values of those attributes.
- Parameters:
sessionAttributes- Contains attributes that persist across a session and the values of those attributes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-