Interface FailedCapacityReservationFleetCancellationResult.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<FailedCapacityReservationFleetCancellationResult.Builder,,FailedCapacityReservationFleetCancellationResult> SdkBuilder<FailedCapacityReservationFleetCancellationResult.Builder,,FailedCapacityReservationFleetCancellationResult> SdkPojo
- Enclosing class:
FailedCapacityReservationFleetCancellationResult
public static interface FailedCapacityReservationFleetCancellationResult.Builder
extends SdkPojo, CopyableBuilder<FailedCapacityReservationFleetCancellationResult.Builder,FailedCapacityReservationFleetCancellationResult>
-
Method Summary
Modifier and TypeMethodDescriptioncancelCapacityReservationFleetError(Consumer<CancelCapacityReservationFleetError.Builder> cancelCapacityReservationFleetError) Information about the Capacity Reservation Fleet cancellation error.cancelCapacityReservationFleetError(CancelCapacityReservationFleetError cancelCapacityReservationFleetError) Information about the Capacity Reservation Fleet cancellation error.capacityReservationFleetId(String capacityReservationFleetId) The ID of the Capacity Reservation Fleet that could not be cancelled.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, sdkFields
-
Method Details
-
capacityReservationFleetId
FailedCapacityReservationFleetCancellationResult.Builder capacityReservationFleetId(String capacityReservationFleetId) The ID of the Capacity Reservation Fleet that could not be cancelled.
- Parameters:
capacityReservationFleetId- The ID of the Capacity Reservation Fleet that could not be cancelled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cancelCapacityReservationFleetError
FailedCapacityReservationFleetCancellationResult.Builder cancelCapacityReservationFleetError(CancelCapacityReservationFleetError cancelCapacityReservationFleetError) Information about the Capacity Reservation Fleet cancellation error.
- Parameters:
cancelCapacityReservationFleetError- Information about the Capacity Reservation Fleet cancellation error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cancelCapacityReservationFleetError
default FailedCapacityReservationFleetCancellationResult.Builder cancelCapacityReservationFleetError(Consumer<CancelCapacityReservationFleetError.Builder> cancelCapacityReservationFleetError) Information about the Capacity Reservation Fleet cancellation error.
This is a convenience method that creates an instance of theCancelCapacityReservationFleetError.Builderavoiding the need to create one manually viaCancelCapacityReservationFleetError.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocancelCapacityReservationFleetError(CancelCapacityReservationFleetError).- Parameters:
cancelCapacityReservationFleetError- a consumer that will call methods onCancelCapacityReservationFleetError.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-