public class CreatePlacementGroupRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<CreatePlacementGroupRequest>
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 .
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Request<CreatePlacementGroupRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getGroupName()
A name for the placement group.
|
String |
getStrategy()
The placement strategy.
|
int |
hashCode() |
void |
setGroupName(String groupName)
A name for the placement group.
|
void |
setStrategy(PlacementStrategy strategy)
The placement strategy.
|
void |
setStrategy(String strategy)
The placement strategy.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreatePlacementGroupRequest |
withGroupName(String groupName)
A name for the placement group.
|
CreatePlacementGroupRequest |
withStrategy(PlacementStrategy strategy)
The placement strategy.
|
CreatePlacementGroupRequest |
withStrategy(String strategy)
The placement strategy.
|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public CreatePlacementGroupRequest()
public CreatePlacementGroupRequest(String groupName, String strategy)
groupName
- A name for the placement group. Constraints: Up to 255 ASCII characters
strategy
- The placement strategy.public CreatePlacementGroupRequest(String groupName, PlacementStrategy strategy)
groupName
- A name for the placement group. Constraints: Up to 255 ASCII characters
strategy
- The placement strategy.public String getGroupName()
Constraints: Up to 255 ASCII characters
Constraints: Up to 255 ASCII characters
public void setGroupName(String groupName)
Constraints: Up to 255 ASCII characters
groupName
- A name for the placement group. Constraints: Up to 255 ASCII characters
public CreatePlacementGroupRequest withGroupName(String groupName)
Constraints: Up to 255 ASCII characters
Returns a reference to this object so that method calls can be chained together.
groupName
- A name for the placement group. Constraints: Up to 255 ASCII characters
public String getStrategy()
Constraints:
Allowed Values: cluster
PlacementStrategy
public void setStrategy(String strategy)
Constraints:
Allowed Values: cluster
strategy
- The placement strategy.PlacementStrategy
public CreatePlacementGroupRequest withStrategy(String strategy)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: cluster
strategy
- The placement strategy.PlacementStrategy
public void setStrategy(PlacementStrategy strategy)
Constraints:
Allowed Values: cluster
strategy
- The placement strategy.PlacementStrategy
public CreatePlacementGroupRequest withStrategy(PlacementStrategy strategy)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: cluster
strategy
- The placement strategy.PlacementStrategy
public Request<CreatePlacementGroupRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CreatePlacementGroupRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.