Interface ReservedDBInstance.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ReservedDBInstance.Builder,
,ReservedDBInstance> SdkBuilder<ReservedDBInstance.Builder,
,ReservedDBInstance> SdkPojo
- Enclosing class:
ReservedDBInstance
-
Method Summary
Modifier and TypeMethodDescriptioncurrencyCode
(String currencyCode) The currency code for the reserved DB instance.dbInstanceClass
(String dbInstanceClass) The DB instance class for the reserved DB instance.dbInstanceCount
(Integer dbInstanceCount) The number of reserved DB instances.The duration of the reservation in seconds.fixedPrice
(Double fixedPrice) The fixed price charged for this reserved DB instance.The unique identifier for the lease associated with the reserved DB instance.Indicates whether the reservation applies to Multi-AZ deployments.offeringType
(String offeringType) The offering type of this reserved DB instance.productDescription
(String productDescription) The description of the reserved DB instance.recurringCharges
(Collection<RecurringCharge> recurringCharges) The recurring price charged to run this reserved DB instance.recurringCharges
(Consumer<RecurringCharge.Builder>... recurringCharges) The recurring price charged to run this reserved DB instance.recurringCharges
(RecurringCharge... recurringCharges) The recurring price charged to run this reserved DB instance.reservedDBInstanceArn
(String reservedDBInstanceArn) The Amazon Resource Name (ARN) for the reserved DB instance.reservedDBInstanceId
(String reservedDBInstanceId) The unique identifier for the reservation.reservedDBInstancesOfferingId
(String reservedDBInstancesOfferingId) The offering identifier.The time the reservation started.The state of the reserved DB instance.usagePrice
(Double usagePrice) The hourly price charged for this reserved DB instance.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, sdkFields
-
Method Details
-
reservedDBInstanceId
The unique identifier for the reservation.
- Parameters:
reservedDBInstanceId
- The unique identifier for the reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reservedDBInstancesOfferingId
The offering identifier.
- Parameters:
reservedDBInstancesOfferingId
- The offering identifier.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dbInstanceClass
The DB instance class for the reserved DB instance.
- Parameters:
dbInstanceClass
- The DB instance class for the reserved DB instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startTime
The time the reservation started.
- Parameters:
startTime
- The time the reservation started.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
duration
The duration of the reservation in seconds.
- Parameters:
duration
- The duration of the reservation in seconds.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fixedPrice
The fixed price charged for this reserved DB instance.
- Parameters:
fixedPrice
- The fixed price charged for this reserved DB instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usagePrice
The hourly price charged for this reserved DB instance.
- Parameters:
usagePrice
- The hourly price charged for this reserved DB instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currencyCode
The currency code for the reserved DB instance.
- Parameters:
currencyCode
- The currency code for the reserved DB instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dbInstanceCount
The number of reserved DB instances.
- Parameters:
dbInstanceCount
- The number of reserved DB instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
productDescription
The description of the reserved DB instance.
- Parameters:
productDescription
- The description of the reserved DB instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
offeringType
The offering type of this reserved DB instance.
- Parameters:
offeringType
- The offering type of this reserved DB instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
multiAZ
Indicates whether the reservation applies to Multi-AZ deployments.
- Parameters:
multiAZ
- Indicates whether the reservation applies to Multi-AZ deployments.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
The state of the reserved DB instance.
- Parameters:
state
- The state of the reserved DB instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recurringCharges
The recurring price charged to run this reserved DB instance.
- Parameters:
recurringCharges
- The recurring price charged to run this reserved DB instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recurringCharges
The recurring price charged to run this reserved DB instance.
- Parameters:
recurringCharges
- The recurring price charged to run this reserved DB instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recurringCharges
The recurring price charged to run this reserved DB instance.
This is a convenience method that creates an instance of theRecurringCharge.Builder
avoiding the need to create one manually viaRecurringCharge.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torecurringCharges(List<RecurringCharge>)
.- Parameters:
recurringCharges
- a consumer that will call methods onRecurringCharge.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
reservedDBInstanceArn
The Amazon Resource Name (ARN) for the reserved DB instance.
- Parameters:
reservedDBInstanceArn
- The Amazon Resource Name (ARN) for the reserved DB instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
leaseId
The unique identifier for the lease associated with the reserved DB instance.
Amazon Web Services Support might request the lease ID for an issue related to a reserved DB instance.
- Parameters:
leaseId
- The unique identifier for the lease associated with the reserved DB instance.Amazon Web Services Support might request the lease ID for an issue related to a reserved DB instance.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-