Interface ScoringStrategyConstraints.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ScoringStrategyConstraints.Builder,,ScoringStrategyConstraints> SdkBuilder<ScoringStrategyConstraints.Builder,,ScoringStrategyConstraints> SdkPojo
- Enclosing class:
ScoringStrategyConstraints
@Mutable
@NotThreadSafe
public static interface ScoringStrategyConstraints.Builder
extends SdkPojo, CopyableBuilder<ScoringStrategyConstraints.Builder,ScoringStrategyConstraints>
-
Method Summary
Modifier and TypeMethodDescriptionresources(Consumer<ResourceConstraints.Builder> resources) The constraints for resource weights.resources(ResourceConstraints resources) The constraints for resource weights.scoringStrategy(Consumer<AllowedValuesConstraint.Builder> scoringStrategy) The allowed values for the scoring strategy type.scoringStrategy(AllowedValuesConstraint scoringStrategy) The allowed values for the scoring strategy type.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
-
scoringStrategy
The allowed values for the scoring strategy type.
- Parameters:
scoringStrategy- The allowed values for the scoring strategy type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scoringStrategy
default ScoringStrategyConstraints.Builder scoringStrategy(Consumer<AllowedValuesConstraint.Builder> scoringStrategy) The allowed values for the scoring strategy type.
This is a convenience method that creates an instance of theAllowedValuesConstraint.Builderavoiding the need to create one manually viaAllowedValuesConstraint.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toscoringStrategy(AllowedValuesConstraint).- Parameters:
scoringStrategy- a consumer that will call methods onAllowedValuesConstraint.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resources
The constraints for resource weights.
- Parameters:
resources- The constraints for resource weights.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resources
default ScoringStrategyConstraints.Builder resources(Consumer<ResourceConstraints.Builder> resources) The constraints for resource weights.
This is a convenience method that creates an instance of theResourceConstraints.Builderavoiding the need to create one manually viaResourceConstraints.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresources(ResourceConstraints).- Parameters:
resources- a consumer that will call methods onResourceConstraints.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-