Interface ModifyDbCapacityReservationRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<ModifyDbCapacityReservationRequest.Builder,,ModifyDbCapacityReservationRequest> RdsRequest.Builder,SdkBuilder<ModifyDbCapacityReservationRequest.Builder,,ModifyDbCapacityReservationRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
ModifyDbCapacityReservationRequest
-
Method Summary
Modifier and TypeMethodDescriptioncapacityPerAvailabilityZone(Integer capacityPerAvailabilityZone) The new number of DB instances to reserve in each Availability Zone of the reservation.dbCapacityReservationIdentifier(String dbCapacityReservationIdentifier) The identifier or the name of the DB capacity reservation to modify.The new end date for the reservation, in Universal Coordinated Time (UTC).endDateType(String endDateType) The end date type for the reservation.endDateType(EndDateType endDateType) The end date type for the reservation.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.rds.model.RdsRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
dbCapacityReservationIdentifier
ModifyDbCapacityReservationRequest.Builder dbCapacityReservationIdentifier(String dbCapacityReservationIdentifier) The identifier or the name of the DB capacity reservation to modify. You can specify the identifier, which has the prefix
dbcr-, or the reservation name.- Parameters:
dbCapacityReservationIdentifier- The identifier or the name of the DB capacity reservation to modify. You can specify the identifier, which has the prefixdbcr-, or the reservation name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityPerAvailabilityZone
ModifyDbCapacityReservationRequest.Builder capacityPerAvailabilityZone(Integer capacityPerAvailabilityZone) The new number of DB instances to reserve in each Availability Zone of the reservation. Amazon RDS applies this number to every Availability Zone of the reservation.
An increase reserves more capacity at the time of the request, so it can fail when the Amazon Web Services Region has insufficient capacity.
This value multiplied by the number of Availability Zones counts against the DB instances quota for your Amazon Web Services account in the Amazon Web Services Region. Amazon RDS checks the quota only when you increase the value.
Constraints:
-
Minimum 1.
-
Can't be less than the highest number of DB instances that use the reservation in any single Availability Zone of the reservation. That number includes a DB instance that holds a unit of reserved capacity for a pending modification. To find that number for an Availability Zone, subtract
AvailableCapacityfromReservedCapacityPerAvailabilityZone. -
During a capacity commitment, can't be less than
CommittedCapacityPerAvailabilityZone.
- Parameters:
capacityPerAvailabilityZone- The new number of DB instances to reserve in each Availability Zone of the reservation. Amazon RDS applies this number to every Availability Zone of the reservation.An increase reserves more capacity at the time of the request, so it can fail when the Amazon Web Services Region has insufficient capacity.
This value multiplied by the number of Availability Zones counts against the DB instances quota for your Amazon Web Services account in the Amazon Web Services Region. Amazon RDS checks the quota only when you increase the value.
Constraints:
-
Minimum 1.
-
Can't be less than the highest number of DB instances that use the reservation in any single Availability Zone of the reservation. That number includes a DB instance that holds a unit of reserved capacity for a pending modification. To find that number for an Availability Zone, subtract
AvailableCapacityfromReservedCapacityPerAvailabilityZone. -
During a capacity commitment, can't be less than
CommittedCapacityPerAvailabilityZone.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
endDateType
The end date type for the reservation.
Valid Values:
-
limited- The reservation has a specific end date. You must also specifyEndDate. -
unlimited- The reservation doesn't expire. Don't specifyEndDate.
- Parameters:
endDateType- The end date type for the reservation.Valid Values:
-
limited- The reservation has a specific end date. You must also specifyEndDate. -
unlimited- The reservation doesn't expire. Don't specifyEndDate.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
endDateType
The end date type for the reservation.
Valid Values:
-
limited- The reservation has a specific end date. You must also specifyEndDate. -
unlimited- The reservation doesn't expire. Don't specifyEndDate.
- Parameters:
endDateType- The end date type for the reservation.Valid Values:
-
limited- The reservation has a specific end date. You must also specifyEndDate. -
unlimited- The reservation doesn't expire. Don't specifyEndDate.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
endDate
The new end date for the reservation, in Universal Coordinated Time (UTC). Required when
EndDateTypeislimited. Don't specify a value whenEndDateTypeisunlimited.When you specify
EndDate, you must also specifyEndDateType.Constraints:
-
Must be a date and time in the future.
-
During a capacity commitment, must be at or after
CommitmentEndDate.
- Parameters:
endDate- The new end date for the reservation, in Universal Coordinated Time (UTC). Required whenEndDateTypeislimited. Don't specify a value whenEndDateTypeisunlimited.When you specify
EndDate, you must also specifyEndDateType.Constraints:
-
Must be a date and time in the future.
-
During a capacity commitment, must be at or after
CommitmentEndDate.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
overrideConfiguration
ModifyDbCapacityReservationRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
ModifyDbCapacityReservationRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-