Interface Reservation.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Reservation.Builder,
,Reservation> SdkBuilder<Reservation.Builder,
,Reservation> SdkPojo
- Enclosing class:
Reservation
-
Method Summary
Modifier and TypeMethodDescriptionThe number of Redshift Processing Units (RPUs) to reserve.The end date for the serverless reservation.default Reservation.Builder
offering
(Consumer<ReservationOffering.Builder> offering) The type of offering for the reservation.offering
(ReservationOffering offering) The type of offering for the reservation.reservationArn
(String reservationArn) The Amazon Resource Name (ARN) that uniquely identifies the serverless reservation.reservationId
(String reservationId) The identifier that uniquely identifies the serverless reservation.The start date for the serverless reservation.The status of the reservation.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
capacity
The number of Redshift Processing Units (RPUs) to reserve.
- Parameters:
capacity
- The number of Redshift Processing Units (RPUs) to reserve.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endDate
The end date for the serverless reservation. This date is one year after the start date that you specify.
- Parameters:
endDate
- The end date for the serverless reservation. This date is one year after the start date that you specify.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
offering
The type of offering for the reservation. The offering class determines the payment schedule for the reservation.
- Parameters:
offering
- The type of offering for the reservation. The offering class determines the payment schedule for the reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
offering
The type of offering for the reservation. The offering class determines the payment schedule for the reservation.
This is a convenience method that creates an instance of theReservationOffering.Builder
avoiding the need to create one manually viaReservationOffering.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tooffering(ReservationOffering)
.- Parameters:
offering
- a consumer that will call methods onReservationOffering.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
reservationArn
The Amazon Resource Name (ARN) that uniquely identifies the serverless reservation.
- Parameters:
reservationArn
- The Amazon Resource Name (ARN) that uniquely identifies the serverless reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reservationId
The identifier that uniquely identifies the serverless reservation.
- Parameters:
reservationId
- The identifier that uniquely identifies the serverless reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startDate
The start date for the serverless reservation. This is the date you specified for the reservation to start when you created the reservation.
- Parameters:
startDate
- The start date for the serverless reservation. This is the date you specified for the reservation to start when you created the reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The status of the reservation. Possible values include the following:
-
payment-pending
-
active
-
payment-failed
-
retired
- Parameters:
status
- The status of the reservation. Possible values include the following:-
payment-pending
-
active
-
payment-failed
-
retired
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-