Interface CreateAiRecommendationJobRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateAiRecommendationJobRequest.Builder,,CreateAiRecommendationJobRequest> SageMakerRequest.Builder,SdkBuilder<CreateAiRecommendationJobRequest.Builder,,CreateAiRecommendationJobRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateAiRecommendationJobRequest
-
Method Summary
Modifier and TypeMethodDescriptionaiRecommendationJobName(String aiRecommendationJobName) The name of the AI recommendation job.aiWorkloadConfigIdentifier(String aiWorkloadConfigIdentifier) The name or Amazon Resource Name (ARN) of the AI workload configuration to use for this recommendation job.computeSpec(Consumer<AIRecommendationComputeSpec.Builder> computeSpec) The compute resource specification for the recommendation job.computeSpec(AIRecommendationComputeSpec computeSpec) The compute resource specification for the recommendation job.inferenceSpecification(Consumer<AIRecommendationInferenceSpecification.Builder> inferenceSpecification) The inference framework configuration.inferenceSpecification(AIRecommendationInferenceSpecification inferenceSpecification) The inference framework configuration.modelSource(Consumer<AIModelSource.Builder> modelSource) The source of the model to optimize.modelSource(AIModelSource modelSource) The source of the model to optimize.optimizeModel(Boolean optimizeModel) Whether to allow model optimization techniques such as quantization, speculative decoding, and kernel tuning.outputConfig(Consumer<AIRecommendationOutputConfig.Builder> outputConfig) The output configuration for the recommendation job, including the Amazon S3 location for results and an optional model package group where the optimized model is registered.outputConfig(AIRecommendationOutputConfig outputConfig) The output configuration for the recommendation job, including the Amazon S3 location for results and an optional model package group where the optimized model is registered.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.performanceTarget(Consumer<AIRecommendationPerformanceTarget.Builder> performanceTarget) The performance targets for the recommendation job.performanceTarget(AIRecommendationPerformanceTarget performanceTarget) The performance targets for the recommendation job.The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker AI to perform tasks on your behalf.tags(Collection<Tag> tags) The metadata that you apply to Amazon Web Services resources to help you categorize and organize them.tags(Consumer<Tag.Builder>... tags) The metadata that you apply to Amazon Web Services resources to help you categorize and organize them.The metadata that you apply to Amazon Web Services resources to help you categorize and organize them.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.sagemaker.model.SageMakerRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
aiRecommendationJobName
The name of the AI recommendation job. The name must be unique within your Amazon Web Services account in the current Amazon Web Services Region.
- Parameters:
aiRecommendationJobName- The name of the AI recommendation job. The name must be unique within your Amazon Web Services account in the current Amazon Web Services Region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelSource
The source of the model to optimize. Specify the Amazon S3 location of the model artifacts.
- Parameters:
modelSource- The source of the model to optimize. Specify the Amazon S3 location of the model artifacts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelSource
default CreateAiRecommendationJobRequest.Builder modelSource(Consumer<AIModelSource.Builder> modelSource) The source of the model to optimize. Specify the Amazon S3 location of the model artifacts.
This is a convenience method that creates an instance of theAIModelSource.Builderavoiding the need to create one manually viaAIModelSource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomodelSource(AIModelSource).- Parameters:
modelSource- a consumer that will call methods onAIModelSource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
outputConfig
The output configuration for the recommendation job, including the Amazon S3 location for results and an optional model package group where the optimized model is registered.
- Parameters:
outputConfig- The output configuration for the recommendation job, including the Amazon S3 location for results and an optional model package group where the optimized model is registered.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputConfig
default CreateAiRecommendationJobRequest.Builder outputConfig(Consumer<AIRecommendationOutputConfig.Builder> outputConfig) The output configuration for the recommendation job, including the Amazon S3 location for results and an optional model package group where the optimized model is registered.
This is a convenience method that creates an instance of theAIRecommendationOutputConfig.Builderavoiding the need to create one manually viaAIRecommendationOutputConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tooutputConfig(AIRecommendationOutputConfig).- Parameters:
outputConfig- a consumer that will call methods onAIRecommendationOutputConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
aiWorkloadConfigIdentifier
CreateAiRecommendationJobRequest.Builder aiWorkloadConfigIdentifier(String aiWorkloadConfigIdentifier) The name or Amazon Resource Name (ARN) of the AI workload configuration to use for this recommendation job.
- Parameters:
aiWorkloadConfigIdentifier- The name or Amazon Resource Name (ARN) of the AI workload configuration to use for this recommendation job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
performanceTarget
CreateAiRecommendationJobRequest.Builder performanceTarget(AIRecommendationPerformanceTarget performanceTarget) The performance targets for the recommendation job. Specify constraints on metrics such as time to first token (
ttft-ms),throughput, orcost.- Parameters:
performanceTarget- The performance targets for the recommendation job. Specify constraints on metrics such as time to first token (ttft-ms),throughput, orcost.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
performanceTarget
default CreateAiRecommendationJobRequest.Builder performanceTarget(Consumer<AIRecommendationPerformanceTarget.Builder> performanceTarget) The performance targets for the recommendation job. Specify constraints on metrics such as time to first token (
This is a convenience method that creates an instance of thettft-ms),throughput, orcost.AIRecommendationPerformanceTarget.Builderavoiding the need to create one manually viaAIRecommendationPerformanceTarget.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toperformanceTarget(AIRecommendationPerformanceTarget).- Parameters:
performanceTarget- a consumer that will call methods onAIRecommendationPerformanceTarget.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
roleArn
The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker AI to perform tasks on your behalf.
- Parameters:
roleArn- The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker AI to perform tasks on your behalf.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inferenceSpecification
CreateAiRecommendationJobRequest.Builder inferenceSpecification(AIRecommendationInferenceSpecification inferenceSpecification) The inference framework configuration. Specify the framework (such as LMI or vLLM) for the recommendation job.
- Parameters:
inferenceSpecification- The inference framework configuration. Specify the framework (such as LMI or vLLM) for the recommendation job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inferenceSpecification
default CreateAiRecommendationJobRequest.Builder inferenceSpecification(Consumer<AIRecommendationInferenceSpecification.Builder> inferenceSpecification) The inference framework configuration. Specify the framework (such as LMI or vLLM) for the recommendation job.
This is a convenience method that creates an instance of theAIRecommendationInferenceSpecification.Builderavoiding the need to create one manually viaAIRecommendationInferenceSpecification.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinferenceSpecification(AIRecommendationInferenceSpecification).- Parameters:
inferenceSpecification- a consumer that will call methods onAIRecommendationInferenceSpecification.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
optimizeModel
Whether to allow model optimization techniques such as quantization, speculative decoding, and kernel tuning. The default is
true.- Parameters:
optimizeModel- Whether to allow model optimization techniques such as quantization, speculative decoding, and kernel tuning. The default istrue.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
computeSpec
The compute resource specification for the recommendation job. You can specify up to 3 instance types to consider, and optionally provide capacity reservation configuration.
- Parameters:
computeSpec- The compute resource specification for the recommendation job. You can specify up to 3 instance types to consider, and optionally provide capacity reservation configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
computeSpec
default CreateAiRecommendationJobRequest.Builder computeSpec(Consumer<AIRecommendationComputeSpec.Builder> computeSpec) The compute resource specification for the recommendation job. You can specify up to 3 instance types to consider, and optionally provide capacity reservation configuration.
This is a convenience method that creates an instance of theAIRecommendationComputeSpec.Builderavoiding the need to create one manually viaAIRecommendationComputeSpec.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocomputeSpec(AIRecommendationComputeSpec).- Parameters:
computeSpec- a consumer that will call methods onAIRecommendationComputeSpec.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
The metadata that you apply to Amazon Web Services resources to help you categorize and organize them.
- Parameters:
tags- The metadata that you apply to Amazon Web Services resources to help you categorize and organize them.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The metadata that you apply to Amazon Web Services resources to help you categorize and organize them.
- Parameters:
tags- The metadata that you apply to Amazon Web Services resources to help you categorize and organize them.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The metadata that you apply to Amazon Web Services resources to help you categorize and organize them.
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
CreateAiRecommendationJobRequest.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
CreateAiRecommendationJobRequest.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.
-