Class CfnComputeNodeGroup.CustomLaunchTemplateProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pcs.CfnComputeNodeGroup.CustomLaunchTemplateProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnComputeNodeGroup.CustomLaunchTemplateProperty>
- Enclosing interface:
CfnComputeNodeGroup.CustomLaunchTemplateProperty
@Stability(Stable)
public static final class CfnComputeNodeGroup.CustomLaunchTemplateProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnComputeNodeGroup.CustomLaunchTemplateProperty>
A builder for
CfnComputeNodeGroup.CustomLaunchTemplateProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.templateId(String templateId) Sets the value ofCfnComputeNodeGroup.CustomLaunchTemplateProperty.getTemplateId()Sets the value ofCfnComputeNodeGroup.CustomLaunchTemplateProperty.getVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
version
@Stability(Stable) public CfnComputeNodeGroup.CustomLaunchTemplateProperty.Builder version(String version) Sets the value ofCfnComputeNodeGroup.CustomLaunchTemplateProperty.getVersion()- Parameters:
version- The version of the EC2 launch template to use to provision instances. This parameter is required.- Returns:
this
-
templateId
@Stability(Stable) public CfnComputeNodeGroup.CustomLaunchTemplateProperty.Builder templateId(String templateId) Sets the value ofCfnComputeNodeGroup.CustomLaunchTemplateProperty.getTemplateId()- Parameters:
templateId- The ID of the EC2 launch template to use to provision instances.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnComputeNodeGroup.CustomLaunchTemplateProperty>- Returns:
- a new instance of
CfnComputeNodeGroup.CustomLaunchTemplateProperty - Throws:
NullPointerException- if any required attribute was not provided
-