Class LaunchTemplateSpec.Builder
java.lang.Object
software.amazon.awscdk.services.eks.LaunchTemplateSpec.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<LaunchTemplateSpec>
- Enclosing interface:
- LaunchTemplateSpec
@Stability(Stable)
public static final class LaunchTemplateSpec.Builder
extends Object
implements software.amazon.jsii.Builder<LaunchTemplateSpec>
A builder for
LaunchTemplateSpec-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofLaunchTemplateSpec.getId()Sets the value ofLaunchTemplateSpec.getVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
Sets the value ofLaunchTemplateSpec.getId()- Parameters:
id- The Launch template ID. This parameter is required.- Returns:
this
-
version
Sets the value ofLaunchTemplateSpec.getVersion()- Parameters:
version- The launch template version to be used (optional).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<LaunchTemplateSpec>- Returns:
- a new instance of
LaunchTemplateSpec - Throws:
NullPointerException- if any required attribute was not provided
-