Interface PurchaseOfferingResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<PurchaseOfferingResponse.Builder,,PurchaseOfferingResponse> MediaLiveResponse.Builder,SdkBuilder<PurchaseOfferingResponse.Builder,,PurchaseOfferingResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
PurchaseOfferingResponse
@Mutable
@NotThreadSafe
public static interface PurchaseOfferingResponse.Builder
extends MediaLiveResponse.Builder, SdkPojo, CopyableBuilder<PurchaseOfferingResponse.Builder,PurchaseOfferingResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault PurchaseOfferingResponse.Builderreservation(Consumer<Reservation.Builder> reservation) Sets the value of the Reservation property for this object.reservation(Reservation reservation) Sets the value of the Reservation property for this object.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.medialive.model.MediaLiveResponse.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
-
reservation
Sets the value of the Reservation property for this object.- Parameters:
reservation- The new value for the Reservation property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reservation
Sets the value of the Reservation property for this object. This is a convenience method that creates an instance of theReservation.Builderavoiding the need to create one manually viaReservation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toreservation(Reservation).- Parameters:
reservation- a consumer that will call methods onReservation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-