Interface CancelCapacityReservationFleetsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CancelCapacityReservationFleetsResponse.Builder,CancelCapacityReservationFleetsResponse>,Ec2Response.Builder,SdkBuilder<CancelCapacityReservationFleetsResponse.Builder,CancelCapacityReservationFleetsResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- CancelCapacityReservationFleetsResponse
public static interface CancelCapacityReservationFleetsResponse.Builder extends Ec2Response.Builder, SdkPojo, CopyableBuilder<CancelCapacityReservationFleetsResponse.Builder,CancelCapacityReservationFleetsResponse>
-
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
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 to#successfulFleetCancellations(List.) - 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:
#successfulFleetCancellations(java.util.Collection)
-
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 to#failedFleetCancellations(List.) - 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:
#failedFleetCancellations(java.util.Collection)
-
-