@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Placement extends Object implements Serializable, Cloneable
Describes the placement of an instance.
Constructor and Description |
---|
Placement()
Default constructor for Placement object.
|
Placement(String availabilityZone)
Constructs a new Placement object.
|
Modifier and Type | Method and Description |
---|---|
Placement |
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 ID of the placement group that the instance is in.
|
String |
getGroupName()
The name of the placement group that the instance is in.
|
String |
getHostId()
The ID of the Dedicated Host on which the instance resides.
|
String |
getHostResourceGroupArn()
The ARN of the host resource group in which to launch the instances.
|
Integer |
getPartitionNumber()
The number of the partition that the instance is 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 ID of the placement group that the instance is in.
|
void |
setGroupName(String groupName)
The name of the placement group that the instance is in.
|
void |
setHostId(String hostId)
The ID of the Dedicated Host on which the instance resides.
|
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 that the instance is in.
|
void |
setSpreadDomain(String spreadDomain)
Reserved for future use.
|
void |
setTenancy(String tenancy)
The tenancy of the instance.
|
void |
setTenancy(Tenancy tenancy)
The tenancy of the instance.
|
String |
toString()
Returns a string representation of this object.
|
Placement |
withAffinity(String affinity)
The affinity setting for the instance on the Dedicated Host.
|
Placement |
withAvailabilityZone(String availabilityZone)
The Availability Zone of the instance.
|
Placement |
withGroupId(String groupId)
The ID of the placement group that the instance is in.
|
Placement |
withGroupName(String groupName)
The name of the placement group that the instance is in.
|
Placement |
withHostId(String hostId)
The ID of the Dedicated Host on which the instance resides.
|
Placement |
withHostResourceGroupArn(String hostResourceGroupArn)
The ARN of the host resource group in which to launch the instances.
|
Placement |
withPartitionNumber(Integer partitionNumber)
The number of the partition that the instance is in.
|
Placement |
withSpreadDomain(String spreadDomain)
Reserved for future use.
|
Placement |
withTenancy(String tenancy)
The tenancy of the instance.
|
Placement |
withTenancy(Tenancy tenancy)
The tenancy of the instance.
|
public Placement()
public Placement(String availabilityZone)
availabilityZone
- The Availability Zone of the instance.
If not specified, an Availability Zone will be automatically chosen for you based on the load balancing criteria for the Region.
This parameter is not supported for CreateFleet.
public void setAvailabilityZone(String availabilityZone)
The Availability Zone of the instance.
If not specified, an Availability Zone will be automatically chosen for you based on the load balancing criteria for the Region.
This parameter is not supported for CreateFleet.
availabilityZone
- The Availability Zone of the instance.
If not specified, an Availability Zone will be automatically chosen for you based on the load balancing criteria for the Region.
This parameter is not supported for CreateFleet.
public String getAvailabilityZone()
The Availability Zone of the instance.
If not specified, an Availability Zone will be automatically chosen for you based on the load balancing criteria for the Region.
This parameter is not supported for CreateFleet.
If not specified, an Availability Zone will be automatically chosen for you based on the load balancing criteria for the Region.
This parameter is not supported for CreateFleet.
public Placement withAvailabilityZone(String availabilityZone)
The Availability Zone of the instance.
If not specified, an Availability Zone will be automatically chosen for you based on the load balancing criteria for the Region.
This parameter is not supported for CreateFleet.
availabilityZone
- The Availability Zone of the instance.
If not specified, an Availability Zone will be automatically chosen for you based on the load balancing criteria for the Region.
This parameter is not supported for CreateFleet.
public void setAffinity(String affinity)
The affinity setting for the instance on the Dedicated Host.
This parameter is not supported for CreateFleet or ImportInstance.
affinity
- The affinity setting for the instance on the Dedicated Host.
This parameter is not supported for CreateFleet or ImportInstance.
public String getAffinity()
The affinity setting for the instance on the Dedicated Host.
This parameter is not supported for CreateFleet or ImportInstance.
This parameter is not supported for CreateFleet or ImportInstance.
public Placement withAffinity(String affinity)
The affinity setting for the instance on the Dedicated Host.
This parameter is not supported for CreateFleet or ImportInstance.
affinity
- The affinity setting for the instance on the Dedicated Host.
This parameter is not supported for CreateFleet or ImportInstance.
public void setGroupName(String groupName)
The name of the placement group that the instance is in. If you specify GroupName
, you can't specify
GroupId
.
groupName
- The name of the placement group that the instance is in. If you specify GroupName
, you can't
specify GroupId
.public String getGroupName()
The name of the placement group that the instance is in. If you specify GroupName
, you can't specify
GroupId
.
GroupName
, you can't
specify GroupId
.public Placement withGroupName(String groupName)
The name of the placement group that the instance is in. If you specify GroupName
, you can't specify
GroupId
.
groupName
- The name of the placement group that the instance is in. If you specify GroupName
, you can't
specify GroupId
.public void setPartitionNumber(Integer partitionNumber)
The number of the partition that the instance is in. Valid only if the placement group strategy is set to
partition
.
This parameter is not supported for CreateFleet.
partitionNumber
- The number of the partition that the instance is in. Valid only if the placement group strategy is set to
partition
.
This parameter is not supported for CreateFleet.
public Integer getPartitionNumber()
The number of the partition that the instance is in. Valid only if the placement group strategy is set to
partition
.
This parameter is not supported for CreateFleet.
partition
.
This parameter is not supported for CreateFleet.
public Placement withPartitionNumber(Integer partitionNumber)
The number of the partition that the instance is in. Valid only if the placement group strategy is set to
partition
.
This parameter is not supported for CreateFleet.
partitionNumber
- The number of the partition that the instance is in. Valid only if the placement group strategy is set to
partition
.
This parameter is not supported for CreateFleet.
public void setHostId(String hostId)
The ID of the Dedicated Host on which the instance resides.
This parameter is not supported for CreateFleet or ImportInstance.
hostId
- The ID of the Dedicated Host on which the instance resides.
This parameter is not supported for CreateFleet or ImportInstance.
public String getHostId()
The ID of the Dedicated Host on which the instance resides.
This parameter is not supported for CreateFleet or ImportInstance.
This parameter is not supported for CreateFleet or ImportInstance.
public Placement withHostId(String hostId)
The ID of the Dedicated Host on which the instance resides.
This parameter is not supported for CreateFleet or ImportInstance.
hostId
- The ID of the Dedicated Host on which the instance resides.
This parameter is not supported for CreateFleet or ImportInstance.
public void setTenancy(String tenancy)
The tenancy of the instance. An instance with a tenancy of dedicated
runs on single-tenant hardware.
This parameter is not supported for CreateFleet. The
host
tenancy is not supported for ImportInstance or for
T3 instances that are configured for the unlimited
CPU credit option.
tenancy
- The tenancy of the instance. An instance with a tenancy of dedicated
runs on single-tenant
hardware.
This parameter is not supported for CreateFleet. The
host
tenancy is not supported for ImportInstance
or for T3 instances that are configured for the unlimited
CPU credit option.
Tenancy
public String getTenancy()
The tenancy of the instance. An instance with a tenancy of dedicated
runs on single-tenant hardware.
This parameter is not supported for CreateFleet. The
host
tenancy is not supported for ImportInstance or for
T3 instances that are configured for the unlimited
CPU credit option.
dedicated
runs on single-tenant
hardware.
This parameter is not supported for CreateFleet. The
host
tenancy is not supported for ImportInstance
or for T3 instances that are configured for the unlimited
CPU credit option.
Tenancy
public Placement withTenancy(String tenancy)
The tenancy of the instance. An instance with a tenancy of dedicated
runs on single-tenant hardware.
This parameter is not supported for CreateFleet. The
host
tenancy is not supported for ImportInstance or for
T3 instances that are configured for the unlimited
CPU credit option.
tenancy
- The tenancy of the instance. An instance with a tenancy of dedicated
runs on single-tenant
hardware.
This parameter is not supported for CreateFleet. The
host
tenancy is not supported for ImportInstance
or for T3 instances that are configured for the unlimited
CPU credit option.
Tenancy
public void setTenancy(Tenancy tenancy)
The tenancy of the instance. An instance with a tenancy of dedicated
runs on single-tenant hardware.
This parameter is not supported for CreateFleet. The
host
tenancy is not supported for ImportInstance or for
T3 instances that are configured for the unlimited
CPU credit option.
tenancy
- The tenancy of the instance. An instance with a tenancy of dedicated
runs on single-tenant
hardware.
This parameter is not supported for CreateFleet. The
host
tenancy is not supported for ImportInstance
or for T3 instances that are configured for the unlimited
CPU credit option.
Tenancy
public Placement withTenancy(Tenancy tenancy)
The tenancy of the instance. An instance with a tenancy of dedicated
runs on single-tenant hardware.
This parameter is not supported for CreateFleet. The
host
tenancy is not supported for ImportInstance or for
T3 instances that are configured for the unlimited
CPU credit option.
tenancy
- The tenancy of the instance. An instance with a tenancy of dedicated
runs on single-tenant
hardware.
This parameter is not supported for CreateFleet. The
host
tenancy is not supported for ImportInstance
or for T3 instances that are configured for the unlimited
CPU credit option.
Tenancy
public void setSpreadDomain(String spreadDomain)
Reserved for future use.
spreadDomain
- Reserved for future use.public String getSpreadDomain()
Reserved for future use.
public Placement 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 this parameter, either omit the Tenancy parameter or set it to host
.
This parameter is not supported for CreateFleet.
hostResourceGroupArn
- The ARN of the host resource group in which to launch the instances.
If you specify this parameter, either omit the Tenancy parameter or set it to host
.
This parameter is not supported for CreateFleet.
public String getHostResourceGroupArn()
The ARN of the host resource group in which to launch the instances.
If you specify this parameter, either omit the Tenancy parameter or set it to host
.
This parameter is not supported for CreateFleet.
If you specify this parameter, either omit the Tenancy parameter or set it to host
.
This parameter is not supported for CreateFleet.
public Placement withHostResourceGroupArn(String hostResourceGroupArn)
The ARN of the host resource group in which to launch the instances.
If you specify this parameter, either omit the Tenancy parameter or set it to host
.
This parameter is not supported for CreateFleet.
hostResourceGroupArn
- The ARN of the host resource group in which to launch the instances.
If you specify this parameter, either omit the Tenancy parameter or set it to host
.
This parameter is not supported for CreateFleet.
public void setGroupId(String groupId)
The ID of the placement group that the instance is in. If you specify GroupId
, you can't specify
GroupName
.
groupId
- The ID of the placement group that the instance is in. If you specify GroupId
, you can't
specify GroupName
.public String getGroupId()
The ID of the placement group that the instance is in. If you specify GroupId
, you can't specify
GroupName
.
GroupId
, you can't
specify GroupName
.public Placement withGroupId(String groupId)
The ID of the placement group that the instance is in. If you specify GroupId
, you can't specify
GroupName
.
groupId
- The ID of the placement group that the instance is in. If you specify GroupId
, you can't
specify GroupName
.public String toString()
toString
in class Object
Object.toString()