Interface AIRecommendation.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AIRecommendation.Builder,,AIRecommendation> SdkBuilder<AIRecommendation.Builder,,AIRecommendation> SdkPojo
- Enclosing class:
AIRecommendation
-
Method Summary
Modifier and TypeMethodDescriptiondefault AIRecommendation.BuilderadapterDetails(Consumer<AIRecommendationAdapterDetails.Builder> adapterDetails) The LoRA adapter details for this recommendation.adapterDetails(AIRecommendationAdapterDetails adapterDetails) The LoRA adapter details for this recommendation.aiBenchmarkJobArn(String aiBenchmarkJobArn) The Amazon Resource Name (ARN) of the benchmark job associated with this recommendation.default AIRecommendation.BuilderdeploymentConfiguration(Consumer<AIRecommendationDeploymentConfiguration.Builder> deploymentConfiguration) The deployment configuration for this recommendation, including the container image, instance type, instance count, and environment variables.deploymentConfiguration(AIRecommendationDeploymentConfiguration deploymentConfiguration) The deployment configuration for this recommendation, including the container image, instance type, instance count, and environment variables.expectedPerformance(Collection<AIRecommendationPerformanceMetric> expectedPerformance) The expected performance metrics for this recommendation.expectedPerformance(Consumer<AIRecommendationPerformanceMetric.Builder>... expectedPerformance) The expected performance metrics for this recommendation.expectedPerformance(AIRecommendationPerformanceMetric... expectedPerformance) The expected performance metrics for this recommendation.default AIRecommendation.BuildermodelDetails(Consumer<AIRecommendationModelDetails.Builder> modelDetails) Details about the model package associated with this recommendation.modelDetails(AIRecommendationModelDetails modelDetails) Details about the model package associated with this recommendation.optimizationDetails(Collection<AIRecommendationOptimizationDetail> optimizationDetails) The optimization techniques applied in this recommendation.optimizationDetails(Consumer<AIRecommendationOptimizationDetail.Builder>... optimizationDetails) The optimization techniques applied in this recommendation.optimizationDetails(AIRecommendationOptimizationDetail... optimizationDetails) The optimization techniques applied in this recommendation.recommendationDescription(String recommendationDescription) A description of the recommendation.Methods 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
-
recommendationDescription
A description of the recommendation.
- Parameters:
recommendationDescription- A description of the recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
optimizationDetails
AIRecommendation.Builder optimizationDetails(Collection<AIRecommendationOptimizationDetail> optimizationDetails) The optimization techniques applied in this recommendation.
- Parameters:
optimizationDetails- The optimization techniques applied in this recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
optimizationDetails
AIRecommendation.Builder optimizationDetails(AIRecommendationOptimizationDetail... optimizationDetails) The optimization techniques applied in this recommendation.
- Parameters:
optimizationDetails- The optimization techniques applied in this recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
optimizationDetails
AIRecommendation.Builder optimizationDetails(Consumer<AIRecommendationOptimizationDetail.Builder>... optimizationDetails) The optimization techniques applied in this recommendation.
This is a convenience method that creates an instance of theAIRecommendationOptimizationDetail.Builderavoiding the need to create one manually viaAIRecommendationOptimizationDetail.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tooptimizationDetails(List<AIRecommendationOptimizationDetail>).- Parameters:
optimizationDetails- a consumer that will call methods onAIRecommendationOptimizationDetail.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
modelDetails
Details about the model package associated with this recommendation.
- Parameters:
modelDetails- Details about the model package associated with this recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelDetails
default AIRecommendation.Builder modelDetails(Consumer<AIRecommendationModelDetails.Builder> modelDetails) Details about the model package associated with this recommendation.
This is a convenience method that creates an instance of theAIRecommendationModelDetails.Builderavoiding the need to create one manually viaAIRecommendationModelDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomodelDetails(AIRecommendationModelDetails).- Parameters:
modelDetails- a consumer that will call methods onAIRecommendationModelDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
deploymentConfiguration
AIRecommendation.Builder deploymentConfiguration(AIRecommendationDeploymentConfiguration deploymentConfiguration) The deployment configuration for this recommendation, including the container image, instance type, instance count, and environment variables.
- Parameters:
deploymentConfiguration- The deployment configuration for this recommendation, including the container image, instance type, instance count, and environment variables.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deploymentConfiguration
default AIRecommendation.Builder deploymentConfiguration(Consumer<AIRecommendationDeploymentConfiguration.Builder> deploymentConfiguration) The deployment configuration for this recommendation, including the container image, instance type, instance count, and environment variables.
This is a convenience method that creates an instance of theAIRecommendationDeploymentConfiguration.Builderavoiding the need to create one manually viaAIRecommendationDeploymentConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todeploymentConfiguration(AIRecommendationDeploymentConfiguration).- Parameters:
deploymentConfiguration- a consumer that will call methods onAIRecommendationDeploymentConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
aiBenchmarkJobArn
The Amazon Resource Name (ARN) of the benchmark job associated with this recommendation.
- Parameters:
aiBenchmarkJobArn- The Amazon Resource Name (ARN) of the benchmark job associated with this recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expectedPerformance
AIRecommendation.Builder expectedPerformance(Collection<AIRecommendationPerformanceMetric> expectedPerformance) The expected performance metrics for this recommendation.
- Parameters:
expectedPerformance- The expected performance metrics for this recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expectedPerformance
AIRecommendation.Builder expectedPerformance(AIRecommendationPerformanceMetric... expectedPerformance) The expected performance metrics for this recommendation.
- Parameters:
expectedPerformance- The expected performance metrics for this recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expectedPerformance
AIRecommendation.Builder expectedPerformance(Consumer<AIRecommendationPerformanceMetric.Builder>... expectedPerformance) The expected performance metrics for this recommendation.
This is a convenience method that creates an instance of theAIRecommendationPerformanceMetric.Builderavoiding the need to create one manually viaAIRecommendationPerformanceMetric.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toexpectedPerformance(List<AIRecommendationPerformanceMetric>).- Parameters:
expectedPerformance- a consumer that will call methods onAIRecommendationPerformanceMetric.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
adapterDetails
The LoRA adapter details for this recommendation. This field contains both the model package ARNs and Amazon S3 URIs for each adapter, regardless of which form was originally supplied. This field is absent when the job was created without LoRA adapters.
- Parameters:
adapterDetails- The LoRA adapter details for this recommendation. This field contains both the model package ARNs and Amazon S3 URIs for each adapter, regardless of which form was originally supplied. This field is absent when the job was created without LoRA adapters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
adapterDetails
default AIRecommendation.Builder adapterDetails(Consumer<AIRecommendationAdapterDetails.Builder> adapterDetails) The LoRA adapter details for this recommendation. This field contains both the model package ARNs and Amazon S3 URIs for each adapter, regardless of which form was originally supplied. This field is absent when the job was created without LoRA adapters.
This is a convenience method that creates an instance of theAIRecommendationAdapterDetails.Builderavoiding the need to create one manually viaAIRecommendationAdapterDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toadapterDetails(AIRecommendationAdapterDetails).- Parameters:
adapterDetails- a consumer that will call methods onAIRecommendationAdapterDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-