Interface PlacementGroup.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<PlacementGroup.Builder,
,PlacementGroup> SdkBuilder<PlacementGroup.Builder,
,PlacementGroup> SdkPojo
- Enclosing class:
PlacementGroup
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the placement group.The ID of the placement group.The name of the placement group.partitionCount
(Integer partitionCount) The number of partitions.spreadLevel
(String spreadLevel) The spread level for the placement group.spreadLevel
(SpreadLevel spreadLevel) The spread level for the placement group.The state of the placement group.state
(PlacementGroupState state) The state of the placement group.The placement strategy.strategy
(PlacementStrategy strategy) The placement strategy.tags
(Collection<Tag> tags) Any tags applied to the placement group.tags
(Consumer<Tag.Builder>... tags) Any tags applied to the placement group.Any tags applied to the placement group.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
groupName
The name of the placement group.
- Parameters:
groupName
- The name of the placement group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
The state of the placement group.
- Parameters:
state
- The state of the placement group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The state of the placement group.
- Parameters:
state
- The state of the placement group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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:
-
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:
-
partitionCount
The number of partitions. Valid only if strategy is set to
partition
.- Parameters:
partitionCount
- The number of partitions. Valid only if strategy is set topartition
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupId
The ID of the placement group.
- Parameters:
groupId
- The ID of the placement group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Any tags applied to the placement group.
- Parameters:
tags
- Any tags applied to the placement group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Any tags applied to the placement group.
- Parameters:
tags
- Any tags applied to the placement group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Any tags applied to the placement group.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
groupArn
The Amazon Resource Name (ARN) of the placement group.
- Parameters:
groupArn
- The Amazon Resource Name (ARN) of the placement group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spreadLevel
The spread level for the placement group. Only Outpost placement groups can be spread across hosts.
- Parameters:
spreadLevel
- The spread level for the placement group. Only Outpost placement groups can be spread across hosts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
spreadLevel
The spread level for the placement group. Only Outpost placement groups can be spread across hosts.
- Parameters:
spreadLevel
- The spread level for the placement group. Only Outpost placement groups can be spread across hosts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-