Interface PurchaseReservedDbInstancesOfferingRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<PurchaseReservedDbInstancesOfferingRequest.Builder,
,PurchaseReservedDbInstancesOfferingRequest> RdsRequest.Builder
,SdkBuilder<PurchaseReservedDbInstancesOfferingRequest.Builder,
,PurchaseReservedDbInstancesOfferingRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
PurchaseReservedDbInstancesOfferingRequest
public static interface PurchaseReservedDbInstancesOfferingRequest.Builder
extends RdsRequest.Builder, SdkPojo, CopyableBuilder<PurchaseReservedDbInstancesOfferingRequest.Builder,PurchaseReservedDbInstancesOfferingRequest>
-
Method Summary
Modifier and TypeMethodDescriptiondbInstanceCount
(Integer dbInstanceCount) The number of instances to reserve.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.reservedDBInstanceId
(String reservedDBInstanceId) Customer-specified identifier to track this reservation.reservedDBInstancesOfferingId
(String reservedDBInstancesOfferingId) The ID of the Reserved DB instance offering to purchase.tags
(Collection<Tag> tags) Sets the value of the Tags property for this object.tags
(Consumer<Tag.Builder>... tags) Sets the value of the Tags property for this object.Sets the value of the Tags property for this object.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.rds.model.RdsRequest.Builder
build
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
-
reservedDBInstancesOfferingId
PurchaseReservedDbInstancesOfferingRequest.Builder reservedDBInstancesOfferingId(String reservedDBInstancesOfferingId) The ID of the Reserved DB instance offering to purchase.
Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706
- Parameters:
reservedDBInstancesOfferingId
- The ID of the Reserved DB instance offering to purchase.Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reservedDBInstanceId
PurchaseReservedDbInstancesOfferingRequest.Builder reservedDBInstanceId(String reservedDBInstanceId) Customer-specified identifier to track this reservation.
Example: myreservationID
- Parameters:
reservedDBInstanceId
- Customer-specified identifier to track this reservation.Example: myreservationID
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dbInstanceCount
The number of instances to reserve.
Default:
1
- Parameters:
dbInstanceCount
- The number of instances to reserve.Default:
1
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Sets the value of the Tags property for this object.- Parameters:
tags
- The new value for the Tags property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Sets the value of the Tags property for this object.- Parameters:
tags
- The new value for the Tags property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Sets the value of the Tags property for this object. This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
PurchaseReservedDbInstancesOfferingRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
PurchaseReservedDbInstancesOfferingRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-