|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.ec2.model.Placement
public class Placement
Describes where an Amazon EC2 instance is running within an Amazon EC2 region.
Constructor Summary | |
---|---|
Placement()
Default constructor for a new Placement object. |
|
Placement(String availabilityZone)
Constructs a new Placement object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getAvailabilityZone()
The availability zone in which an Amazon EC2 instance runs. |
String |
getGroupName()
The name of the PlacementGroup in which an Amazon EC2 instance runs. |
String |
getTenancy()
The allowed tenancy of instances launched into the VPC. |
int |
hashCode()
|
void |
setAvailabilityZone(String availabilityZone)
The availability zone in which an Amazon EC2 instance runs. |
void |
setGroupName(String groupName)
The name of the PlacementGroup in which an Amazon EC2 instance runs. |
void |
setTenancy(String tenancy)
The allowed tenancy of instances launched into the VPC. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
Placement |
withAvailabilityZone(String availabilityZone)
The availability zone in which an Amazon EC2 instance runs. |
Placement |
withGroupName(String groupName)
The name of the PlacementGroup in which an Amazon EC2 instance runs. |
Placement |
withTenancy(String tenancy)
The allowed tenancy of instances launched into the VPC. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Placement()
public Placement(String availabilityZone)
availabilityZone
- The availability zone in which an Amazon EC2
instance runs.Method Detail |
---|
public String getAvailabilityZone()
public void setAvailabilityZone(String availabilityZone)
availabilityZone
- The availability zone in which an Amazon EC2 instance runs.public Placement withAvailabilityZone(String availabilityZone)
Returns a reference to this object so that method calls can be chained together.
availabilityZone
- The availability zone in which an Amazon EC2 instance runs.
public String getGroupName()
public void setGroupName(String groupName)
groupName
- The name of the PlacementGroup in which an Amazon EC2 instance
runs. Placement groups are primarily used for launching High
Performance Computing instances in the same group to ensure fast
connection speeds.public Placement withGroupName(String groupName)
Returns a reference to this object so that method calls can be chained together.
groupName
- The name of the PlacementGroup in which an Amazon EC2 instance
runs. Placement groups are primarily used for launching High
Performance Computing instances in the same group to ensure fast
connection speeds.
public String getTenancy()
public void setTenancy(String tenancy)
tenancy
- The allowed tenancy of instances launched into the VPC. A value of
default means instances can be launched with any tenancy; a value of
dedicated means all instances launched into the VPC will be launched
as dedicated tenancy regardless of the tenancy assigned to the
instance at launch.public Placement withTenancy(String tenancy)
Returns a reference to this object so that method calls can be chained together.
tenancy
- The allowed tenancy of instances launched into the VPC. A value of
default means instances can be launched with any tenancy; a value of
dedicated means all instances launched into the VPC will be launched
as dedicated tenancy regardless of the tenancy assigned to the
instance at launch.
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |