public class CreatePlacementGroupRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<CreatePlacementGroupRequest>
CreatePlacementGroup operation
.
Creates a PlacementGroup into which multiple Amazon EC2 instances can be launched. Users must give the group a name unique within the scope of the user account.
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()
The name of the
PlacementGroup . |
String |
getStrategy()
The
PlacementGroup strategy. |
int |
hashCode() |
void |
setGroupName(String groupName)
The name of the
PlacementGroup . |
void |
setStrategy(PlacementStrategy strategy)
The
PlacementGroup strategy. |
void |
setStrategy(String strategy)
The
PlacementGroup strategy. |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreatePlacementGroupRequest |
withGroupName(String groupName)
The name of the
PlacementGroup . |
CreatePlacementGroupRequest |
withStrategy(PlacementStrategy strategy)
The
PlacementGroup strategy. |
CreatePlacementGroupRequest |
withStrategy(String strategy)
The
PlacementGroup strategy. |
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public CreatePlacementGroupRequest()
public CreatePlacementGroupRequest(String groupName, String strategy)
groupName
- The name of the PlacementGroup
.strategy
- The PlacementGroup
strategy.public CreatePlacementGroupRequest(String groupName, PlacementStrategy strategy)
groupName
- The name of the PlacementGroup
.strategy
- The PlacementGroup
strategy.public String getGroupName()
PlacementGroup
.PlacementGroup
.public void setGroupName(String groupName)
PlacementGroup
.groupName
- The name of the PlacementGroup
.public CreatePlacementGroupRequest withGroupName(String groupName)
PlacementGroup
.
Returns a reference to this object so that method calls can be chained together.
groupName
- The name of the PlacementGroup
.public String getStrategy()
PlacementGroup
strategy.
Constraints:
Allowed Values: cluster
PlacementGroup
strategy.PlacementStrategy
public void setStrategy(String strategy)
PlacementGroup
strategy.
Constraints:
Allowed Values: cluster
strategy
- The PlacementGroup
strategy.PlacementStrategy
public CreatePlacementGroupRequest withStrategy(String strategy)
PlacementGroup
strategy.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: cluster
strategy
- The PlacementGroup
strategy.PlacementStrategy
public void setStrategy(PlacementStrategy strategy)
PlacementGroup
strategy.
Constraints:
Allowed Values: cluster
strategy
- The PlacementGroup
strategy.PlacementStrategy
public CreatePlacementGroupRequest withStrategy(PlacementStrategy strategy)
PlacementGroup
strategy.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: cluster
strategy
- The PlacementGroup
strategy.PlacementStrategy
public Request<CreatePlacementGroupRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CreatePlacementGroupRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.