public static final class CfnLaunchTemplate.PlacementProperty.Builder
extends java.lang.Object
CfnLaunchTemplate.PlacementProperty
Constructor and Description |
---|
Builder() |
public CfnLaunchTemplate.PlacementProperty.Builder affinity(java.lang.String affinity)
CfnLaunchTemplate.PlacementProperty.getAffinity()
affinity
- The affinity setting for an instance on a Dedicated Host.this
public CfnLaunchTemplate.PlacementProperty.Builder availabilityZone(java.lang.String availabilityZone)
CfnLaunchTemplate.PlacementProperty.getAvailabilityZone()
availabilityZone
- The Availability Zone for the instance.this
public CfnLaunchTemplate.PlacementProperty.Builder groupId(java.lang.String groupId)
CfnLaunchTemplate.PlacementProperty.getGroupId()
groupId
- The Group Id of a placement group.
You must specify the Placement Group Group Id to launch an instance in a shared placement group.this
public CfnLaunchTemplate.PlacementProperty.Builder groupName(java.lang.String groupName)
CfnLaunchTemplate.PlacementProperty.getGroupName()
groupName
- The name of the placement group for the instance.this
public CfnLaunchTemplate.PlacementProperty.Builder hostId(java.lang.String hostId)
CfnLaunchTemplate.PlacementProperty.getHostId()
hostId
- The ID of the Dedicated Host for the instance.this
public CfnLaunchTemplate.PlacementProperty.Builder hostResourceGroupArn(java.lang.String hostResourceGroupArn)
CfnLaunchTemplate.PlacementProperty.getHostResourceGroupArn()
hostResourceGroupArn
- The ARN of the host resource group in which to launch the instances.
If you specify a host resource group ARN, omit the Tenancy parameter or set it to host
.this
public CfnLaunchTemplate.PlacementProperty.Builder partitionNumber(java.lang.Number partitionNumber)
CfnLaunchTemplate.PlacementProperty.getPartitionNumber()
partitionNumber
- The number of the partition the instance should launch in.
Valid only if the placement group strategy is set to partition
.this
public CfnLaunchTemplate.PlacementProperty.Builder spreadDomain(java.lang.String spreadDomain)
CfnLaunchTemplate.PlacementProperty.getSpreadDomain()
spreadDomain
- Reserved for future use.this
public CfnLaunchTemplate.PlacementProperty.Builder tenancy(java.lang.String tenancy)
CfnLaunchTemplate.PlacementProperty.getTenancy()
tenancy
- The tenancy of the instance (if the instance is running in a VPC).
An instance with a tenancy of dedicated runs on single-tenant hardware.this
public CfnLaunchTemplate.PlacementProperty build()
CfnLaunchTemplate.PlacementProperty
java.lang.NullPointerException
- if any required attribute was not provided