Package com.amazonaws.services.ec2.model
Class PlacementGroup
- java.lang.Object
-
- com.amazonaws.services.ec2.model.PlacementGroup
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class PlacementGroup extends Object implements Serializable, Cloneable
Describes a placement group.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PlacementGroup()
Default constructor for PlacementGroup object.PlacementGroup(String groupName)
Constructs a new PlacementGroup object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PlacementGroup
clone()
boolean
equals(Object obj)
String
getGroupName()
The name of the placement group.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
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; useful for testing and debugging.PlacementGroup
withGroupName(String groupName)
The name of 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.
-
-
-
Constructor Detail
-
PlacementGroup
public PlacementGroup()
Default constructor for PlacementGroup object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
-
PlacementGroup
public PlacementGroup(String groupName)
Constructs a new PlacementGroup object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
groupName
- The name of the placement group.
-
-
Method Detail
-
setGroupName
public void setGroupName(String groupName)
The name of the placement group.
- Parameters:
groupName
- The name of the placement group.
-
getGroupName
public String getGroupName()
The name of the placement group.
- Returns:
- The name of the placement group.
-
withGroupName
public PlacementGroup withGroupName(String groupName)
The name of the placement group.
- Parameters:
groupName
- The name of the placement group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStrategy
public void setStrategy(String strategy)
The placement strategy.
- Parameters:
strategy
- The placement strategy.- See Also:
PlacementStrategy
-
getStrategy
public String getStrategy()
The placement strategy.
- Returns:
- The placement strategy.
- See Also:
PlacementStrategy
-
withStrategy
public PlacementGroup withStrategy(String strategy)
The placement strategy.
- Parameters:
strategy
- The placement strategy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PlacementStrategy
-
setStrategy
public void setStrategy(PlacementStrategy strategy)
The placement strategy.
- Parameters:
strategy
- The placement strategy.- See Also:
PlacementStrategy
-
withStrategy
public PlacementGroup withStrategy(PlacementStrategy strategy)
The placement strategy.
- Parameters:
strategy
- The placement strategy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PlacementStrategy
-
setState
public void setState(String state)
The state of the placement group.
- Parameters:
state
- The state of the placement group.- See Also:
PlacementGroupState
-
getState
public String getState()
The state of the placement group.
- Returns:
- The state of the placement group.
- See Also:
PlacementGroupState
-
withState
public PlacementGroup withState(String state)
The state of the placement group.
- Parameters:
state
- The state of the placement group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PlacementGroupState
-
setState
public void setState(PlacementGroupState state)
The state of the placement group.
- Parameters:
state
- The state of the placement group.- See Also:
PlacementGroupState
-
withState
public PlacementGroup withState(PlacementGroupState state)
The state of the placement group.
- Parameters:
state
- The state of the placement group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PlacementGroupState
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public PlacementGroup clone()
-
-