Interface CreateCapacityReservationCancellationQuoteResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CreateCapacityReservationCancellationQuoteResponse.Builder,,CreateCapacityReservationCancellationQuoteResponse> Ec2Response.Builder,SdkBuilder<CreateCapacityReservationCancellationQuoteResponse.Builder,,CreateCapacityReservationCancellationQuoteResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
CreateCapacityReservationCancellationQuoteResponse
@Mutable
@NotThreadSafe
public static interface CreateCapacityReservationCancellationQuoteResponse.Builder
extends Ec2Response.Builder, SdkPojo, CopyableBuilder<CreateCapacityReservationCancellationQuoteResponse.Builder,CreateCapacityReservationCancellationQuoteResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncapacityReservationCancellationQuote(Consumer<CapacityReservationCancellationQuote.Builder> capacityReservationCancellationQuote) Information about the Capacity Reservation cancellation quote.capacityReservationCancellationQuote(CapacityReservationCancellationQuote capacityReservationCancellationQuote) Information about the Capacity Reservation cancellation quote.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, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
capacityReservationCancellationQuote
CreateCapacityReservationCancellationQuoteResponse.Builder capacityReservationCancellationQuote(CapacityReservationCancellationQuote capacityReservationCancellationQuote) Information about the Capacity Reservation cancellation quote.
- Parameters:
capacityReservationCancellationQuote- Information about the Capacity Reservation cancellation quote.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityReservationCancellationQuote
default CreateCapacityReservationCancellationQuoteResponse.Builder capacityReservationCancellationQuote(Consumer<CapacityReservationCancellationQuote.Builder> capacityReservationCancellationQuote) Information about the Capacity Reservation cancellation quote.
This is a convenience method that creates an instance of theCapacityReservationCancellationQuote.Builderavoiding the need to create one manually viaCapacityReservationCancellationQuote.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocapacityReservationCancellationQuote(CapacityReservationCancellationQuote).- Parameters:
capacityReservationCancellationQuote- a consumer that will call methods onCapacityReservationCancellationQuote.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-