@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreatePlacementGroupRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreatePlacementGroupRequest>
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.
|
Integer |
getPartitionCount()
The number of partitions.
|
String |
getSpreadLevel()
Determines how placement groups spread instances.
|
String |
getStrategy()
The placement strategy.
|
List<TagSpecification> |
getTagSpecifications()
The tags to apply to the new placement group.
|
int |
hashCode() |
void |
setGroupName(String groupName)
A name for the placement group.
|
void |
setPartitionCount(Integer partitionCount)
The number of partitions.
|
void |
setSpreadLevel(SpreadLevel spreadLevel)
Determines how placement groups spread instances.
|
void |
setSpreadLevel(String spreadLevel)
Determines how placement groups spread instances.
|
void |
setStrategy(PlacementStrategy strategy)
The placement strategy.
|
void |
setStrategy(String strategy)
The placement strategy.
|
void |
setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the new placement group.
|
String |
toString()
Returns a string representation of this object.
|
CreatePlacementGroupRequest |
withGroupName(String groupName)
A name for the placement group.
|
CreatePlacementGroupRequest |
withPartitionCount(Integer partitionCount)
The number of partitions.
|
CreatePlacementGroupRequest |
withSpreadLevel(SpreadLevel spreadLevel)
Determines how placement groups spread instances.
|
CreatePlacementGroupRequest |
withSpreadLevel(String spreadLevel)
Determines how placement groups spread instances.
|
CreatePlacementGroupRequest |
withStrategy(PlacementStrategy strategy)
The placement strategy.
|
CreatePlacementGroupRequest |
withStrategy(String strategy)
The placement strategy.
|
CreatePlacementGroupRequest |
withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the new placement group.
|
CreatePlacementGroupRequest |
withTagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the new placement group.
|
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, withSdkRequestTimeoutpublic CreatePlacementGroupRequest()
public CreatePlacementGroupRequest(String groupName, String strategy)
groupName - A name for the placement group. Must be unique within the scope of your account for the Region.
Constraints: Up to 255 ASCII characters
strategy - The placement strategy.public CreatePlacementGroupRequest(String groupName, PlacementStrategy strategy)
groupName - A name for the placement group. Must be unique within the scope of your account for the Region.
Constraints: Up to 255 ASCII characters
strategy - The placement strategy.public void setGroupName(String groupName)
A name for the placement group. Must be unique within the scope of your account for the Region.
Constraints: Up to 255 ASCII characters
groupName - A name for the placement group. Must be unique within the scope of your account for the Region.
Constraints: Up to 255 ASCII characters
public String getGroupName()
A name for the placement group. Must be unique within the scope of your account for the Region.
Constraints: Up to 255 ASCII characters
Constraints: Up to 255 ASCII characters
public CreatePlacementGroupRequest withGroupName(String groupName)
A name for the placement group. Must be unique within the scope of your account for the Region.
Constraints: Up to 255 ASCII characters
groupName - A name for the placement group. Must be unique within the scope of your account for the Region.
Constraints: Up to 255 ASCII characters
public void setStrategy(String strategy)
The placement strategy.
strategy - The placement strategy.PlacementStrategypublic String getStrategy()
The placement strategy.
PlacementStrategypublic CreatePlacementGroupRequest withStrategy(String strategy)
The placement strategy.
strategy - The placement strategy.PlacementStrategypublic void setStrategy(PlacementStrategy strategy)
The placement strategy.
strategy - The placement strategy.PlacementStrategypublic CreatePlacementGroupRequest withStrategy(PlacementStrategy strategy)
The placement strategy.
strategy - The placement strategy.PlacementStrategypublic void setPartitionCount(Integer partitionCount)
The number of partitions. Valid only when Strategy is set to partition.
partitionCount - The number of partitions. Valid only when Strategy is set to partition.public Integer getPartitionCount()
The number of partitions. Valid only when Strategy is set to partition.
partition.public CreatePlacementGroupRequest withPartitionCount(Integer partitionCount)
The number of partitions. Valid only when Strategy is set to partition.
partitionCount - The number of partitions. Valid only when Strategy is set to partition.public List<TagSpecification> getTagSpecifications()
The tags to apply to the new placement group.
public void setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the new placement group.
tagSpecifications - The tags to apply to the new placement group.public CreatePlacementGroupRequest withTagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the new placement group.
NOTE: This method appends the values to the existing list (if any). Use
setTagSpecifications(java.util.Collection) or withTagSpecifications(java.util.Collection) if
you want to override the existing values.
tagSpecifications - The tags to apply to the new placement group.public CreatePlacementGroupRequest withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the new placement group.
tagSpecifications - The tags to apply to the new placement group.public void setSpreadLevel(String spreadLevel)
Determines how placement groups spread instances.
Host – You can use host only with Outpost placement groups.
Rack – No usage restrictions.
spreadLevel - Determines how placement groups spread instances.
Host – You can use host only with Outpost placement groups.
Rack – No usage restrictions.
SpreadLevelpublic String getSpreadLevel()
Determines how placement groups spread instances.
Host – You can use host only with Outpost placement groups.
Rack – No usage restrictions.
Host – You can use host only with Outpost placement groups.
Rack – No usage restrictions.
SpreadLevelpublic CreatePlacementGroupRequest withSpreadLevel(String spreadLevel)
Determines how placement groups spread instances.
Host – You can use host only with Outpost placement groups.
Rack – No usage restrictions.
spreadLevel - Determines how placement groups spread instances.
Host – You can use host only with Outpost placement groups.
Rack – No usage restrictions.
SpreadLevelpublic void setSpreadLevel(SpreadLevel spreadLevel)
Determines how placement groups spread instances.
Host – You can use host only with Outpost placement groups.
Rack – No usage restrictions.
spreadLevel - Determines how placement groups spread instances.
Host – You can use host only with Outpost placement groups.
Rack – No usage restrictions.
SpreadLevelpublic CreatePlacementGroupRequest withSpreadLevel(SpreadLevel spreadLevel)
Determines how placement groups spread instances.
Host – You can use host only with Outpost placement groups.
Rack – No usage restrictions.
spreadLevel - Determines how placement groups spread instances.
Host – You can use host only with Outpost placement groups.
Rack – No usage restrictions.
SpreadLevelpublic Request<CreatePlacementGroupRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<CreatePlacementGroupRequest>public String toString()
toString in class ObjectObject.toString()public CreatePlacementGroupRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()