Interface CapacityAssignmentConfiguration.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<CapacityAssignmentConfiguration.Builder,CapacityAssignmentConfiguration>,SdkBuilder<CapacityAssignmentConfiguration.Builder,CapacityAssignmentConfiguration>,SdkPojo
- Enclosing class:
- CapacityAssignmentConfiguration
public static interface CapacityAssignmentConfiguration.Builder extends SdkPojo, CopyableBuilder<CapacityAssignmentConfiguration.Builder,CapacityAssignmentConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CapacityAssignmentConfiguration.BuildercapacityAssignments(Collection<CapacityAssignment> capacityAssignments)The list of assignments that make up the capacity assignment configuration.CapacityAssignmentConfiguration.BuildercapacityAssignments(Consumer<CapacityAssignment.Builder>... capacityAssignments)The list of assignments that make up the capacity assignment configuration.CapacityAssignmentConfiguration.BuildercapacityAssignments(CapacityAssignment... capacityAssignments)The list of assignments that make up the capacity assignment configuration.CapacityAssignmentConfiguration.BuildercapacityReservationName(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 Detail
-
capacityReservationName
CapacityAssignmentConfiguration.Builder capacityReservationName(String 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.Builderavoiding the need to create one manually viaCapacityAssignment.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#capacityAssignments(List.) - 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:
#capacityAssignments(java.util.Collection)
-
-