Interface CreateProvisionedModelThroughputRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,BedrockRequest.Builder,Buildable,CopyableBuilder<CreateProvisionedModelThroughputRequest.Builder,CreateProvisionedModelThroughputRequest>,SdkBuilder<CreateProvisionedModelThroughputRequest.Builder,CreateProvisionedModelThroughputRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateProvisionedModelThroughputRequest
@Mutable @NotThreadSafe public static interface CreateProvisionedModelThroughputRequest.Builder extends BedrockRequest.Builder, SdkPojo, CopyableBuilder<CreateProvisionedModelThroughputRequest.Builder,CreateProvisionedModelThroughputRequest>
-
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.services.bedrock.model.BedrockRequest.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 Detail
-
clientRequestToken
CreateProvisionedModelThroughputRequest.Builder clientRequestToken(String clientRequestToken)
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 ignores the request, but does not return an error. For more information, see Ensuring idempotency in the Amazon S3 User Guide.
- Parameters:
clientRequestToken- 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 ignores the request, but does not return an error. For more information, see Ensuring idempotency in the Amazon S3 User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelUnits
CreateProvisionedModelThroughputRequest.Builder modelUnits(Integer modelUnits)
Number of model units to allocate. A model unit delivers a specific throughput level for the specified model. The throughput level of a model unit specifies the total number of input and output tokens that it can process and generate within a span of one minute. By default, your account has no model units for purchasing Provisioned Throughputs with commitment. You must first visit the Amazon Web Services support center to request MUs.
For model unit quotas, see Provisioned Throughput quotas in the Amazon Bedrock User Guide.
For more information about what an MU specifies, contact your Amazon Web Services account manager.
- Parameters:
modelUnits- Number of model units to allocate. A model unit delivers a specific throughput level for the specified model. The throughput level of a model unit specifies the total number of input and output tokens that it can process and generate within a span of one minute. By default, your account has no model units for purchasing Provisioned Throughputs with commitment. You must first visit the Amazon Web Services support center to request MUs.For model unit quotas, see Provisioned Throughput quotas in the Amazon Bedrock User Guide.
For more information about what an MU specifies, contact your Amazon Web Services account manager.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
provisionedModelName
CreateProvisionedModelThroughputRequest.Builder provisionedModelName(String provisionedModelName)
The name for this Provisioned Throughput.
- Parameters:
provisionedModelName- The name for this Provisioned Throughput.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelId
CreateProvisionedModelThroughputRequest.Builder modelId(String modelId)
The Amazon Resource Name (ARN) or name of the model to associate with this Provisioned Throughput. For a list of models for which you can purchase Provisioned Throughput, see Amazon Bedrock model IDs for purchasing Provisioned Throughput in the Amazon Bedrock User Guide.
- Parameters:
modelId- The Amazon Resource Name (ARN) or name of the model to associate with this Provisioned Throughput. For a list of models for which you can purchase Provisioned Throughput, see Amazon Bedrock model IDs for purchasing Provisioned Throughput in the Amazon Bedrock User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
commitmentDuration
CreateProvisionedModelThroughputRequest.Builder commitmentDuration(String commitmentDuration)
The commitment duration requested for the Provisioned Throughput. Billing occurs hourly and is discounted for longer commitment terms. To request a no-commit Provisioned Throughput, omit this field.
Custom models support all levels of commitment. To see which base models support no commitment, see Supported regions and models for Provisioned Throughput in the Amazon Bedrock User Guide
- Parameters:
commitmentDuration- The commitment duration requested for the Provisioned Throughput. Billing occurs hourly and is discounted for longer commitment terms. To request a no-commit Provisioned Throughput, omit this field.Custom models support all levels of commitment. To see which base models support no commitment, see Supported regions and models for Provisioned Throughput in the Amazon Bedrock User Guide
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
CommitmentDuration,CommitmentDuration
-
commitmentDuration
CreateProvisionedModelThroughputRequest.Builder commitmentDuration(CommitmentDuration commitmentDuration)
The commitment duration requested for the Provisioned Throughput. Billing occurs hourly and is discounted for longer commitment terms. To request a no-commit Provisioned Throughput, omit this field.
Custom models support all levels of commitment. To see which base models support no commitment, see Supported regions and models for Provisioned Throughput in the Amazon Bedrock User Guide
- Parameters:
commitmentDuration- The commitment duration requested for the Provisioned Throughput. Billing occurs hourly and is discounted for longer commitment terms. To request a no-commit Provisioned Throughput, omit this field.Custom models support all levels of commitment. To see which base models support no commitment, see Supported regions and models for Provisioned Throughput in the Amazon Bedrock User Guide
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
CommitmentDuration,CommitmentDuration
-
tags
CreateProvisionedModelThroughputRequest.Builder tags(Collection<Tag> tags)
Tags to associate with this Provisioned Throughput.
- Parameters:
tags- Tags to associate with this Provisioned Throughput.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateProvisionedModelThroughputRequest.Builder tags(Tag... tags)
Tags to associate with this Provisioned Throughput.
- Parameters:
tags- Tags to associate with this Provisioned Throughput.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateProvisionedModelThroughputRequest.Builder tags(Consumer<Tag.Builder>... tags)
Tags to associate with this Provisioned Throughput.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection)
-
overrideConfiguration
CreateProvisionedModelThroughputRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateProvisionedModelThroughputRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-