public class CreatePlacementGroupRequest extends AmazonWebServiceRequest implements java.io.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(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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
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.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
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.