Interface ReservedDBInstance.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ReservedDBInstance.Builder,ReservedDBInstance>,SdkBuilder<ReservedDBInstance.Builder,ReservedDBInstance>,SdkPojo
- Enclosing class:
- ReservedDBInstance
public static interface ReservedDBInstance.Builder extends SdkPojo, CopyableBuilder<ReservedDBInstance.Builder,ReservedDBInstance>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ReservedDBInstance.BuildercurrencyCode(String currencyCode)The currency code for the reserved DB instance.ReservedDBInstance.BuilderdbInstanceClass(String dbInstanceClass)The DB instance class for the reserved DB instance.ReservedDBInstance.BuilderdbInstanceCount(Integer dbInstanceCount)The number of reserved DB instances.ReservedDBInstance.Builderduration(Integer duration)The duration of the reservation in seconds.ReservedDBInstance.BuilderfixedPrice(Double fixedPrice)The fixed price charged for this reserved DB instance.ReservedDBInstance.BuilderleaseId(String leaseId)The unique identifier for the lease associated with the reserved DB instance.ReservedDBInstance.BuildermultiAZ(Boolean multiAZ)Indicates whether the reservation applies to Multi-AZ deployments.ReservedDBInstance.BuilderofferingType(String offeringType)The offering type of this reserved DB instance.ReservedDBInstance.BuilderproductDescription(String productDescription)The description of the reserved DB instance.ReservedDBInstance.BuilderrecurringCharges(Collection<RecurringCharge> recurringCharges)The recurring price charged to run this reserved DB instance.ReservedDBInstance.BuilderrecurringCharges(Consumer<RecurringCharge.Builder>... recurringCharges)The recurring price charged to run this reserved DB instance.ReservedDBInstance.BuilderrecurringCharges(RecurringCharge... recurringCharges)The recurring price charged to run this reserved DB instance.ReservedDBInstance.BuilderreservedDBInstanceArn(String reservedDBInstanceArn)The Amazon Resource Name (ARN) for the reserved DB instance.ReservedDBInstance.BuilderreservedDBInstanceId(String reservedDBInstanceId)The unique identifier for the reservation.ReservedDBInstance.BuilderreservedDBInstancesOfferingId(String reservedDBInstancesOfferingId)The offering identifier.ReservedDBInstance.BuilderstartTime(Instant startTime)The time the reservation started.ReservedDBInstance.Builderstate(String state)The state of the reserved DB instance.ReservedDBInstance.BuilderusagePrice(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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
reservedDBInstanceId
ReservedDBInstance.Builder reservedDBInstanceId(String 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
ReservedDBInstance.Builder reservedDBInstancesOfferingId(String 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
ReservedDBInstance.Builder dbInstanceClass(String 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
ReservedDBInstance.Builder startTime(Instant 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
ReservedDBInstance.Builder duration(Integer 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
ReservedDBInstance.Builder fixedPrice(Double 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
ReservedDBInstance.Builder usagePrice(Double 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
ReservedDBInstance.Builder currencyCode(String 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
ReservedDBInstance.Builder dbInstanceCount(Integer 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
ReservedDBInstance.Builder productDescription(String 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
ReservedDBInstance.Builder offeringType(String 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
ReservedDBInstance.Builder multiAZ(Boolean 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
ReservedDBInstance.Builder state(String 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
ReservedDBInstance.Builder recurringCharges(Collection<RecurringCharge> 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
ReservedDBInstance.Builder recurringCharges(RecurringCharge... 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
ReservedDBInstance.Builder recurringCharges(Consumer<RecurringCharge.Builder>... recurringCharges)
The recurring price charged to run this reserved DB instance.
This is a convenience method that creates an instance of theRecurringCharge.Builderavoiding the need to create one manually viaRecurringCharge.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#recurringCharges(List.) - 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:
#recurringCharges(java.util.Collection)
-
reservedDBInstanceArn
ReservedDBInstance.Builder reservedDBInstanceArn(String 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
ReservedDBInstance.Builder leaseId(String 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.
-
-