Interface InvokeAgentRuntimeCommandRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,BedrockAgentCoreRequest.Builder,Buildable,CopyableBuilder<InvokeAgentRuntimeCommandRequest.Builder,,InvokeAgentRuntimeCommandRequest> SdkBuilder<InvokeAgentRuntimeCommandRequest.Builder,,InvokeAgentRuntimeCommandRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
InvokeAgentRuntimeCommandRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe desired MIME type for the response from the agent runtime command.The identifier of the Amazon Web Services account for the agent runtime resource.agentRuntimeArn(String agentRuntimeArn) The Amazon Resource Name (ARN) of the agent runtime on which to execute the command.Additional context information for distributed tracing.The request body containing the command to execute and optional configuration parameters such as timeout settings.The request body containing the command to execute and optional configuration parameters such as timeout settings.contentType(String contentType) The MIME type of the input data in the request payload.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The qualifier to use for the agent runtime.runtimeSessionId(String runtimeSessionId) The unique identifier of the runtime session in which to execute the command.The trace identifier for request tracking.traceParent(String traceParent) The parent trace information for distributed tracing.traceState(String traceState) The trace state information for distributed tracing.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.bedrockagentcore.model.BedrockAgentCoreRequest.Builder
buildMethods 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
-
contentType
The MIME type of the input data in the request payload. This tells the agent runtime how to interpret the payload data. Common values include application/json for JSON data.
- Parameters:
contentType- The MIME type of the input data in the request payload. This tells the agent runtime how to interpret the payload data. Common values include application/json for JSON data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accept
The desired MIME type for the response from the agent runtime command. This tells the agent runtime what format to use for the response data. Common values include application/json for JSON data.
- Parameters:
accept- The desired MIME type for the response from the agent runtime command. This tells the agent runtime what format to use for the response data. Common values include application/json for JSON data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
runtimeSessionId
The unique identifier of the runtime session in which to execute the command. This session ID is used to maintain state and context across multiple command invocations.
- Parameters:
runtimeSessionId- The unique identifier of the runtime session in which to execute the command. This session ID is used to maintain state and context across multiple command invocations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
traceId
The trace identifier for request tracking.
- Parameters:
traceId- The trace identifier for request tracking.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
traceParent
The parent trace information for distributed tracing.
- Parameters:
traceParent- The parent trace information for distributed tracing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
traceState
The trace state information for distributed tracing.
- Parameters:
traceState- The trace state information for distributed tracing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
baggage
Additional context information for distributed tracing.
- Parameters:
baggage- Additional context information for distributed tracing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agentRuntimeArn
The Amazon Resource Name (ARN) of the agent runtime on which to execute the command. This identifies the specific agent runtime environment where the command will run.
- Parameters:
agentRuntimeArn- The Amazon Resource Name (ARN) of the agent runtime on which to execute the command. This identifies the specific agent runtime environment where the command will run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
qualifier
The qualifier to use for the agent runtime. This is an endpoint name that points to a specific version. If not specified, Amazon Bedrock AgentCore uses the default endpoint of the agent runtime.
- Parameters:
qualifier- The qualifier to use for the agent runtime. This is an endpoint name that points to a specific version. If not specified, Amazon Bedrock AgentCore uses the default endpoint of the agent runtime.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accountId
The identifier of the Amazon Web Services account for the agent runtime resource. This parameter is required when you specify an agent ID instead of the full ARN for
agentRuntimeArn.- Parameters:
accountId- The identifier of the Amazon Web Services account for the agent runtime resource. This parameter is required when you specify an agent ID instead of the full ARN foragentRuntimeArn.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
body
The request body containing the command to execute and optional configuration parameters such as timeout settings.
- Parameters:
body- The request body containing the command to execute and optional configuration parameters such as timeout settings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
body
default InvokeAgentRuntimeCommandRequest.Builder body(Consumer<InvokeAgentRuntimeCommandRequestBody.Builder> body) The request body containing the command to execute and optional configuration parameters such as timeout settings.
This is a convenience method that creates an instance of theInvokeAgentRuntimeCommandRequestBody.Builderavoiding the need to create one manually viaInvokeAgentRuntimeCommandRequestBody.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tobody(InvokeAgentRuntimeCommandRequestBody).- Parameters:
body- a consumer that will call methods onInvokeAgentRuntimeCommandRequestBody.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
InvokeAgentRuntimeCommandRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
InvokeAgentRuntimeCommandRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-