Interface InvokeCodeInterpreterRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,BedrockAgentCoreRequest.Builder
,Buildable
,CopyableBuilder<InvokeCodeInterpreterRequest.Builder,
,InvokeCodeInterpreterRequest> SdkBuilder<InvokeCodeInterpreterRequest.Builder,
,InvokeCodeInterpreterRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
InvokeCodeInterpreterRequest
-
Method Summary
Modifier and TypeMethodDescriptionarguments
(Consumer<ToolArguments.Builder> arguments) The arguments for the code interpreter.arguments
(ToolArguments arguments) The arguments for the code interpreter.codeInterpreterIdentifier
(String codeInterpreterIdentifier) The unique identifier of the code interpreter associated with the session.The name of the code interpreter to invoke.The name of the code interpreter to invoke.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The unique identifier of the code interpreter session to use.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.bedrockagentcore.model.BedrockAgentCoreRequest.Builder
build
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 Details
-
codeInterpreterIdentifier
The unique identifier of the code interpreter associated with the session. This must match the identifier used when creating the session with
StartCodeInterpreterSession
.- Parameters:
codeInterpreterIdentifier
- The unique identifier of the code interpreter associated with the session. This must match the identifier used when creating the session withStartCodeInterpreterSession
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionId
The unique identifier of the code interpreter session to use. This must be an active session created with
StartCodeInterpreterSession
. If the session has expired or been stopped, the request will fail.- Parameters:
sessionId
- The unique identifier of the code interpreter session to use. This must be an active session created withStartCodeInterpreterSession
. If the session has expired or been stopped, the request will fail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the code interpreter to invoke.
- Parameters:
name
- The name of the code interpreter to invoke.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
name
The name of the code interpreter to invoke.
- Parameters:
name
- The name of the code interpreter to invoke.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
arguments
The arguments for the code interpreter. This includes the code to execute and any additional parameters such as the programming language, whether to clear the execution context, and other execution options. The structure of this parameter depends on the specific code interpreter being used.
- Parameters:
arguments
- The arguments for the code interpreter. This includes the code to execute and any additional parameters such as the programming language, whether to clear the execution context, and other execution options. The structure of this parameter depends on the specific code interpreter being used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arguments
The arguments for the code interpreter. This includes the code to execute and any additional parameters such as the programming language, whether to clear the execution context, and other execution options. The structure of this parameter depends on the specific code interpreter being used.
This is a convenience method that creates an instance of theToolArguments.Builder
avoiding the need to create one manually viaToolArguments.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toarguments(ToolArguments)
.- Parameters:
arguments
- a consumer that will call methods onToolArguments.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
InvokeCodeInterpreterRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
InvokeCodeInterpreterRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-