com.amazonaws.services.ec2.model
Class PlacementGroup

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

public class PlacementGroup
extends java.lang.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(java.lang.String groupName)
          Constructs a new PlacementGroup object.
 
Method Summary
 java.lang.String getGroupName()
          The name of this PlacementGroup.
 java.lang.String getState()
          The state of this PlacementGroup.
 java.lang.String getStrategy()
          The strategy to use when allocating Amazon EC2 instances for the PlacementGroup.
 void setGroupName(java.lang.String groupName)
          The name of this PlacementGroup.
 void setState(java.lang.String state)
          The state of this PlacementGroup.
 void setStrategy(java.lang.String strategy)
          The strategy to use when allocating Amazon EC2 instances for the PlacementGroup.
 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 this PlacementGroup.
 PlacementGroup withState(java.lang.String state)
          The state of this PlacementGroup.
 PlacementGroup withStrategy(java.lang.String strategy)
          The strategy to use when allocating Amazon EC2 instances for the PlacementGroup.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, 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 this PlacementGroup.
Method Detail

getGroupName

public java.lang.String getGroupName()
The name of this PlacementGroup.

Returns:
The name of this PlacementGroup.

setGroupName

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

Parameters:
groupName - The name of this PlacementGroup.

withGroupName

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

getState

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

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()


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