Class CfnComputeNodeGroup.InstanceConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pcs.CfnComputeNodeGroup.InstanceConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnComputeNodeGroup.InstanceConfigProperty>
- Enclosing interface:
CfnComputeNodeGroup.InstanceConfigProperty
@Stability(Stable)
public static final class CfnComputeNodeGroup.InstanceConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnComputeNodeGroup.InstanceConfigProperty>
A builder for
CfnComputeNodeGroup.InstanceConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.instanceType(String instanceType) Sets the value ofCfnComputeNodeGroup.InstanceConfigProperty.getInstanceType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instanceType
@Stability(Stable) public CfnComputeNodeGroup.InstanceConfigProperty.Builder instanceType(String instanceType) Sets the value ofCfnComputeNodeGroup.InstanceConfigProperty.getInstanceType()- Parameters:
instanceType- The EC2 instance type that AWS PCS can provision in the compute node group. Example:t2.xlarge- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnComputeNodeGroup.InstanceConfigProperty>- Returns:
- a new instance of
CfnComputeNodeGroup.InstanceConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-