Class CfnNodegroupPropsMixin.LaunchTemplateSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.eks.CfnNodegroupPropsMixin.LaunchTemplateSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNodegroupPropsMixin.LaunchTemplateSpecificationProperty>
- Enclosing interface:
CfnNodegroupPropsMixin.LaunchTemplateSpecificationProperty
@Stability(Stable)
public static final class CfnNodegroupPropsMixin.LaunchTemplateSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNodegroupPropsMixin.LaunchTemplateSpecificationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnNodegroupPropsMixin.LaunchTemplateSpecificationProperty.getId()id(ILaunchTemplateRef id) Sets the value ofCfnNodegroupPropsMixin.LaunchTemplateSpecificationProperty.getId()Sets the value ofCfnNodegroupPropsMixin.LaunchTemplateSpecificationProperty.getName()Sets the value ofCfnNodegroupPropsMixin.LaunchTemplateSpecificationProperty.getVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
@Stability(Stable) public CfnNodegroupPropsMixin.LaunchTemplateSpecificationProperty.Builder id(String id) Sets the value ofCfnNodegroupPropsMixin.LaunchTemplateSpecificationProperty.getId()- Parameters:
id- The ID of the launch template. You must specify either the launch template ID or the launch template name in the request, but not both. After node group creation, you cannot use a different ID.- Returns:
this
-
id
@Stability(Stable) public CfnNodegroupPropsMixin.LaunchTemplateSpecificationProperty.Builder id(ILaunchTemplateRef id) Sets the value ofCfnNodegroupPropsMixin.LaunchTemplateSpecificationProperty.getId()- Parameters:
id- The ID of the launch template. You must specify either the launch template ID or the launch template name in the request, but not both. After node group creation, you cannot use a different ID.- Returns:
this
-
name
@Stability(Stable) public CfnNodegroupPropsMixin.LaunchTemplateSpecificationProperty.Builder name(String name) Sets the value ofCfnNodegroupPropsMixin.LaunchTemplateSpecificationProperty.getName()- Parameters:
name- The name of the launch template. You must specify either the launch template name or the launch template ID in the request, but not both. After node group creation, you cannot use a different name.- Returns:
this
-
version
@Stability(Stable) public CfnNodegroupPropsMixin.LaunchTemplateSpecificationProperty.Builder version(String version) Sets the value ofCfnNodegroupPropsMixin.LaunchTemplateSpecificationProperty.getVersion()- Parameters:
version- The version number of the launch template to use. If no version is specified, then the template's default version is used. You can use a different version for node group updates.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnNodegroupPropsMixin.LaunchTemplateSpecificationProperty>- Returns:
- a new instance of
CfnNodegroupPropsMixin.LaunchTemplateSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-