@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LaunchTemplatePlacementRequest extends Object implements Serializable, Cloneable
Describes the placement of an instance.
Constructor and Description |
---|
LaunchTemplatePlacementRequest() |
Modifier and Type | Method and Description |
---|---|
LaunchTemplatePlacementRequest |
clone() |
boolean |
equals(Object obj) |
String |
getAffinity()
The affinity setting for an instance on a Dedicated Host.
|
String |
getAvailabilityZone()
The Availability Zone for the instance.
|
String |
getGroupId()
The Group Id of a 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 an instance on a Dedicated Host.
|
void |
setAvailabilityZone(String availabilityZone)
The Availability Zone for the instance.
|
void |
setGroupId(String groupId)
The Group Id of a 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.
|
LaunchTemplatePlacementRequest |
withAffinity(String affinity)
The affinity setting for an instance on a Dedicated Host.
|
LaunchTemplatePlacementRequest |
withAvailabilityZone(String availabilityZone)
The Availability Zone for the instance.
|
LaunchTemplatePlacementRequest |
withGroupId(String groupId)
The Group Id of a placement group.
|
LaunchTemplatePlacementRequest |
withGroupName(String groupName)
The name of the placement group for the instance.
|
LaunchTemplatePlacementRequest |
withHostId(String hostId)
The ID of the Dedicated Host for the instance.
|
LaunchTemplatePlacementRequest |
withHostResourceGroupArn(String hostResourceGroupArn)
The ARN of the host resource group in which to launch the instances.
|
LaunchTemplatePlacementRequest |
withPartitionNumber(Integer partitionNumber)
The number of the partition the instance should launch in.
|
LaunchTemplatePlacementRequest |
withSpreadDomain(String spreadDomain)
Reserved for future use.
|
LaunchTemplatePlacementRequest |
withTenancy(String tenancy)
The tenancy of the instance.
|
LaunchTemplatePlacementRequest |
withTenancy(Tenancy tenancy)
The tenancy of the instance.
|
public void setAvailabilityZone(String availabilityZone)
The Availability Zone for the instance.
availabilityZone
- The Availability Zone for the instance.public String getAvailabilityZone()
The Availability Zone for the instance.
public LaunchTemplatePlacementRequest withAvailabilityZone(String availabilityZone)
The Availability Zone for the instance.
availabilityZone
- The Availability Zone for the instance.public void setAffinity(String affinity)
The affinity setting for an instance on a Dedicated Host.
affinity
- The affinity setting for an instance on a Dedicated Host.public String getAffinity()
The affinity setting for an instance on a Dedicated Host.
public LaunchTemplatePlacementRequest withAffinity(String affinity)
The affinity setting for an instance on a Dedicated Host.
affinity
- The affinity setting for an instance on a 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 LaunchTemplatePlacementRequest 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 LaunchTemplatePlacementRequest 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.
Tenancy
public LaunchTemplatePlacementRequest 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 LaunchTemplatePlacementRequest 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 LaunchTemplatePlacementRequest 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. If you specify a host resource group ARN,
omit the Tenancy parameter or set it to host
.
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
.public String getHostResourceGroupArn()
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
.
host
.public LaunchTemplatePlacementRequest withHostResourceGroupArn(String 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
.
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
.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 LaunchTemplatePlacementRequest 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 a placement group. You must specify the Placement Group Group Id to launch an instance in a shared placement group.
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.public String getGroupId()
The Group Id of a placement group. You must specify the Placement Group Group Id to launch an instance in a shared placement group.
public LaunchTemplatePlacementRequest withGroupId(String 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.
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.public String toString()
toString
in class Object
Object.toString()
public LaunchTemplatePlacementRequest clone()