public class PlacementGroup extends Object implements 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.
| Constructor and Description |
|---|
PlacementGroup()
Default constructor for a new PlacementGroup object.
|
PlacementGroup(String groupName)
Constructs a new PlacementGroup object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getGroupName()
The name of this
PlacementGroup. |
String |
getState()
The state of this
PlacementGroup. |
String |
getStrategy()
The strategy to use when allocating Amazon EC2 instances for the
PlacementGroup. |
int |
hashCode() |
void |
setGroupName(String groupName)
The name of this
PlacementGroup. |
void |
setState(PlacementGroupState state)
The state of this
PlacementGroup. |
void |
setState(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(String strategy)
The strategy to use when allocating Amazon EC2 instances for the
PlacementGroup. |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PlacementGroup |
withGroupName(String groupName)
The name of this
PlacementGroup. |
PlacementGroup |
withState(PlacementGroupState state)
The state of this
PlacementGroup. |
PlacementGroup |
withState(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(String strategy)
The strategy to use when allocating Amazon EC2 instances for the
PlacementGroup. |
public PlacementGroup()
public PlacementGroup(String groupName)
groupName - The name of this PlacementGroup.public String getGroupName()
PlacementGroup.PlacementGroup.public void setGroupName(String groupName)
PlacementGroup.groupName - The name of this PlacementGroup.public PlacementGroup withGroupName(String groupName)
PlacementGroup.
Returns a reference to this object so that method calls can be chained together.
groupName - The name of this PlacementGroup.public String getStrategy()
PlacementGroup.
Constraints:
Allowed Values: cluster
PlacementGroup.PlacementStrategypublic void setStrategy(String strategy)
PlacementGroup.
Constraints:
Allowed Values: cluster
strategy - The strategy to use when allocating Amazon EC2 instances for the
PlacementGroup.PlacementStrategypublic PlacementGroup withStrategy(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 String getState()
PlacementGroup.
Constraints:
Allowed Values: pending, available, deleting, deleted
PlacementGroup.PlacementGroupStatepublic void setState(String state)
PlacementGroup.
Constraints:
Allowed Values: pending, available, deleting, deleted
state - The state of this PlacementGroup.PlacementGroupStatepublic PlacementGroup withState(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 String toString()
toString in class ObjectObject.toString()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.