Interface CreateInferenceProfileRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,BedrockRequest.Builder,Buildable,CopyableBuilder<CreateInferenceProfileRequest.Builder,CreateInferenceProfileRequest>,SdkBuilder<CreateInferenceProfileRequest.Builder,CreateInferenceProfileRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateInferenceProfileRequest
@Mutable @NotThreadSafe public static interface CreateInferenceProfileRequest.Builder extends BedrockRequest.Builder, SdkPojo, CopyableBuilder<CreateInferenceProfileRequest.Builder,CreateInferenceProfileRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateInferenceProfileRequest.BuilderclientRequestToken(String clientRequestToken)A unique, case-sensitive identifier to ensure that the API request completes no more than one time.CreateInferenceProfileRequest.Builderdescription(String description)A description for the inference profile.CreateInferenceProfileRequest.BuilderinferenceProfileName(String inferenceProfileName)A name for the inference profile.default CreateInferenceProfileRequest.BuildermodelSource(Consumer<InferenceProfileModelSource.Builder> modelSource)The foundation model or system-defined inference profile that the inference profile will track metrics and costs for.CreateInferenceProfileRequest.BuildermodelSource(InferenceProfileModelSource modelSource)The foundation model or system-defined inference profile that the inference profile will track metrics and costs for.CreateInferenceProfileRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateInferenceProfileRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateInferenceProfileRequest.Buildertags(Collection<Tag> tags)An array of objects, each of which contains a tag and its value.CreateInferenceProfileRequest.Buildertags(Consumer<Tag.Builder>... tags)An array of objects, each of which contains a tag and its value.CreateInferenceProfileRequest.Buildertags(Tag... tags)An array of objects, each of which contains a tag and its value.-
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
-
inferenceProfileName
CreateInferenceProfileRequest.Builder inferenceProfileName(String 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
CreateInferenceProfileRequest.Builder description(String 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
CreateInferenceProfileRequest.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.
- 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
CreateInferenceProfileRequest.Builder modelSource(InferenceProfileModelSource 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:
modelSource(InferenceProfileModelSource)
-
tags
CreateInferenceProfileRequest.Builder tags(Collection<Tag> 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
CreateInferenceProfileRequest.Builder tags(Tag... 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
CreateInferenceProfileRequest.Builder tags(Consumer<Tag.Builder>... 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 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
CreateInferenceProfileRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateInferenceProfileRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-