Package com.amazonaws.services.ec2.model
Class PlacementGroup
java.lang.Object
com.amazonaws.services.ec2.model.PlacementGroup
- All Implemented Interfaces:
Serializable
,Cloneable
Describes a placement group.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for PlacementGroup object.PlacementGroup
(String groupName) Constructs a new PlacementGroup object. -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The name of the placement group.getState()
The state of the placement group.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
The state of the placement group.void
setStrategy
(PlacementStrategy strategy) The placement strategy.void
setStrategy
(String strategy) The placement strategy.toString()
Returns a string representation of this object; useful for testing and debugging.withGroupName
(String groupName) The name of the placement group.withState
(PlacementGroupState state) The state of the placement group.The state of the placement group.withStrategy
(PlacementStrategy strategy) The placement strategy.withStrategy
(String strategy) The placement strategy.
-
Constructor Details
-
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
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 Details
-
setGroupName
The name of the placement group.
- Parameters:
groupName
- The name of the placement group.
-
getGroupName
The name of the placement group.
- Returns:
- The name of the placement group.
-
withGroupName
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
The placement strategy.
- Parameters:
strategy
- The placement strategy.- See Also:
-
getStrategy
The placement strategy.
- Returns:
- The placement strategy.
- See Also:
-
withStrategy
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:
-
setStrategy
The placement strategy.
- Parameters:
strategy
- The placement strategy.- See Also:
-
withStrategy
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:
-
setState
The state of the placement group.
- Parameters:
state
- The state of the placement group.- See Also:
-
getState
The state of the placement group.
- Returns:
- The state of the placement group.
- See Also:
-
withState
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:
-
setState
The state of the placement group.
- Parameters:
state
- The state of the placement group.- See Also:
-
withState
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:
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-