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 PlacementGroupclone()booleanequals(Object obj)StringgetGroupName()The name of the placement group.StringgetState()The state of the placement group.StringgetStrategy()The placement strategy.inthashCode()voidsetGroupName(String groupName)The name of the placement group.voidsetState(PlacementGroupState state)The state of the placement group.voidsetState(String state)The state of the placement group.voidsetStrategy(PlacementStrategy strategy)The placement strategy.voidsetStrategy(String strategy)The placement strategy.StringtoString()Returns a string representation of this object; useful for testing and debugging.PlacementGroupwithGroupName(String groupName)The name of the placement group.PlacementGroupwithState(PlacementGroupState state)The state of the placement group.PlacementGroupwithState(String state)The state of the placement group.PlacementGroupwithStrategy(PlacementStrategy strategy)The placement strategy.PlacementGroupwithStrategy(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public PlacementGroup clone()
-
-