Class CfnCluster.ResourceWeightProperty.Builder
java.lang.Object
software.amazon.awscdk.services.eks.CfnCluster.ResourceWeightProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster.ResourceWeightProperty>
- Enclosing interface:
CfnCluster.ResourceWeightProperty
@Stability(Stable)
public static final class CfnCluster.ResourceWeightProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster.ResourceWeightProperty>
A builder for
CfnCluster.ResourceWeightProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnCluster.ResourceWeightProperty.getName()Sets the value ofCfnCluster.ResourceWeightProperty.getWeight()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnCluster.ResourceWeightProperty.getName()- Parameters:
name- The name of the resource (for example, cpu or memory).- Returns:
this
-
weight
Sets the value ofCfnCluster.ResourceWeightProperty.getWeight()- Parameters:
weight- The weight assigned to the resource for scoring. Must be between 1 and 100.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCluster.ResourceWeightProperty>- Returns:
- a new instance of
CfnCluster.ResourceWeightProperty - Throws:
NullPointerException- if any required attribute was not provided
-