Interface CancelCapacityReservationFleetsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CancelCapacityReservationFleetsResponse.Builder,,CancelCapacityReservationFleetsResponse> Ec2Response.Builder,SdkBuilder<CancelCapacityReservationFleetsResponse.Builder,,CancelCapacityReservationFleetsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
CancelCapacityReservationFleetsResponse
-
Method Summary
Modifier and TypeMethodDescriptionfailedFleetCancellations(Collection<FailedCapacityReservationFleetCancellationResult> failedFleetCancellations) Information about the Capacity Reservation Fleets that could not be cancelled.failedFleetCancellations(Consumer<FailedCapacityReservationFleetCancellationResult.Builder>... failedFleetCancellations) Information about the Capacity Reservation Fleets that could not be cancelled.failedFleetCancellations(FailedCapacityReservationFleetCancellationResult... failedFleetCancellations) Information about the Capacity Reservation Fleets that could not be cancelled.successfulFleetCancellations(Collection<CapacityReservationFleetCancellationState> successfulFleetCancellations) Information about the Capacity Reservation Fleets that were successfully cancelled.successfulFleetCancellations(Consumer<CapacityReservationFleetCancellationState.Builder>... successfulFleetCancellations) Information about the Capacity Reservation Fleets that were successfully cancelled.successfulFleetCancellations(CapacityReservationFleetCancellationState... successfulFleetCancellations) Information about the Capacity Reservation Fleets that were successfully cancelled.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
successfulFleetCancellations
CancelCapacityReservationFleetsResponse.Builder successfulFleetCancellations(Collection<CapacityReservationFleetCancellationState> successfulFleetCancellations) Information about the Capacity Reservation Fleets that were successfully cancelled.
- Parameters:
successfulFleetCancellations- Information about the Capacity Reservation Fleets that were successfully cancelled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
successfulFleetCancellations
CancelCapacityReservationFleetsResponse.Builder successfulFleetCancellations(CapacityReservationFleetCancellationState... successfulFleetCancellations) Information about the Capacity Reservation Fleets that were successfully cancelled.
- Parameters:
successfulFleetCancellations- Information about the Capacity Reservation Fleets that were successfully cancelled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
successfulFleetCancellations
CancelCapacityReservationFleetsResponse.Builder successfulFleetCancellations(Consumer<CapacityReservationFleetCancellationState.Builder>... successfulFleetCancellations) Information about the Capacity Reservation Fleets that were successfully cancelled.
This is a convenience method that creates an instance of theCapacityReservationFleetCancellationState.Builderavoiding the need to create one manually viaCapacityReservationFleetCancellationState.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosuccessfulFleetCancellations(List<CapacityReservationFleetCancellationState>).- Parameters:
successfulFleetCancellations- a consumer that will call methods onCapacityReservationFleetCancellationState.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
failedFleetCancellations
CancelCapacityReservationFleetsResponse.Builder failedFleetCancellations(Collection<FailedCapacityReservationFleetCancellationResult> failedFleetCancellations) Information about the Capacity Reservation Fleets that could not be cancelled.
- Parameters:
failedFleetCancellations- Information about the Capacity Reservation Fleets that could not be cancelled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failedFleetCancellations
CancelCapacityReservationFleetsResponse.Builder failedFleetCancellations(FailedCapacityReservationFleetCancellationResult... failedFleetCancellations) Information about the Capacity Reservation Fleets that could not be cancelled.
- Parameters:
failedFleetCancellations- Information about the Capacity Reservation Fleets that could not be cancelled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failedFleetCancellations
CancelCapacityReservationFleetsResponse.Builder failedFleetCancellations(Consumer<FailedCapacityReservationFleetCancellationResult.Builder>... failedFleetCancellations) Information about the Capacity Reservation Fleets that could not be cancelled.
This is a convenience method that creates an instance of theFailedCapacityReservationFleetCancellationResult.Builderavoiding the need to create one manually viaFailedCapacityReservationFleetCancellationResult.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofailedFleetCancellations(List<FailedCapacityReservationFleetCancellationResult>).- Parameters:
failedFleetCancellations- a consumer that will call methods onFailedCapacityReservationFleetCancellationResult.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-