Interface AIRecommendationPerformanceTarget.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AIRecommendationPerformanceTarget.Builder,,AIRecommendationPerformanceTarget> SdkBuilder<AIRecommendationPerformanceTarget.Builder,,AIRecommendationPerformanceTarget> SdkPojo
- Enclosing class:
AIRecommendationPerformanceTarget
@Mutable
@NotThreadSafe
public static interface AIRecommendationPerformanceTarget.Builder
extends SdkPojo, CopyableBuilder<AIRecommendationPerformanceTarget.Builder,AIRecommendationPerformanceTarget>
-
Method Summary
Modifier and TypeMethodDescriptionconstraints(Collection<AIRecommendationConstraint> constraints) An array of performance constraints that define the optimization objectives.constraints(Consumer<AIRecommendationConstraint.Builder>... constraints) An array of performance constraints that define the optimization objectives.constraints(AIRecommendationConstraint... constraints) An array of performance constraints that define the optimization objectives.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
-
constraints
AIRecommendationPerformanceTarget.Builder constraints(Collection<AIRecommendationConstraint> constraints) An array of performance constraints that define the optimization objectives.
- Parameters:
constraints- An array of performance constraints that define the optimization objectives.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
constraints
An array of performance constraints that define the optimization objectives.
- Parameters:
constraints- An array of performance constraints that define the optimization objectives.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
constraints
AIRecommendationPerformanceTarget.Builder constraints(Consumer<AIRecommendationConstraint.Builder>... constraints) An array of performance constraints that define the optimization objectives.
This is a convenience method that creates an instance of theAIRecommendationConstraint.Builderavoiding the need to create one manually viaAIRecommendationConstraint.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toconstraints(List<AIRecommendationConstraint>).- Parameters:
constraints- a consumer that will call methods onAIRecommendationConstraint.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-