Class InstanceLaunchTemplate.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.instance.InstanceLaunchTemplate.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<InstanceLaunchTemplate>
- Enclosing interface:
- InstanceLaunchTemplate
@Stability(Stable) public static final class InstanceLaunchTemplate.Builder extends Object implements software.amazon.jsii.Builder<InstanceLaunchTemplate>
A builder forInstanceLaunchTemplate
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstanceLaunchTemplatebuild()Builds the configured instance.InstanceLaunchTemplate.Builderid(String id)Sets the value ofInstanceLaunchTemplate.getId()InstanceLaunchTemplate.Buildername(String name)Sets the value ofInstanceLaunchTemplate.getName()InstanceLaunchTemplate.Builderversion(String version)Sets the value ofInstanceLaunchTemplate.getVersion()
-
-
-
Method Detail
-
id
@Stability(Stable) public InstanceLaunchTemplate.Builder id(String id)
Sets the value ofInstanceLaunchTemplate.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/instance#id Instance#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.- Returns:
this
-
name
@Stability(Stable) public InstanceLaunchTemplate.Builder name(String name)
Sets the value ofInstanceLaunchTemplate.getName()- Parameters:
name- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/instance#name Instance#name}.- Returns:
this
-
version
@Stability(Stable) public InstanceLaunchTemplate.Builder version(String version)
Sets the value ofInstanceLaunchTemplate.getVersion()- Parameters:
version- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/instance#version Instance#version}.- Returns:
this
-
build
@Stability(Stable) public InstanceLaunchTemplate build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<InstanceLaunchTemplate>- Returns:
- a new instance of
InstanceLaunchTemplate - Throws:
NullPointerException- if any required attribute was not provided
-
-