public class Placement
extends java.lang.Object
implements java.io.Serializable
Describes where an Amazon EC2 instance is running within an Amazon EC2 region.
| コンストラクタと説明 |
|---|
Placement()
Default constructor for a new Placement object.
|
Placement(java.lang.String availabilityZone)
Constructs a new Placement object.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAvailabilityZone()
The availability zone in which an Amazon EC2 instance runs.
|
java.lang.String |
getGroupName()
The name of the PlacementGroup in which an Amazon EC2 instance
runs.
|
java.lang.String |
getTenancy()
The allowed tenancy of instances launched into the VPC.
|
int |
hashCode() |
void |
setAvailabilityZone(java.lang.String availabilityZone)
The availability zone in which an Amazon EC2 instance runs.
|
void |
setGroupName(java.lang.String groupName)
The name of the PlacementGroup in which an Amazon EC2 instance
runs.
|
void |
setTenancy(java.lang.String tenancy)
The allowed tenancy of instances launched into the VPC.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Placement |
withAvailabilityZone(java.lang.String availabilityZone)
The availability zone in which an Amazon EC2 instance runs.
|
Placement |
withGroupName(java.lang.String groupName)
The name of the PlacementGroup in which an Amazon EC2 instance
runs.
|
Placement |
withTenancy(java.lang.String tenancy)
The allowed tenancy of instances launched into the VPC.
|
public Placement()
public Placement(java.lang.String availabilityZone)
availabilityZone - The availability zone in which an Amazon EC2
instance runs.public java.lang.String getAvailabilityZone()
public void setAvailabilityZone(java.lang.String availabilityZone)
availabilityZone - The availability zone in which an Amazon EC2 instance runs.public Placement withAvailabilityZone(java.lang.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 java.lang.String getGroupName()
public void setGroupName(java.lang.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(java.lang.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 java.lang.String getTenancy()
public void setTenancy(java.lang.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(java.lang.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 java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object