Interface StartCodeInterpreterSessionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,BedrockAgentCoreRequest.Builder,Buildable,CopyableBuilder<StartCodeInterpreterSessionRequest.Builder,,StartCodeInterpreterSessionRequest> SdkBuilder<StartCodeInterpreterSessionRequest.Builder,,StartCodeInterpreterSessionRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
StartCodeInterpreterSessionRequest
-
Method Summary
Modifier and TypeMethodDescriptioncertificates(Collection<Certificate> certificates) A list of certificates to install in the code interpreter session.certificates(Consumer<Certificate.Builder>... certificates) A list of certificates to install in the code interpreter session.certificates(Certificate... certificates) A list of certificates to install in the code interpreter session.clientToken(String clientToken) A unique, case-sensitive identifier to ensure that the API request completes no more than one time.codeInterpreterIdentifier(String codeInterpreterIdentifier) The unique identifier of the code interpreter to use for this session.The name of the code interpreter session.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.sessionTimeoutSeconds(Integer sessionTimeoutSeconds) The duration in seconds (time-to-live) after which the session automatically terminates, regardless of ongoing activity.The trace identifier for request tracking.traceParent(String traceParent) The parent trace 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
-
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.
-
codeInterpreterIdentifier
StartCodeInterpreterSessionRequest.Builder codeInterpreterIdentifier(String codeInterpreterIdentifier) The unique identifier of the code interpreter to use for this session. This identifier specifies which code interpreter environment to initialize for the session.
- Parameters:
codeInterpreterIdentifier- The unique identifier of the code interpreter to use for this session. This identifier specifies which code interpreter environment to initialize for the session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the code interpreter session. This name helps you identify and manage the session. The name does not need to be unique.
- Parameters:
name- The name of the code interpreter session. This name helps you identify and manage the session. The name does not need to be unique.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionTimeoutSeconds
The duration in seconds (time-to-live) after which the session automatically terminates, regardless of ongoing activity. Defaults to 900 seconds (15 minutes). Recommended minimum: 60 seconds. Maximum allowed: 28,800 seconds (8 hours).
- Parameters:
sessionTimeoutSeconds- The duration in seconds (time-to-live) after which the session automatically terminates, regardless of ongoing activity. Defaults to 900 seconds (15 minutes). Recommended minimum: 60 seconds. Maximum allowed: 28,800 seconds (8 hours).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
certificates
A list of certificates to install in the code interpreter session.
- Parameters:
certificates- A list of certificates to install in the code interpreter session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
certificates
A list of certificates to install in the code interpreter session.
- Parameters:
certificates- A list of certificates to install in the code interpreter session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
certificates
StartCodeInterpreterSessionRequest.Builder certificates(Consumer<Certificate.Builder>... certificates) A list of certificates to install in the code interpreter session.
This is a convenience method that creates an instance of theCertificate.Builderavoiding the need to create one manually viaCertificate.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocertificates(List<Certificate>).- Parameters:
certificates- a consumer that will call methods onCertificate.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientToken
A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock AgentCore ignores the request, but does not return an error. This parameter helps prevent the creation of duplicate sessions if there are temporary network issues.
- Parameters:
clientToken- A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock AgentCore ignores the request, but does not return an error. This parameter helps prevent the creation of duplicate sessions if there are temporary network issues.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
StartCodeInterpreterSessionRequest.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
StartCodeInterpreterSessionRequest.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.
-