|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.CreatePlacementGroupRequest
public class 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 .
AmazonEC2.createPlacementGroup(CreatePlacementGroupRequest)
,
Serialized FormConstructor 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)
|
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. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |