@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LaunchTemplatePlacement extends Object implements Serializable, Cloneable
Describes the placement of an instance.
Constructor and Description |
---|
LaunchTemplatePlacement() |
Modifier and Type | Method and Description |
---|---|
LaunchTemplatePlacement |
clone() |
boolean |
equals(Object obj) |
String |
getAffinity()
The affinity setting for the instance on the Dedicated Host.
|
String |
getAvailabilityZone()
The Availability Zone of the instance.
|
String |
getGroupId()
The Group ID of the placement group.
|
String |
getGroupName()
The name of the placement group for the instance.
|
String |
getHostId()
The ID of the Dedicated Host for the instance.
|
String |
getHostResourceGroupArn()
The ARN of the host resource group in which to launch the instances.
|
Integer |
getPartitionNumber()
The number of the partition the instance should launch in.
|
String |
getSpreadDomain()
Reserved for future use.
|
String |
getTenancy()
The tenancy of the instance.
|
int |
hashCode() |
void |
setAffinity(String affinity)
The affinity setting for the instance on the Dedicated Host.
|
void |
setAvailabilityZone(String availabilityZone)
The Availability Zone of the instance.
|
void |
setGroupId(String groupId)
The Group ID of the placement group.
|
void |
setGroupName(String groupName)
The name of the placement group for the instance.
|
void |
setHostId(String hostId)
The ID of the Dedicated Host for the instance.
|
void |
setHostResourceGroupArn(String hostResourceGroupArn)
The ARN of the host resource group in which to launch the instances.
|
void |
setPartitionNumber(Integer partitionNumber)
The number of the partition the instance should launch in.
|
void |
setSpreadDomain(String spreadDomain)
Reserved for future use.
|
void |
setTenancy(String tenancy)
The tenancy of the instance.
|
String |
toString()
Returns a string representation of this object.
|
LaunchTemplatePlacement |
withAffinity(String affinity)
The affinity setting for the instance on the Dedicated Host.
|
LaunchTemplatePlacement |
withAvailabilityZone(String availabilityZone)
The Availability Zone of the instance.
|
LaunchTemplatePlacement |
withGroupId(String groupId)
The Group ID of the placement group.
|
LaunchTemplatePlacement |
withGroupName(String groupName)
The name of the placement group for the instance.
|
LaunchTemplatePlacement |
withHostId(String hostId)
The ID of the Dedicated Host for the instance.
|
LaunchTemplatePlacement |
withHostResourceGroupArn(String hostResourceGroupArn)
The ARN of the host resource group in which to launch the instances.
|
LaunchTemplatePlacement |
withPartitionNumber(Integer partitionNumber)
The number of the partition the instance should launch in.
|
LaunchTemplatePlacement |
withSpreadDomain(String spreadDomain)
Reserved for future use.
|
LaunchTemplatePlacement |
withTenancy(String tenancy)
The tenancy of the instance.
|
LaunchTemplatePlacement |
withTenancy(Tenancy tenancy)
The tenancy of the instance.
|
public void setAvailabilityZone(String availabilityZone)
The Availability Zone of the instance.
availabilityZone
- The Availability Zone of the instance.public String getAvailabilityZone()
The Availability Zone of the instance.
public LaunchTemplatePlacement withAvailabilityZone(String availabilityZone)
The Availability Zone of the instance.
availabilityZone
- The Availability Zone of the instance.public void setAffinity(String affinity)
The affinity setting for the instance on the Dedicated Host.
affinity
- The affinity setting for the instance on the Dedicated Host.public String getAffinity()
The affinity setting for the instance on the Dedicated Host.
public LaunchTemplatePlacement withAffinity(String affinity)
The affinity setting for the instance on the Dedicated Host.
affinity
- The affinity setting for the instance on the Dedicated Host.public void setGroupName(String groupName)
The name of the placement group for the instance.
groupName
- The name of the placement group for the instance.public String getGroupName()
The name of the placement group for the instance.
public LaunchTemplatePlacement withGroupName(String groupName)
The name of the placement group for the instance.
groupName
- The name of the placement group for the instance.public void setHostId(String hostId)
The ID of the Dedicated Host for the instance.
hostId
- The ID of the Dedicated Host for the instance.public String getHostId()
The ID of the Dedicated Host for the instance.
public LaunchTemplatePlacement withHostId(String hostId)
The ID of the Dedicated Host for the instance.
hostId
- The ID of the Dedicated Host for the instance.public void setTenancy(String tenancy)
The tenancy of the instance. An instance with a tenancy of dedicated
runs on single-tenant hardware.
tenancy
- The tenancy of the instance. An instance with a tenancy of dedicated
runs on single-tenant
hardware.Tenancy
public String getTenancy()
The tenancy of the instance. An instance with a tenancy of dedicated
runs on single-tenant hardware.
dedicated
runs on single-tenant
hardware.Tenancy
public LaunchTemplatePlacement withTenancy(String tenancy)
The tenancy of the instance. An instance with a tenancy of dedicated
runs on single-tenant hardware.
tenancy
- The tenancy of the instance. An instance with a tenancy of dedicated
runs on single-tenant
hardware.Tenancy
public LaunchTemplatePlacement withTenancy(Tenancy tenancy)
The tenancy of the instance. An instance with a tenancy of dedicated
runs on single-tenant hardware.
tenancy
- The tenancy of the instance. An instance with a tenancy of dedicated
runs on single-tenant
hardware.Tenancy
public void setSpreadDomain(String spreadDomain)
Reserved for future use.
spreadDomain
- Reserved for future use.public String getSpreadDomain()
Reserved for future use.
public LaunchTemplatePlacement withSpreadDomain(String spreadDomain)
Reserved for future use.
spreadDomain
- Reserved for future use.public void setHostResourceGroupArn(String hostResourceGroupArn)
The ARN of the host resource group in which to launch the instances.
hostResourceGroupArn
- The ARN of the host resource group in which to launch the instances.public String getHostResourceGroupArn()
The ARN of the host resource group in which to launch the instances.
public LaunchTemplatePlacement withHostResourceGroupArn(String hostResourceGroupArn)
The ARN of the host resource group in which to launch the instances.
hostResourceGroupArn
- The ARN of the host resource group in which to launch the instances.public void setPartitionNumber(Integer partitionNumber)
The number of the partition the instance should launch in. Valid only if the placement group strategy is set to
partition
.
partitionNumber
- The number of the partition the instance should launch in. Valid only if the placement group strategy is
set to partition
.public Integer getPartitionNumber()
The number of the partition the instance should launch in. Valid only if the placement group strategy is set to
partition
.
partition
.public LaunchTemplatePlacement withPartitionNumber(Integer partitionNumber)
The number of the partition the instance should launch in. Valid only if the placement group strategy is set to
partition
.
partitionNumber
- The number of the partition the instance should launch in. Valid only if the placement group strategy is
set to partition
.public void setGroupId(String groupId)
The Group ID of the placement group. You must specify the Placement Group Group ID to launch an instance in a shared placement group.
groupId
- The Group ID of the placement group. You must specify the Placement Group Group ID to launch an
instance in a shared placement group.public String getGroupId()
The Group ID of the placement group. You must specify the Placement Group Group ID to launch an instance in a shared placement group.
public LaunchTemplatePlacement withGroupId(String groupId)
The Group ID of the placement group. You must specify the Placement Group Group ID to launch an instance in a shared placement group.
groupId
- The Group ID of the placement group. You must specify the Placement Group Group ID to launch an
instance in a shared placement group.public String toString()
toString
in class Object
Object.toString()
public LaunchTemplatePlacement clone()