Class LaunchTemplatePlacement.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.launch_template.LaunchTemplatePlacement.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<LaunchTemplatePlacement>
- Enclosing interface:
- LaunchTemplatePlacement
@Stability(Stable) public static final class LaunchTemplatePlacement.Builder extends Object implements software.amazon.jsii.Builder<LaunchTemplatePlacement>
A builder forLaunchTemplatePlacement
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
affinity
@Stability(Stable) public LaunchTemplatePlacement.Builder affinity(String affinity)
Sets the value ofLaunchTemplatePlacement.getAffinity()- Parameters:
affinity- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#affinity LaunchTemplate#affinity}.- Returns:
this
-
availabilityZone
@Stability(Stable) public LaunchTemplatePlacement.Builder availabilityZone(String availabilityZone)
Sets the value ofLaunchTemplatePlacement.getAvailabilityZone()- Parameters:
availabilityZone- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#availability_zone LaunchTemplate#availability_zone}.- Returns:
this
-
groupName
@Stability(Stable) public LaunchTemplatePlacement.Builder groupName(String groupName)
Sets the value ofLaunchTemplatePlacement.getGroupName()- Parameters:
groupName- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#group_name LaunchTemplate#group_name}.- Returns:
this
-
hostId
@Stability(Stable) public LaunchTemplatePlacement.Builder hostId(String hostId)
Sets the value ofLaunchTemplatePlacement.getHostId()- Parameters:
hostId- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#host_id LaunchTemplate#host_id}.- Returns:
this
-
hostResourceGroupArn
@Stability(Stable) public LaunchTemplatePlacement.Builder hostResourceGroupArn(String hostResourceGroupArn)
Sets the value ofLaunchTemplatePlacement.getHostResourceGroupArn()- Parameters:
hostResourceGroupArn- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#host_resource_group_arn LaunchTemplate#host_resource_group_arn}.- Returns:
this
-
partitionNumber
@Stability(Stable) public LaunchTemplatePlacement.Builder partitionNumber(Number partitionNumber)
Sets the value ofLaunchTemplatePlacement.getPartitionNumber()- Parameters:
partitionNumber- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#partition_number LaunchTemplate#partition_number}.- Returns:
this
-
spreadDomain
@Stability(Stable) public LaunchTemplatePlacement.Builder spreadDomain(String spreadDomain)
Sets the value ofLaunchTemplatePlacement.getSpreadDomain()- Parameters:
spreadDomain- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#spread_domain LaunchTemplate#spread_domain}.- Returns:
this
-
tenancy
@Stability(Stable) public LaunchTemplatePlacement.Builder tenancy(String tenancy)
Sets the value ofLaunchTemplatePlacement.getTenancy()- Parameters:
tenancy- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#tenancy LaunchTemplate#tenancy}.- Returns:
this
-
build
@Stability(Stable) public LaunchTemplatePlacement build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<LaunchTemplatePlacement>- Returns:
- a new instance of
LaunchTemplatePlacement - Throws:
NullPointerException- if any required attribute was not provided
-
-