Interface ScoringStrategy.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ScoringStrategy.Builder,,ScoringStrategy> SdkBuilder<ScoringStrategy.Builder,,ScoringStrategy> SdkPojo
- Enclosing class:
ScoringStrategy
@Mutable
@NotThreadSafe
public static interface ScoringStrategy.Builder
extends SdkPojo, CopyableBuilder<ScoringStrategy.Builder,ScoringStrategy>
-
Method Summary
Modifier and TypeMethodDescriptionresources(Collection<ResourceWeight> resources) The resource weights used for scoring nodes.resources(Consumer<ResourceWeight.Builder>... resources) The resource weights used for scoring nodes.resources(ResourceWeight... resources) The resource weights used for scoring nodes.The scoring strategy type.type(ScoringStrategyType type) 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
-
type
The scoring strategy type. Valid values are
LeastAllocatedorMostAllocated.- Parameters:
type- The scoring strategy type. Valid values areLeastAllocatedorMostAllocated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The scoring strategy type. Valid values are
LeastAllocatedorMostAllocated.- Parameters:
type- The scoring strategy type. Valid values areLeastAllocatedorMostAllocated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resources
The resource weights used for scoring nodes.
- Parameters:
resources- The resource weights used for scoring nodes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resources
The resource weights used for scoring nodes.
- Parameters:
resources- The resource weights used for scoring nodes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resources
The resource weights used for scoring nodes.
This is a convenience method that creates an instance of theResourceWeight.Builderavoiding the need to create one manually viaResourceWeight.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresources(List<ResourceWeight>).- Parameters:
resources- a consumer that will call methods onResourceWeight.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-