Interface CreateDbCapacityReservationResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CreateDbCapacityReservationResponse.Builder,,CreateDbCapacityReservationResponse> RdsResponse.Builder,SdkBuilder<CreateDbCapacityReservationResponse.Builder,,CreateDbCapacityReservationResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
CreateDbCapacityReservationResponse
@Mutable
@NotThreadSafe
public static interface CreateDbCapacityReservationResponse.Builder
extends RdsResponse.Builder, SdkPojo, CopyableBuilder<CreateDbCapacityReservationResponse.Builder,CreateDbCapacityReservationResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondbCapacityReservation(Consumer<DBCapacityReservation.Builder> dbCapacityReservation) Contains the details of the newly created DB capacity reservation.dbCapacityReservation(DBCapacityReservation dbCapacityReservation) Contains the details of the newly created DB capacity reservation.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.rds.model.RdsResponse.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
-
dbCapacityReservation
CreateDbCapacityReservationResponse.Builder dbCapacityReservation(DBCapacityReservation dbCapacityReservation) Contains the details of the newly created DB capacity reservation.
- Parameters:
dbCapacityReservation- Contains the details of the newly created DB capacity reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dbCapacityReservation
default CreateDbCapacityReservationResponse.Builder dbCapacityReservation(Consumer<DBCapacityReservation.Builder> dbCapacityReservation) Contains the details of the newly created DB capacity reservation.
This is a convenience method that creates an instance of theDBCapacityReservation.Builderavoiding the need to create one manually viaDBCapacityReservation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todbCapacityReservation(DBCapacityReservation).- Parameters:
dbCapacityReservation- a consumer that will call methods onDBCapacityReservation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-