public static interface CreatePlacementGroupRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<CreatePlacementGroupRequest.Builder,CreatePlacementGroupRequest>
build
overrideConfiguration
equalsBySdkFields, sdkFields
copy
applyMutation, build
CreatePlacementGroupRequest.Builder groupName(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
CreatePlacementGroupRequest.Builder strategy(String strategy)
The placement strategy.
strategy
- The placement strategy.PlacementStrategy
,
PlacementStrategy
CreatePlacementGroupRequest.Builder strategy(PlacementStrategy strategy)
The placement strategy.
strategy
- The placement strategy.PlacementStrategy
,
PlacementStrategy
CreatePlacementGroupRequest.Builder partitionCount(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
.CreatePlacementGroupRequest.Builder tagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the new placement group.
tagSpecifications
- The tags to apply to the new placement group.CreatePlacementGroupRequest.Builder tagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the new placement group.
tagSpecifications
- The tags to apply to the new placement group.CreatePlacementGroupRequest.Builder tagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications)
The tags to apply to the new placement group.
This is a convenience method that creates an instance of theTagSpecification.Builder
avoiding the need to create one
manually via TagSpecification.builder()
.
When the Consumer
completes,
SdkBuilder.build()
is called immediately and
its result is passed to #tagSpecifications(List
.
tagSpecifications
- a consumer that will call methods on
TagSpecification.Builder
#tagSpecifications(java.util.Collection)
CreatePlacementGroupRequest.Builder spreadLevel(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.
SpreadLevel
,
SpreadLevel
CreatePlacementGroupRequest.Builder spreadLevel(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.
SpreadLevel
,
SpreadLevel
CreatePlacementGroupRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration
in interface AwsRequest.Builder
CreatePlacementGroupRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration
in interface AwsRequest.Builder
Copyright © 2023. All rights reserved.