Interface CreateInferenceProfileRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,BedrockRequest.Builder,Buildable,CopyableBuilder<CreateInferenceProfileRequest.Builder,,CreateInferenceProfileRequest> SdkBuilder<CreateInferenceProfileRequest.Builder,,CreateInferenceProfileRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateInferenceProfileRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientRequestToken(String clientRequestToken) A unique, case-sensitive identifier to ensure that the API request completes no more than one time.description(String description) A description for the inference profile.inferenceProfileName(String inferenceProfileName) A name for the inference profile.modelSource(Consumer<InferenceProfileModelSource.Builder> modelSource) The foundation model or system-defined inference profile that the inference profile will track metrics and costs for.modelSource(InferenceProfileModelSource modelSource) The foundation model or system-defined inference profile that the inference profile will track metrics and costs for.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.tags(Collection<Tag> tags) An array of objects, each of which contains a tag and its value.tags(Consumer<Tag.Builder>... tags) An array of objects, each of which contains a tag and its value.An array of objects, each of which contains a tag and its value.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.bedrock.model.BedrockRequest.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
-
inferenceProfileName
A name for the inference profile.
- Parameters:
inferenceProfileName- A name for the inference profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description for the inference profile.
- Parameters:
description- A description for the inference profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelSource
The foundation model or system-defined inference profile that the inference profile will track metrics and costs for.
- Parameters:
modelSource- The foundation model or system-defined inference profile that the inference profile will track metrics and costs for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelSource
default CreateInferenceProfileRequest.Builder modelSource(Consumer<InferenceProfileModelSource.Builder> modelSource) The foundation model or system-defined inference profile that the inference profile will track metrics and costs for.
This is a convenience method that creates an instance of theInferenceProfileModelSource.Builderavoiding the need to create one manually viaInferenceProfileModelSource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomodelSource(InferenceProfileModelSource).- Parameters:
modelSource- a consumer that will call methods onInferenceProfileModelSource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
An array of objects, each of which contains a tag and its value. For more information, see Tagging resources in the Amazon Bedrock User Guide.
- Parameters:
tags- An array of objects, each of which contains a tag and its value. For more information, see Tagging resources in the Amazon Bedrock User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
An array of objects, each of which contains a tag and its value. For more information, see Tagging resources in the Amazon Bedrock User Guide.
- Parameters:
tags- An array of objects, each of which contains a tag and its value. For more information, see Tagging resources in the Amazon Bedrock User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
An array of objects, each of which contains a tag and its value. For more information, see Tagging resources in the Amazon Bedrock User Guide.
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 totags(List<Tag>).- 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:
-
overrideConfiguration
CreateInferenceProfileRequest.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
CreateInferenceProfileRequest.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.
-