public class SpotPlacement
extends java.lang.Object
implements java.io.Serializable
Describes where an Amazon EC2 instance is running within an Amazon EC2 region.
| コンストラクタと説明 |
|---|
SpotPlacement()
Default constructor for a new SpotPlacement object.
|
SpotPlacement(java.lang.String availabilityZone)
Constructs a new SpotPlacement 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.
|
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.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SpotPlacement |
withAvailabilityZone(java.lang.String availabilityZone)
The availability zone in which an Amazon EC2 instance runs.
|
SpotPlacement |
withGroupName(java.lang.String groupName)
The name of the PlacementGroup in which an Amazon EC2 instance
runs.
|
public SpotPlacement()
public SpotPlacement(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 SpotPlacement 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 SpotPlacement 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 toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object