public class PlacementGroup
extends java.lang.Object
implements java.io.Serializable
Represents a placement group into which multiple Amazon EC2 instances can be launched. A placement group ensures that Amazon EC2 instances are physically located close enough to support HPC features, such as higher IO network connections between instances in the group.
| コンストラクタと説明 |
|---|
PlacementGroup()
Default constructor for a new PlacementGroup object.
|
PlacementGroup(java.lang.String groupName)
Constructs a new PlacementGroup object.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getGroupName()
The name of this
PlacementGroup. |
java.lang.String |
getState()
The state of this
PlacementGroup. |
java.lang.String |
getStrategy()
The strategy to use when allocating Amazon EC2 instances for the
PlacementGroup. |
int |
hashCode() |
void |
setGroupName(java.lang.String groupName)
The name of this
PlacementGroup. |
void |
setState(PlacementGroupState state)
The state of this
PlacementGroup. |
void |
setState(java.lang.String state)
The state of this
PlacementGroup. |
void |
setStrategy(PlacementStrategy strategy)
The strategy to use when allocating Amazon EC2 instances for the
PlacementGroup. |
void |
setStrategy(java.lang.String strategy)
The strategy to use when allocating Amazon EC2 instances for the
PlacementGroup. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PlacementGroup |
withGroupName(java.lang.String groupName)
The name of this
PlacementGroup. |
PlacementGroup |
withState(PlacementGroupState state)
The state of this
PlacementGroup. |
PlacementGroup |
withState(java.lang.String state)
The state of this
PlacementGroup. |
PlacementGroup |
withStrategy(PlacementStrategy strategy)
The strategy to use when allocating Amazon EC2 instances for the
PlacementGroup. |
PlacementGroup |
withStrategy(java.lang.String strategy)
The strategy to use when allocating Amazon EC2 instances for the
PlacementGroup. |
public PlacementGroup()
public PlacementGroup(java.lang.String groupName)
groupName - The name of this PlacementGroup.public java.lang.String getGroupName()
PlacementGroup.PlacementGroup.public void setGroupName(java.lang.String groupName)
PlacementGroup.groupName - The name of this PlacementGroup.public PlacementGroup withGroupName(java.lang.String groupName)
PlacementGroup.
Returns a reference to this object so that method calls can be chained together.
groupName - The name of this PlacementGroup.public java.lang.String getStrategy()
PlacementGroup.
Constraints:
Allowed Values: cluster
PlacementGroup.PlacementStrategypublic void setStrategy(java.lang.String strategy)
PlacementGroup.
Constraints:
Allowed Values: cluster
strategy - The strategy to use when allocating Amazon EC2 instances for the
PlacementGroup.PlacementStrategypublic PlacementGroup withStrategy(java.lang.String strategy)
PlacementGroup.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: cluster
strategy - The strategy to use when allocating Amazon EC2 instances for the
PlacementGroup.PlacementStrategypublic void setStrategy(PlacementStrategy strategy)
PlacementGroup.
Constraints:
Allowed Values: cluster
strategy - The strategy to use when allocating Amazon EC2 instances for the
PlacementGroup.PlacementStrategypublic PlacementGroup withStrategy(PlacementStrategy strategy)
PlacementGroup.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: cluster
strategy - The strategy to use when allocating Amazon EC2 instances for the
PlacementGroup.PlacementStrategypublic java.lang.String getState()
PlacementGroup.
Constraints:
Allowed Values: pending, available, deleting, deleted
PlacementGroup.PlacementGroupStatepublic void setState(java.lang.String state)
PlacementGroup.
Constraints:
Allowed Values: pending, available, deleting, deleted
state - The state of this PlacementGroup.PlacementGroupStatepublic PlacementGroup withState(java.lang.String state)
PlacementGroup.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: pending, available, deleting, deleted
state - The state of this PlacementGroup.PlacementGroupStatepublic void setState(PlacementGroupState state)
PlacementGroup.
Constraints:
Allowed Values: pending, available, deleting, deleted
state - The state of this PlacementGroup.PlacementGroupStatepublic PlacementGroup withState(PlacementGroupState state)
PlacementGroup.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: pending, available, deleting, deleted
state - The state of this PlacementGroup.PlacementGroupStatepublic 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