@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 (for cluster compute instances).
|
String |
getHostId()
The ID of the Dedicated Host on which the instance resides.
|
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 (for cluster compute instances).
|
void |
setHostId(String hostId)
The ID of the Dedicated Host on which the instance resides.
|
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; useful for testing and debugging.
|
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 (for cluster compute instances).
|
Placement |
withHostId(String hostId)
The ID of the Dedicated Host on which the instance resides.
|
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.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 Placement 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. This parameter is not supported for the ImportInstance command.
affinity
- The affinity setting for the instance on the Dedicated Host. This parameter is not supported for the
ImportInstance command.public String getAffinity()
The affinity setting for the instance on the Dedicated Host. This parameter is not supported for the ImportInstance command.
public Placement withAffinity(String affinity)
The affinity setting for the instance on the Dedicated Host. This parameter is not supported for the ImportInstance command.
affinity
- The affinity setting for the instance on the Dedicated Host. This parameter is not supported for the
ImportInstance command.public void setGroupName(String groupName)
The name of the placement group the instance is in (for cluster compute instances).
groupName
- The name of the placement group the instance is in (for cluster compute instances).public String getGroupName()
The name of the placement group the instance is in (for cluster compute instances).
public Placement withGroupName(String groupName)
The name of the placement group the instance is in (for cluster compute instances).
groupName
- The name of the placement group the instance is in (for cluster compute instances).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.
hostId
- The ID of the Dedicated Host on which the instance resides. This parameter is not supported for the
ImportInstance command.public String getHostId()
The ID of the Dedicated Host on which the instance resides. This parameter is not supported for the ImportInstance command.
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.
hostId
- The ID of the Dedicated Host on which the instance resides. This parameter is not supported for the
ImportInstance command.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.
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.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.
dedicated
runs on single-tenant hardware. The host
tenancy is not supported for
the ImportInstance command.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.
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.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.
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.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.
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.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 String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.