Interface CapacityAssignmentConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CapacityAssignmentConfiguration.Builder,
,CapacityAssignmentConfiguration> SdkBuilder<CapacityAssignmentConfiguration.Builder,
,CapacityAssignmentConfiguration> SdkPojo
- Enclosing class:
CapacityAssignmentConfiguration
@Mutable
@NotThreadSafe
public static interface CapacityAssignmentConfiguration.Builder
extends SdkPojo, CopyableBuilder<CapacityAssignmentConfiguration.Builder,CapacityAssignmentConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptioncapacityAssignments
(Collection<CapacityAssignment> capacityAssignments) The list of assignments that make up the capacity assignment configuration.capacityAssignments
(Consumer<CapacityAssignment.Builder>... capacityAssignments) The list of assignments that make up the capacity assignment configuration.capacityAssignments
(CapacityAssignment... capacityAssignments) The list of assignments that make up the capacity assignment configuration.capacityReservationName
(String capacityReservationName) The name of the reservation that the capacity assignment configuration is for.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
-
capacityReservationName
The name of the reservation that the capacity assignment configuration is for.
- Parameters:
capacityReservationName
- The name of the reservation that the capacity assignment configuration is for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityAssignments
CapacityAssignmentConfiguration.Builder capacityAssignments(Collection<CapacityAssignment> capacityAssignments) The list of assignments that make up the capacity assignment configuration.
- Parameters:
capacityAssignments
- The list of assignments that make up the capacity assignment configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityAssignments
CapacityAssignmentConfiguration.Builder capacityAssignments(CapacityAssignment... capacityAssignments) The list of assignments that make up the capacity assignment configuration.
- Parameters:
capacityAssignments
- The list of assignments that make up the capacity assignment configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityAssignments
CapacityAssignmentConfiguration.Builder capacityAssignments(Consumer<CapacityAssignment.Builder>... capacityAssignments) The list of assignments that make up the capacity assignment configuration.
This is a convenience method that creates an instance of theCapacityAssignment.Builder
avoiding the need to create one manually viaCapacityAssignment.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocapacityAssignments(List<CapacityAssignment>)
.- Parameters:
capacityAssignments
- a consumer that will call methods onCapacityAssignment.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-