@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PlacementGroup extends Object implements Serializable, Cloneable
Describes a placement group.
| Constructor and Description |
|---|
PlacementGroup()
Default constructor for PlacementGroup object.
|
PlacementGroup(String groupName)
Constructs a new PlacementGroup object.
|
| Modifier and Type | Method and Description |
|---|---|
PlacementGroup |
clone() |
boolean |
equals(Object obj) |
String |
getGroupName()
The name of the placement group.
|
Integer |
getPartitionCount()
The number of partitions.
|
String |
getState()
The state of the placement group.
|
String |
getStrategy()
The placement strategy.
|
int |
hashCode() |
void |
setGroupName(String groupName)
The name of the placement group.
|
void |
setPartitionCount(Integer partitionCount)
The number of partitions.
|
void |
setState(PlacementGroupState state)
The state of the placement group.
|
void |
setState(String state)
The state of the placement group.
|
void |
setStrategy(PlacementStrategy strategy)
The placement strategy.
|
void |
setStrategy(String strategy)
The placement strategy.
|
String |
toString()
Returns a string representation of this object.
|
PlacementGroup |
withGroupName(String groupName)
The name of the placement group.
|
PlacementGroup |
withPartitionCount(Integer partitionCount)
The number of partitions.
|
PlacementGroup |
withState(PlacementGroupState state)
The state of the placement group.
|
PlacementGroup |
withState(String state)
The state of the placement group.
|
PlacementGroup |
withStrategy(PlacementStrategy strategy)
The placement strategy.
|
PlacementGroup |
withStrategy(String strategy)
The placement strategy.
|
public PlacementGroup()
public PlacementGroup(String groupName)
groupName - The name of the placement group.public void setGroupName(String groupName)
The name of the placement group.
groupName - The name of the placement group.public String getGroupName()
The name of the placement group.
public PlacementGroup withGroupName(String groupName)
The name of the placement group.
groupName - The name of the placement group.public void setState(String state)
The state of the placement group.
state - The state of the placement group.PlacementGroupStatepublic String getState()
The state of the placement group.
PlacementGroupStatepublic PlacementGroup withState(String state)
The state of the placement group.
state - The state of the placement group.PlacementGroupStatepublic void setState(PlacementGroupState state)
The state of the placement group.
state - The state of the placement group.PlacementGroupStatepublic PlacementGroup withState(PlacementGroupState state)
The state of the placement group.
state - The state of the placement group.PlacementGroupStatepublic void setStrategy(String strategy)
The placement strategy.
strategy - The placement strategy.PlacementStrategypublic String getStrategy()
The placement strategy.
PlacementStrategypublic PlacementGroup withStrategy(String strategy)
The placement strategy.
strategy - The placement strategy.PlacementStrategypublic void setStrategy(PlacementStrategy strategy)
The placement strategy.
strategy - The placement strategy.PlacementStrategypublic PlacementGroup withStrategy(PlacementStrategy strategy)
The placement strategy.
strategy - The placement strategy.PlacementStrategypublic void setPartitionCount(Integer partitionCount)
The number of partitions. Valid only if strategy is set to partition.
partitionCount - The number of partitions. Valid only if strategy is set to partition.public Integer getPartitionCount()
The number of partitions. Valid only if strategy is set to partition.
partition.public PlacementGroup withPartitionCount(Integer partitionCount)
The number of partitions. Valid only if strategy is set to partition.
partitionCount - The number of partitions. Valid only if strategy is set to partition.public String toString()
toString in class ObjectObject.toString()public PlacementGroup clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.