com.amazonaws.services.ec2.model
Class CreatePlacementGroupRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.CreatePlacementGroupRequest
All Implemented Interfaces:
DryRunSupportedRequest<CreatePlacementGroupRequest>, java.io.Serializable

public class CreatePlacementGroupRequest
extends AmazonWebServiceRequest
implements java.io.Serializable, DryRunSupportedRequest<CreatePlacementGroupRequest>

Container for the parameters to the CreatePlacementGroup operation.

Creates a placement group that you launch cluster instances into. You must give the group a name that's unique within the scope of your account.

For more information about placement groups and cluster instances, see Cluster Instances in the Amazon Elastic Compute Cloud User Guide .

See Also:
AmazonEC2.createPlacementGroup(CreatePlacementGroupRequest), Serialized Form

Constructor Summary
CreatePlacementGroupRequest()
          Default constructor for a new CreatePlacementGroupRequest object.
CreatePlacementGroupRequest(java.lang.String groupName, PlacementStrategy strategy)
          Constructs a new CreatePlacementGroupRequest object.
CreatePlacementGroupRequest(java.lang.String groupName, java.lang.String strategy)
          Constructs a new CreatePlacementGroupRequest object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 Request<CreatePlacementGroupRequest> getDryRunRequest()
          This method is intended for internal use only.
 java.lang.String getGroupName()
          A name for the placement group.
 java.lang.String getStrategy()
          The placement strategy.
 int hashCode()
           
 void setGroupName(java.lang.String groupName)
          A name for 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.
 CreatePlacementGroupRequest withGroupName(java.lang.String groupName)
          A name for the placement group.
 CreatePlacementGroupRequest withStrategy(PlacementStrategy strategy)
          The placement strategy.
 CreatePlacementGroupRequest withStrategy(java.lang.String strategy)
          The placement strategy.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
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(java.lang.String groupName,
                                   java.lang.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 - A name for the placement group.

Constraints: Up to 255 ASCII characters

strategy - The placement strategy.

CreatePlacementGroupRequest

public CreatePlacementGroupRequest(java.lang.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 - A name for the placement group.

Constraints: Up to 255 ASCII characters

strategy - The placement strategy.
Method Detail

getGroupName

public java.lang.String getGroupName()
A name for the placement group.

Constraints: Up to 255 ASCII characters

Returns:
A name for the placement group.

Constraints: Up to 255 ASCII characters


setGroupName

public void setGroupName(java.lang.String groupName)
A name for the placement group.

Constraints: Up to 255 ASCII characters

Parameters:
groupName - A name for the placement group.

Constraints: Up to 255 ASCII characters


withGroupName

public CreatePlacementGroupRequest withGroupName(java.lang.String groupName)
A name for the placement group.

Constraints: Up to 255 ASCII characters

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

Parameters:
groupName - A name for the placement group.

Constraints: Up to 255 ASCII characters

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 CreatePlacementGroupRequest 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 CreatePlacementGroupRequest 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

getDryRunRequest

public Request<CreatePlacementGroupRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.

Specified by:
getDryRunRequest in interface DryRunSupportedRequest<CreatePlacementGroupRequest>

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.