Interface InlineSessionState.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<InlineSessionState.Builder,InlineSessionState>
,SdkBuilder<InlineSessionState.Builder,InlineSessionState>
,SdkPojo
- Enclosing class:
- InlineSessionState
public static interface InlineSessionState.Builder extends SdkPojo, CopyableBuilder<InlineSessionState.Builder,InlineSessionState>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InlineSessionState.Builder
files(Collection<InputFile> files)
Contains information about the files used by code interpreter.InlineSessionState.Builder
files(Consumer<InputFile.Builder>... files)
Contains information about the files used by code interpreter.InlineSessionState.Builder
files(InputFile... files)
Contains information about the files used by code interpreter.InlineSessionState.Builder
invocationId(String invocationId)
The identifier of the invocation of an action.InlineSessionState.Builder
promptSessionAttributes(Map<String,String> promptSessionAttributes)
Contains attributes that persist across a session and the values of those attributes.InlineSessionState.Builder
returnControlInvocationResults(Collection<InvocationResultMember> returnControlInvocationResults)
Contains information about the results from the action group invocation.InlineSessionState.Builder
returnControlInvocationResults(Consumer<InvocationResultMember.Builder>... returnControlInvocationResults)
Contains information about the results from the action group invocation.InlineSessionState.Builder
returnControlInvocationResults(InvocationResultMember... returnControlInvocationResults)
Contains information about the results from the action group invocation.InlineSessionState.Builder
sessionAttributes(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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
files
InlineSessionState.Builder files(Collection<InputFile> files)
Contains information about the files used by code interpreter.
- Parameters:
files
- Contains information about the files used by code interpreter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
files
InlineSessionState.Builder files(InputFile... files)
Contains information about the files used by code interpreter.
- Parameters:
files
- Contains information about the files used by code interpreter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
files
InlineSessionState.Builder files(Consumer<InputFile.Builder>... files)
Contains information about the files used by code interpreter.
This is a convenience method that creates an instance of theInputFile.Builder
avoiding the need to create one manually viaInputFile.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#files(List
.) - Parameters:
files
- a consumer that will call methods onInputFile.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#files(java.util.Collection
)
-
invocationId
InlineSessionState.Builder invocationId(String invocationId)
The identifier of the invocation of an action. This value must match the
invocationId
returned in theInvokeInlineAgent
response for the action whose results are provided in thereturnControlInvocationResults
field. For more information, see Return control to the agent developer.- Parameters:
invocationId
- The identifier of the invocation of an action. This value must match theinvocationId
returned in theInvokeInlineAgent
response for the action whose results are provided in thereturnControlInvocationResults
field. For more information, see Return control to the agent developer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
promptSessionAttributes
InlineSessionState.Builder promptSessionAttributes(Map<String,String> promptSessionAttributes)
Contains attributes that persist across a session and the values of those attributes.
- Parameters:
promptSessionAttributes
- 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.
-
returnControlInvocationResults
InlineSessionState.Builder returnControlInvocationResults(Collection<InvocationResultMember> returnControlInvocationResults)
Contains information about the results from the action group invocation. For more information, see Return control to the agent developer.
If you include this field in the
sessionState
field, theinputText
field will be ignored.- Parameters:
returnControlInvocationResults
- Contains information about the results from the action group invocation. For more information, see Return control to the agent developer.If you include this field in the
sessionState
field, theinputText
field will be ignored.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
returnControlInvocationResults
InlineSessionState.Builder returnControlInvocationResults(InvocationResultMember... returnControlInvocationResults)
Contains information about the results from the action group invocation. For more information, see Return control to the agent developer.
If you include this field in the
sessionState
field, theinputText
field will be ignored.- Parameters:
returnControlInvocationResults
- Contains information about the results from the action group invocation. For more information, see Return control to the agent developer.If you include this field in the
sessionState
field, theinputText
field will be ignored.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
returnControlInvocationResults
InlineSessionState.Builder returnControlInvocationResults(Consumer<InvocationResultMember.Builder>... returnControlInvocationResults)
Contains information about the results from the action group invocation. For more information, see Return control to the agent developer.
If you include this field in the
sessionState
field, theinputText
field will be ignored.InvocationResultMember.Builder
avoiding the need to create one manually viaInvocationResultMember.builder()
.When the
Consumer
completes,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
InlineSessionState.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.
-
-