Class CfnCluster.ScoringStrategyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.eks.CfnCluster.ScoringStrategyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster.ScoringStrategyProperty>
- Enclosing interface:
CfnCluster.ScoringStrategyProperty
@Stability(Stable)
public static final class CfnCluster.ScoringStrategyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster.ScoringStrategyProperty>
A builder for
CfnCluster.ScoringStrategyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnCluster.ScoringStrategyProperty.getResources()resources(IResolvable resources) Sets the value ofCfnCluster.ScoringStrategyProperty.getResources()Sets the value ofCfnCluster.ScoringStrategyProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
resources
@Stability(Stable) public CfnCluster.ScoringStrategyProperty.Builder resources(IResolvable resources) Sets the value ofCfnCluster.ScoringStrategyProperty.getResources()- Parameters:
resources- The resource weights used for scoring nodes.- Returns:
this
-
resources
@Stability(Stable) public CfnCluster.ScoringStrategyProperty.Builder resources(List<? extends Object> resources) Sets the value ofCfnCluster.ScoringStrategyProperty.getResources()- Parameters:
resources- The resource weights used for scoring nodes.- Returns:
this
-
type
Sets the value ofCfnCluster.ScoringStrategyProperty.getType()- Parameters:
type- The scoring strategy type (LeastAllocated or MostAllocated).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCluster.ScoringStrategyProperty>- Returns:
- a new instance of
CfnCluster.ScoringStrategyProperty - Throws:
NullPointerException- if any required attribute was not provided
-