Interface CreatePlacementGroupRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreatePlacementGroupRequest.Builder,CreatePlacementGroupRequest>
,Ec2Request.Builder
,SdkBuilder<CreatePlacementGroupRequest.Builder,CreatePlacementGroupRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- CreatePlacementGroupRequest
public static interface CreatePlacementGroupRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<CreatePlacementGroupRequest.Builder,CreatePlacementGroupRequest>
-
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Request.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
dryRun
CreatePlacementGroupRequest.Builder dryRun(Boolean dryRun)
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation
. Otherwise, it isUnauthorizedOperation
.- Parameters:
dryRun
- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupName
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
- Parameters:
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
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
strategy
CreatePlacementGroupRequest.Builder strategy(String strategy)
The placement strategy.
- Parameters:
strategy
- The placement strategy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PlacementStrategy
,PlacementStrategy
-
strategy
CreatePlacementGroupRequest.Builder strategy(PlacementStrategy strategy)
The placement strategy.
- Parameters:
strategy
- The placement strategy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PlacementStrategy
,PlacementStrategy
-
partitionCount
CreatePlacementGroupRequest.Builder partitionCount(Integer partitionCount)
The number of partitions. Valid only when Strategy is set to
partition
.- Parameters:
partitionCount
- The number of partitions. Valid only when Strategy is set topartition
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
CreatePlacementGroupRequest.Builder tagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the new placement group.
- Parameters:
tagSpecifications
- The tags to apply to the new placement group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
CreatePlacementGroupRequest.Builder tagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the new placement group.
- Parameters:
tagSpecifications
- The tags to apply to the new placement group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
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 viaTagSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#tagSpecifications(List
.) - Parameters:
tagSpecifications
- a consumer that will call methods onTagSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tagSpecifications(java.util.Collection
)
-
spreadLevel
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.
- Parameters:
spreadLevel
- Determines how placement groups spread instances.-
Host – You can use
host
only with Outpost placement groups. -
Rack – No usage restrictions.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SpreadLevel
,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.
- Parameters:
spreadLevel
- Determines how placement groups spread instances.-
Host – You can use
host
only with Outpost placement groups. -
Rack – No usage restrictions.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SpreadLevel
,SpreadLevel
-
-
overrideConfiguration
CreatePlacementGroupRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
CreatePlacementGroupRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-