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 Details

    • codeInterpreterIdentifier

      InvokeCodeInterpreterRequest.Builder codeInterpreterIdentifier(String 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 with StartCodeInterpreterSession.
      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 with StartCodeInterpreterSession. 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.
    • 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

      InvokeCodeInterpreterRequest.Builder traceParent(String 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.
    • 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 the ToolArguments.Builder avoiding the need to create one manually via ToolArguments.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to arguments(ToolArguments).

      Parameters:
      arguments - a consumer that will call methods on ToolArguments.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • overrideConfiguration

      InvokeCodeInterpreterRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
    • overrideConfiguration

      Specified by:
      overrideConfiguration in interface AwsRequest.Builder