public class PlacementGroup
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a placement group.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
groupName
The name of the placement group.
|
private java.lang.String |
state
The state of the placement group.
|
private java.lang.String |
strategy
The placement strategy.
|
Constructor and Description |
---|
PlacementGroup()
Default constructor for PlacementGroup object.
|
PlacementGroup(java.lang.String groupName)
Constructs a new PlacementGroup object.
|
Modifier and Type | Method and Description |
---|---|
PlacementGroup |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getGroupName()
The name of the placement group.
|
java.lang.String |
getState()
The state of the placement group.
|
java.lang.String |
getStrategy()
The placement strategy.
|
int |
hashCode() |
void |
setGroupName(java.lang.String groupName)
The name of the placement group.
|
void |
setState(PlacementGroupState state)
The state of the placement group.
|
void |
setState(java.lang.String state)
The state of the placement group.
|
void |
setStrategy(PlacementStrategy strategy)
The placement strategy.
|
void |
setStrategy(java.lang.String strategy)
The placement strategy.
|
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 the placement group.
|
PlacementGroup |
withState(PlacementGroupState state)
The state of the placement group.
|
PlacementGroup |
withState(java.lang.String state)
The state of the placement group.
|
PlacementGroup |
withStrategy(PlacementStrategy strategy)
The placement strategy.
|
PlacementGroup |
withStrategy(java.lang.String strategy)
The placement strategy.
|
private java.lang.String groupName
The name of the placement group.
private java.lang.String strategy
The placement strategy.
private java.lang.String state
The state of the placement group.
public PlacementGroup()
public PlacementGroup(java.lang.String groupName)
groupName
- The name of the placement group.public void setGroupName(java.lang.String groupName)
The name of the placement group.
groupName
- The name of the placement group.public java.lang.String getGroupName()
The name of the placement group.
public PlacementGroup withGroupName(java.lang.String groupName)
The name of the placement group.
groupName
- The name of the placement group.public void setStrategy(java.lang.String strategy)
The placement strategy.
strategy
- The placement strategy.PlacementStrategy
public java.lang.String getStrategy()
The placement strategy.
PlacementStrategy
public PlacementGroup withStrategy(java.lang.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 setState(java.lang.String state)
The state of the placement group.
state
- The state of the placement group.PlacementGroupState
public java.lang.String getState()
The state of the placement group.
PlacementGroupState
public PlacementGroup withState(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public PlacementGroup clone()
clone
in class java.lang.Object