Class CfnClusterPropsMixin.ResourceWeightProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.eks.CfnClusterPropsMixin.ResourceWeightProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClusterPropsMixin.ResourceWeightProperty>
- Enclosing interface:
CfnClusterPropsMixin.ResourceWeightProperty
@Stability(Stable)
public static final class CfnClusterPropsMixin.ResourceWeightProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnClusterPropsMixin.ResourceWeightProperty>
A builder for
CfnClusterPropsMixin.ResourceWeightProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnClusterPropsMixin.ResourceWeightProperty.getName()Sets the value ofCfnClusterPropsMixin.ResourceWeightProperty.getWeight()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnClusterPropsMixin.ResourceWeightProperty.getName()- Parameters:
name- The name of the resource (for example, cpu or memory).- Returns:
this
-
weight
Sets the value ofCfnClusterPropsMixin.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<CfnClusterPropsMixin.ResourceWeightProperty>- Returns:
- a new instance of
CfnClusterPropsMixin.ResourceWeightProperty - Throws:
NullPointerException- if any required attribute was not provided
-