public class Placement extends Object implements Serializable, Cloneable
Describes the placement for the instance.
Constructor and Description |
---|
Placement()
Default constructor for a new Placement object.
|
Placement(String availabilityZone)
Constructs a new Placement object.
|
Modifier and Type | Method and Description |
---|---|
Placement |
clone() |
boolean |
equals(Object obj) |
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 |
getTenancy()
The tenancy of the instance (if the instance is running in a VPC).
|
int |
hashCode() |
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 |
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 |
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 |
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 String getAvailabilityZone()
public void setAvailabilityZone(String availabilityZone)
availabilityZone
- The Availability Zone of the instance.public Placement withAvailabilityZone(String availabilityZone)
Returns a reference to this object so that method calls can be chained together.
availabilityZone
- The Availability Zone of the instance.public String getGroupName()
public void setGroupName(String groupName)
groupName
- The name of the placement group the instance is in (for cluster
compute instances).public Placement withGroupName(String groupName)
Returns a reference to this object so that method calls can be chained together.
groupName
- The name of the placement group the instance is in (for cluster
compute instances).public String getTenancy()
dedicated
runs on
single-tenant hardware.
Constraints:
Allowed Values: default, dedicated
dedicated
runs on
single-tenant hardware.Tenancy
public void setTenancy(String tenancy)
dedicated
runs on
single-tenant hardware.
Constraints:
Allowed Values: default, dedicated
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.Tenancy
public Placement withTenancy(String tenancy)
dedicated
runs on
single-tenant hardware.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: default, dedicated
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.Tenancy
public void setTenancy(Tenancy tenancy)
dedicated
runs on
single-tenant hardware.
Constraints:
Allowed Values: default, dedicated
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.Tenancy
public Placement withTenancy(Tenancy tenancy)
dedicated
runs on
single-tenant hardware.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: default, dedicated
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.Tenancy
public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.