@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 |
getGroupArn()
The Amazon Resource Name (ARN) of the placement group.
|
String |
getGroupId()
The ID of the placement group.
|
String |
getGroupName()
The name of the placement group.
|
Integer |
getPartitionCount()
The number of partitions.
|
String |
getSpreadLevel()
The spread level for the placement group.
|
String |
getState()
The state of the placement group.
|
String |
getStrategy()
The placement strategy.
|
List<Tag> |
getTags()
Any tags applied to the placement group.
|
int |
hashCode() |
void |
setGroupArn(String groupArn)
The Amazon Resource Name (ARN) of the placement group.
|
void |
setGroupId(String groupId)
The ID of the placement group.
|
void |
setGroupName(String groupName)
The name of the placement group.
|
void |
setPartitionCount(Integer partitionCount)
The number of partitions.
|
void |
setSpreadLevel(SpreadLevel spreadLevel)
The spread level for the placement group.
|
void |
setSpreadLevel(String spreadLevel)
The spread level for the placement group.
|
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.
|
void |
setTags(Collection<Tag> tags)
Any tags applied to the placement group.
|
String |
toString()
Returns a string representation of this object.
|
PlacementGroup |
withGroupArn(String groupArn)
The Amazon Resource Name (ARN) of the placement group.
|
PlacementGroup |
withGroupId(String groupId)
The ID of the placement group.
|
PlacementGroup |
withGroupName(String groupName)
The name of the placement group.
|
PlacementGroup |
withPartitionCount(Integer partitionCount)
The number of partitions.
|
PlacementGroup |
withSpreadLevel(SpreadLevel spreadLevel)
The spread level for the placement group.
|
PlacementGroup |
withSpreadLevel(String spreadLevel)
The spread level for the placement group.
|
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.
|
PlacementGroup |
withTags(Collection<Tag> tags)
Any tags applied to the placement group.
|
PlacementGroup |
withTags(Tag... tags)
Any tags applied to the placement group.
|
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.PlacementGroupState
public String getState()
The state of the placement group.
PlacementGroupState
public PlacementGroup withState(String state)
The state of the placement group.
state
- The state of the placement group.PlacementGroupState
public void setState(PlacementGroupState state)
The state of the placement group.
state
- The state of the placement group.PlacementGroupState
public PlacementGroup withState(PlacementGroupState state)
The state of the placement group.
state
- The state of the placement group.PlacementGroupState
public void setStrategy(String strategy)
The placement strategy.
strategy
- The placement strategy.PlacementStrategy
public String getStrategy()
The placement strategy.
PlacementStrategy
public PlacementGroup withStrategy(String strategy)
The placement strategy.
strategy
- The placement strategy.PlacementStrategy
public void setStrategy(PlacementStrategy strategy)
The placement strategy.
strategy
- The placement strategy.PlacementStrategy
public PlacementGroup withStrategy(PlacementStrategy strategy)
The placement strategy.
strategy
- The placement strategy.PlacementStrategy
public 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 void setGroupId(String groupId)
The ID of the placement group.
groupId
- The ID of the placement group.public String getGroupId()
The ID of the placement group.
public PlacementGroup withGroupId(String groupId)
The ID of the placement group.
groupId
- The ID of the placement group.public List<Tag> getTags()
Any tags applied to the placement group.
public void setTags(Collection<Tag> tags)
Any tags applied to the placement group.
tags
- Any tags applied to the placement group.public PlacementGroup withTags(Tag... tags)
Any tags applied to the placement group.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- Any tags applied to the placement group.public PlacementGroup withTags(Collection<Tag> tags)
Any tags applied to the placement group.
tags
- Any tags applied to the placement group.public void setGroupArn(String groupArn)
The Amazon Resource Name (ARN) of the placement group.
groupArn
- The Amazon Resource Name (ARN) of the placement group.public String getGroupArn()
The Amazon Resource Name (ARN) of the placement group.
public PlacementGroup withGroupArn(String groupArn)
The Amazon Resource Name (ARN) of the placement group.
groupArn
- The Amazon Resource Name (ARN) of the placement group.public void setSpreadLevel(String spreadLevel)
The spread level for the placement group. Only Outpost placement groups can be spread across hosts.
spreadLevel
- The spread level for the placement group. Only Outpost placement groups can be spread across hosts.SpreadLevel
public String getSpreadLevel()
The spread level for the placement group. Only Outpost placement groups can be spread across hosts.
SpreadLevel
public PlacementGroup withSpreadLevel(String spreadLevel)
The spread level for the placement group. Only Outpost placement groups can be spread across hosts.
spreadLevel
- The spread level for the placement group. Only Outpost placement groups can be spread across hosts.SpreadLevel
public void setSpreadLevel(SpreadLevel spreadLevel)
The spread level for the placement group. Only Outpost placement groups can be spread across hosts.
spreadLevel
- The spread level for the placement group. Only Outpost placement groups can be spread across hosts.SpreadLevel
public PlacementGroup withSpreadLevel(SpreadLevel spreadLevel)
The spread level for the placement group. Only Outpost placement groups can be spread across hosts.
spreadLevel
- The spread level for the placement group. Only Outpost placement groups can be spread across hosts.SpreadLevel
public String toString()
toString
in class Object
Object.toString()
public PlacementGroup clone()