@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 |
getGroupName()
The name of the placement group 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 the instance is in.
|
String |
getSpreadDomain()
Reserved for future use.
|
String |
getTenancy()
The tenancy of the instance (if the instance is running in a VPC).
|
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 |
setGroupName(String groupName)
The name of the placement group 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 the instance is in.
|
void |
setSpreadDomain(String spreadDomain)
Reserved for future use.
|
void |
setTenancy(String tenancy)
The tenancy of the instance (if the instance is running in a VPC).
|
void |
setTenancy(Tenancy tenancy)
The tenancy of the instance (if the instance is running in a VPC).
|
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 |
withGroupName(String groupName)
The name of the placement group 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 the instance is in.
|
Placement |
withSpreadDomain(String spreadDomain)
Reserved for future use.
|
Placement |
withTenancy(String tenancy)
The tenancy of the instance (if the instance is running in a VPC).
|
Placement |
withTenancy(Tenancy tenancy)
The tenancy of the instance (if the instance is running in a VPC).
|
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 by 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 by 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 by 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 by 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 by 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 by 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 by CreateFleet.
public void setAffinity(String affinity)
The affinity setting for the instance on the Dedicated Host. This parameter is not supported for the ImportInstance command.
This parameter is not supported by CreateFleet.
affinity
- The affinity setting for the instance on the Dedicated Host. This parameter is not supported for the ImportInstance
command.
This parameter is not supported by CreateFleet.
public String getAffinity()
The affinity setting for the instance on the Dedicated Host. This parameter is not supported for the ImportInstance command.
This parameter is not supported by CreateFleet.
This parameter is not supported by CreateFleet.
public Placement withAffinity(String affinity)
The affinity setting for the instance on the Dedicated Host. This parameter is not supported for the ImportInstance command.
This parameter is not supported by CreateFleet.
affinity
- The affinity setting for the instance on the Dedicated Host. This parameter is not supported for the ImportInstance
command.
This parameter is not supported by CreateFleet.
public void setGroupName(String groupName)
The name of the placement group the instance is in.
groupName
- The name of the placement group the instance is in.public String getGroupName()
The name of the placement group the instance is in.
public Placement withGroupName(String groupName)
The name of the placement group the instance is in.
groupName
- The name of the placement group the instance is in.public void setPartitionNumber(Integer partitionNumber)
The number of the partition the instance is in. Valid only if the placement group strategy is set to
partition
.
This parameter is not supported by CreateFleet.
partitionNumber
- The number of the partition the instance is in. Valid only if the placement group strategy is set to
partition
.
This parameter is not supported by CreateFleet.
public Integer getPartitionNumber()
The number of the partition the instance is in. Valid only if the placement group strategy is set to
partition
.
This parameter is not supported by CreateFleet.
partition
.
This parameter is not supported by CreateFleet.
public Placement withPartitionNumber(Integer partitionNumber)
The number of the partition the instance is in. Valid only if the placement group strategy is set to
partition
.
This parameter is not supported by CreateFleet.
partitionNumber
- The number of the partition the instance is in. Valid only if the placement group strategy is set to
partition
.
This parameter is not supported by CreateFleet.
public void setHostId(String hostId)
The ID of the Dedicated Host on which the instance resides. This parameter is not supported for the ImportInstance command.
This parameter is not supported by CreateFleet.
hostId
- The ID of the Dedicated Host on which the instance resides. This parameter is not supported for the ImportInstance
command.
This parameter is not supported by CreateFleet.
public String getHostId()
The ID of the Dedicated Host on which the instance resides. This parameter is not supported for the ImportInstance command.
This parameter is not supported by CreateFleet.
This parameter is not supported by CreateFleet.
public Placement withHostId(String hostId)
The ID of the Dedicated Host on which the instance resides. This parameter is not supported for the ImportInstance command.
This parameter is not supported by CreateFleet.
hostId
- The ID of the Dedicated Host on which the instance resides. This parameter is not supported for the ImportInstance
command.
This parameter is not supported by CreateFleet.
public void setTenancy(String 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. The host
tenancy is not supported for the ImportInstance command.
This parameter is not supported by CreateFleet.
T3 instances that use the unlimited
CPU credit option do not support host
tenancy.
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. The host
tenancy is not supported for
the ImportInstance
command.
This parameter is not supported by CreateFleet.
T3 instances that use the unlimited
CPU credit option do not support host
tenancy.
Tenancy
public String getTenancy()
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. The host
tenancy is not supported for the ImportInstance command.
This parameter is not supported by CreateFleet.
T3 instances that use the unlimited
CPU credit option do not support host
tenancy.
dedicated
runs on single-tenant hardware. The host
tenancy is not supported for
the ImportInstance
command.
This parameter is not supported by CreateFleet.
T3 instances that use the unlimited
CPU credit option do not support host
tenancy.
Tenancy
public Placement withTenancy(String 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. The host
tenancy is not supported for the ImportInstance command.
This parameter is not supported by CreateFleet.
T3 instances that use the unlimited
CPU credit option do not support host
tenancy.
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. The host
tenancy is not supported for
the ImportInstance
command.
This parameter is not supported by CreateFleet.
T3 instances that use the unlimited
CPU credit option do not support host
tenancy.
Tenancy
public void setTenancy(Tenancy 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. The host
tenancy is not supported for the ImportInstance command.
This parameter is not supported by CreateFleet.
T3 instances that use the unlimited
CPU credit option do not support host
tenancy.
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. The host
tenancy is not supported for
the ImportInstance
command.
This parameter is not supported by CreateFleet.
T3 instances that use the unlimited
CPU credit option do not support host
tenancy.
Tenancy
public Placement withTenancy(Tenancy 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. The host
tenancy is not supported for the ImportInstance command.
This parameter is not supported by CreateFleet.
T3 instances that use the unlimited
CPU credit option do not support host
tenancy.
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. The host
tenancy is not supported for
the ImportInstance
command.
This parameter is not supported by CreateFleet.
T3 instances that use the unlimited
CPU credit option do not support host
tenancy.
Tenancy
public void setSpreadDomain(String spreadDomain)
Reserved for future use.
This parameter is not supported by CreateFleet.
spreadDomain
- Reserved for future use.
This parameter is not supported by CreateFleet.
public String getSpreadDomain()
Reserved for future use.
This parameter is not supported by CreateFleet.
This parameter is not supported by CreateFleet.
public Placement withSpreadDomain(String spreadDomain)
Reserved for future use.
This parameter is not supported by CreateFleet.
spreadDomain
- Reserved for future use.
This parameter is not supported by CreateFleet.
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
.
This parameter is not supported by CreateFleet.
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 parameter is not supported by CreateFleet.
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
.
This parameter is not supported by CreateFleet.
host
.
This parameter is not supported by CreateFleet.
public Placement 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
.
This parameter is not supported by CreateFleet.
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 parameter is not supported by CreateFleet.
public String toString()
toString
in class Object
Object.toString()