com.amazonaws.services.ec2.model
Class PlacementGroup

java.lang.Object
  extended by com.amazonaws.services.ec2.model.PlacementGroup
All Implemented Interfaces:
java.io.Serializable

public class PlacementGroup
extends java.lang.Object
implements java.io.Serializable

Describes a placement group.

See Also:
Serialized Form

Constructor Summary
PlacementGroup()
          Default constructor for a new PlacementGroup object.
PlacementGroup(java.lang.String groupName)
          Constructs a new PlacementGroup object.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PlacementGroup

public PlacementGroup()
Default constructor for a new PlacementGroup object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


PlacementGroup

public PlacementGroup(java.lang.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

getGroupName

public java.lang.String getGroupName()
The name of the placement group.

Returns:
The name of the placement group.

setGroupName

public void setGroupName(java.lang.String groupName)
The name of the placement group.

Parameters:
groupName - The name of the placement group.

withGroupName

public PlacementGroup withGroupName(java.lang.String groupName)
The name of the placement group.

Returns a reference to this object so that method calls can be chained together.

Parameters:
groupName - The name of the placement group.
Returns:
A reference to this updated object so that method calls can be chained together.

getStrategy

public java.lang.String getStrategy()
The placement strategy.

Constraints:
Allowed Values: cluster

Returns:
The placement strategy.
See Also:
PlacementStrategy

setStrategy

public void setStrategy(java.lang.String strategy)
The placement strategy.

Constraints:
Allowed Values: cluster

Parameters:
strategy - The placement strategy.
See Also:
PlacementStrategy

withStrategy

public PlacementGroup withStrategy(java.lang.String strategy)
The placement strategy.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: cluster

Parameters:
strategy - The placement strategy.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
PlacementStrategy

setStrategy

public void setStrategy(PlacementStrategy strategy)
The placement strategy.

Constraints:
Allowed Values: cluster

Parameters:
strategy - The placement strategy.
See Also:
PlacementStrategy

withStrategy

public PlacementGroup withStrategy(PlacementStrategy strategy)
The placement strategy.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: cluster

Parameters:
strategy - The placement strategy.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
PlacementStrategy

getState

public java.lang.String getState()
The state of the placement group.

Constraints:
Allowed Values: pending, available, deleting, deleted

Returns:
The state of the placement group.
See Also:
PlacementGroupState

setState

public void setState(java.lang.String state)
The state of the placement group.

Constraints:
Allowed Values: pending, available, deleting, deleted

Parameters:
state - The state of the placement group.
See Also:
PlacementGroupState

withState

public PlacementGroup withState(java.lang.String state)
The state of the placement group.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: pending, available, deleting, deleted

Parameters:
state - The state of the placement group.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
PlacementGroupState

setState

public void setState(PlacementGroupState state)
The state of the placement group.

Constraints:
Allowed Values: pending, available, deleting, deleted

Parameters:
state - The state of the placement group.
See Also:
PlacementGroupState

withState

public PlacementGroup withState(PlacementGroupState state)
The state of the placement group.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: pending, available, deleting, deleted

Parameters:
state - The state of the placement group.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
PlacementGroupState

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.