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