@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreatePlacementGroupRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreatePlacementGroupRequest>
Contains the parameters for CreatePlacementGroup.
NOOP
Constructor and Description |
---|
CreatePlacementGroupRequest()
Default constructor for 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 object for all fields except the handler context.
|
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.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
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.public void setGroupName(String groupName)
A name for the placement group.
Constraints: Up to 255 ASCII characters
groupName
- A name for the placement group.
Constraints: Up to 255 ASCII characters
public String getGroupName()
A name for the placement group.
Constraints: Up to 255 ASCII characters
Constraints: Up to 255 ASCII characters
public CreatePlacementGroupRequest withGroupName(String groupName)
A name for the placement group.
Constraints: Up to 255 ASCII characters
groupName
- A name for the placement group.
Constraints: Up to 255 ASCII characters
public void setStrategy(String strategy)
The placement strategy.
strategy
- The placement strategy.PlacementStrategy
public String getStrategy()
The placement strategy.
PlacementStrategy
public CreatePlacementGroupRequest withStrategy(String strategy)
The placement strategy.
strategy
- The placement strategy.PlacementStrategy
public void setStrategy(PlacementStrategy strategy)
The placement strategy.
strategy
- The placement strategy.PlacementStrategy
public CreatePlacementGroupRequest withStrategy(PlacementStrategy strategy)
The placement strategy.
strategy
- The placement strategy.PlacementStrategy
public Request<CreatePlacementGroupRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CreatePlacementGroupRequest>
public String toString()
toString
in class Object
Object.toString()
public CreatePlacementGroupRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.