|
|||||||
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(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 |
---|
public CreatePlacementGroupRequest()
public CreatePlacementGroupRequest(java.lang.String groupName, java.lang.String strategy)
groupName
- A name for the placement group. Constraints: Up to 255 ASCII characters
strategy
- The placement strategy.public CreatePlacementGroupRequest(java.lang.String groupName, PlacementStrategy strategy)
groupName
- A name for the placement group. Constraints: Up to 255 ASCII characters
strategy
- The placement strategy.Method Detail |
---|
public java.lang.String getGroupName()
Constraints: Up to 255 ASCII characters
Constraints: Up to 255 ASCII characters
public void setGroupName(java.lang.String groupName)
Constraints: Up to 255 ASCII characters
groupName
- A name for the placement group. Constraints: Up to 255 ASCII characters
public CreatePlacementGroupRequest withGroupName(java.lang.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 java.lang.String getStrategy()
Constraints:
Allowed Values: cluster
PlacementStrategy
public void setStrategy(java.lang.String strategy)
Constraints:
Allowed Values: cluster
strategy
- The placement strategy.PlacementStrategy
public CreatePlacementGroupRequest withStrategy(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |