Class ComputeConfig.Builder
java.lang.Object
software.amazon.awscdk.services.eks.v2.alpha.ComputeConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeConfig>
- Enclosing interface:
ComputeConfig
@Stability(Experimental)
public static final class ComputeConfig.Builder
extends Object
implements software.amazon.jsii.Builder<ComputeConfig>
A builder for
ComputeConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofComputeConfig.getNodePools()Sets the value ofComputeConfig.getNodeRole()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
nodePools
Sets the value ofComputeConfig.getNodePools()- Parameters:
nodePools- Names of nodePools to include in Auto Mode. You cannot modify the built in system and general-purpose node pools. You can only enable or disable them. Node pool values are case-sensitive and must begeneral-purposeand/orsystem.- Returns:
this
-
nodeRole
Sets the value ofComputeConfig.getNodeRole()- Parameters:
nodeRole- IAM role for the nodePools.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeConfig>- Returns:
- a new instance of
ComputeConfig - Throws:
NullPointerException- if any required attribute was not provided
-