com.amazonaws.services.ec2.model
Class CreatePlacementGroupRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.CreatePlacementGroupRequest

public class CreatePlacementGroupRequest
extends AmazonWebServiceRequest

Container for the parameters to the CreatePlacementGroup operation.

Creates a PlacementGroup into which multiple Amazon EC2 instances can be launched. Users must give the group a name unique within the scope of the user account.

See Also:
AmazonEC2.createPlacementGroup(CreatePlacementGroupRequest)

Constructor Summary
CreatePlacementGroupRequest()
          Default constructor for a new CreatePlacementGroupRequest object.
CreatePlacementGroupRequest(String groupName, PlacementStrategy strategy)
          Constructs a new CreatePlacementGroupRequest object.
CreatePlacementGroupRequest(String groupName, String strategy)
          Constructs a new CreatePlacementGroupRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 String getGroupName()
          The name of the PlacementGroup.
 String getStrategy()
          The PlacementGroup strategy.
 int hashCode()
           
 void setGroupName(String groupName)
          The name of the PlacementGroup.
 void setStrategy(PlacementStrategy strategy)
          The PlacementGroup strategy.
 void setStrategy(String strategy)
          The PlacementGroup strategy.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CreatePlacementGroupRequest withGroupName(String groupName)
          The name of the PlacementGroup.
 CreatePlacementGroupRequest withStrategy(PlacementStrategy strategy)
          The PlacementGroup strategy.
 CreatePlacementGroupRequest withStrategy(String strategy)
          The PlacementGroup strategy.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreatePlacementGroupRequest

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


CreatePlacementGroupRequest

public CreatePlacementGroupRequest(String groupName,
                                   String strategy)
Constructs a new CreatePlacementGroupRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
groupName - The name of the PlacementGroup.
strategy - The PlacementGroup strategy.

CreatePlacementGroupRequest

public CreatePlacementGroupRequest(String groupName,
                                   PlacementStrategy strategy)
Constructs a new CreatePlacementGroupRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
groupName - The name of the PlacementGroup.
strategy - The PlacementGroup strategy.
Method Detail

getGroupName

public String getGroupName()
The name of the PlacementGroup.

Returns:
The name of the PlacementGroup.

setGroupName

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

Parameters:
groupName - The name of the PlacementGroup.

withGroupName

public CreatePlacementGroupRequest withGroupName(String groupName)
The name of the PlacementGroup.

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

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

getStrategy

public String getStrategy()
The PlacementGroup strategy.

Constraints:
Allowed Values: cluster

Returns:
The PlacementGroup strategy.
See Also:
PlacementStrategy

setStrategy

public void setStrategy(String strategy)
The PlacementGroup strategy.

Constraints:
Allowed Values: cluster

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

withStrategy

public CreatePlacementGroupRequest withStrategy(String strategy)
The PlacementGroup strategy.

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

Constraints:
Allowed Values: cluster

Parameters:
strategy - The PlacementGroup 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 PlacementGroup strategy.

Constraints:
Allowed Values: cluster

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

withStrategy

public CreatePlacementGroupRequest withStrategy(PlacementStrategy strategy)
The PlacementGroup strategy.

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

Constraints:
Allowed Values: cluster

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

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.