Interface ModificationTerms.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ModificationTerms.Builder,,ModificationTerms> SdkBuilder<ModificationTerms.Builder,,ModificationTerms> SdkPojo
- Enclosing class:
ModificationTerms
@Mutable
@NotThreadSafe
public static interface ModificationTerms.Builder
extends SdkPojo, CopyableBuilder<ModificationTerms.Builder,ModificationTerms>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ModificationTerms.BuilderreservationUpdate(Consumer<ModificationReservationUpdate.Builder> reservationUpdate) The changes that will be applied to the Capacity Reservation if you accept the modification terms.reservationUpdate(ModificationReservationUpdate reservationUpdate) The changes that will be applied to the Capacity Reservation if you accept the modification terms.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
reservationUpdate
The changes that will be applied to the Capacity Reservation if you accept the modification terms.
- Parameters:
reservationUpdate- The changes that will be applied to the Capacity Reservation if you accept the modification terms.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reservationUpdate
default ModificationTerms.Builder reservationUpdate(Consumer<ModificationReservationUpdate.Builder> reservationUpdate) The changes that will be applied to the Capacity Reservation if you accept the modification terms.
This is a convenience method that creates an instance of theModificationReservationUpdate.Builderavoiding the need to create one manually viaModificationReservationUpdate.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toreservationUpdate(ModificationReservationUpdate).- Parameters:
reservationUpdate- a consumer that will call methods onModificationReservationUpdate.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-