public class CreatePlacementGroupRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, 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 .
NOOP| 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 |
|---|---|
CreatePlacementGroupRequest |
clone()
Creates a shallow clone of this request.
|
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.
|
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic 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
PlacementStrategypublic void setStrategy(String strategy)
Constraints:
Allowed Values: cluster
strategy - The placement strategy.PlacementStrategypublic 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.PlacementStrategypublic void setStrategy(PlacementStrategy strategy)
Constraints:
Allowed Values: cluster
strategy - The placement strategy.PlacementStrategypublic 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.PlacementStrategypublic Request<CreatePlacementGroupRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<CreatePlacementGroupRequest>public String toString()
toString in class ObjectObject.toString()public CreatePlacementGroupRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.