com.amazonaws.services.ec2.model
Class PlacementGroup

java.lang.Object
  extended by com.amazonaws.services.ec2.model.PlacementGroup

public class PlacementGroup
extends Object

Represents a placement group into which multiple Amazon EC2 instances can be launched. A placement group ensures that Amazon EC2 instances are physically located close enough to support HPC features, such as higher IO network connections between instances in the group.


Constructor Summary
PlacementGroup()
          Default constructor for a new PlacementGroup object.
PlacementGroup(String groupName)
          Constructs a new PlacementGroup object.
 
Method Summary
 boolean equals(Object obj)
           
 String getGroupName()
          The name of this PlacementGroup.
 String getState()
          The state of this PlacementGroup.
 String getStrategy()
          The strategy to use when allocating Amazon EC2 instances for the PlacementGroup.
 int hashCode()
           
 void setGroupName(String groupName)
          The name of this PlacementGroup.
 void setState(PlacementGroupState state)
          The state of this PlacementGroup.
 void setState(String state)
          The state of this PlacementGroup.
 void setStrategy(PlacementStrategy strategy)
          The strategy to use when allocating Amazon EC2 instances for the PlacementGroup.
 void setStrategy(String strategy)
          The strategy to use when allocating Amazon EC2 instances for the PlacementGroup.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 PlacementGroup withGroupName(String groupName)
          The name of this PlacementGroup.
 PlacementGroup withState(PlacementGroupState state)
          The state of this PlacementGroup.
 PlacementGroup withState(String state)
          The state of this PlacementGroup.
 PlacementGroup withStrategy(PlacementStrategy strategy)
          The strategy to use when allocating Amazon EC2 instances for the PlacementGroup.
 PlacementGroup withStrategy(String strategy)
          The strategy to use when allocating Amazon EC2 instances for the PlacementGroup.
 
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(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 this PlacementGroup.
Method Detail

getGroupName

public String getGroupName()
The name of this PlacementGroup.

Returns:
The name of this PlacementGroup.

setGroupName

public void setGroupName(String groupName)
The name of this PlacementGroup.

Parameters:
groupName - The name of this PlacementGroup.

withGroupName

public PlacementGroup withGroupName(String groupName)
The name of this PlacementGroup.

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

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

getStrategy

public String getStrategy()
The strategy to use when allocating Amazon EC2 instances for the PlacementGroup.

Constraints:
Allowed Values: cluster

Returns:
The strategy to use when allocating Amazon EC2 instances for the PlacementGroup.
See Also:
PlacementStrategy

setStrategy

public void setStrategy(String strategy)
The strategy to use when allocating Amazon EC2 instances for the PlacementGroup.

Constraints:
Allowed Values: cluster

Parameters:
strategy - The strategy to use when allocating Amazon EC2 instances for the PlacementGroup.
See Also:
PlacementStrategy

withStrategy

public PlacementGroup withStrategy(String strategy)
The strategy to use when allocating Amazon EC2 instances for the PlacementGroup.

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

Constraints:
Allowed Values: cluster

Parameters:
strategy - The strategy to use when allocating Amazon EC2 instances for the PlacementGroup.
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 strategy to use when allocating Amazon EC2 instances for the PlacementGroup.

Constraints:
Allowed Values: cluster

Parameters:
strategy - The strategy to use when allocating Amazon EC2 instances for the PlacementGroup.
See Also:
PlacementStrategy

withStrategy

public PlacementGroup withStrategy(PlacementStrategy strategy)
The strategy to use when allocating Amazon EC2 instances for the PlacementGroup.

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

Constraints:
Allowed Values: cluster

Parameters:
strategy - The strategy to use when allocating Amazon EC2 instances for the PlacementGroup.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
PlacementStrategy

getState

public String getState()
The state of this PlacementGroup.

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

Returns:
The state of this PlacementGroup.
See Also:
PlacementGroupState

setState

public void setState(String state)
The state of this PlacementGroup.

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

Parameters:
state - The state of this PlacementGroup.
See Also:
PlacementGroupState

withState

public PlacementGroup withState(String state)
The state of this PlacementGroup.

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 this PlacementGroup.
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 this PlacementGroup.

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

Parameters:
state - The state of this PlacementGroup.
See Also:
PlacementGroupState

withState

public PlacementGroup withState(PlacementGroupState state)
The state of this PlacementGroup.

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 this PlacementGroup.
Returns:
A reference to this updated 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 class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


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