Interface RDSDBRecommendation.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RDSDBRecommendation.Builder,
,RDSDBRecommendation> SdkBuilder<RDSDBRecommendation.Builder,
,RDSDBRecommendation> SdkPojo
- Enclosing class:
RDSDBRecommendation
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Web Services account ID of the Amazon Aurora or RDS database.currentDBInstanceClass
(String currentDBInstanceClass) The DB instance class of the current Aurora or RDS DB instance.currentInstancePerformanceRisk
(String currentInstancePerformanceRisk) The performance risk for the current DB instance.currentInstancePerformanceRisk
(RDSCurrentInstancePerformanceRisk currentInstancePerformanceRisk) The performance risk for the current DB instance.default RDSDBRecommendation.Builder
currentStorageConfiguration
(Consumer<DBStorageConfiguration.Builder> currentStorageConfiguration) The configuration of the current DB storage.currentStorageConfiguration
(DBStorageConfiguration currentStorageConfiguration) The configuration of the current DB storage.currentStorageEstimatedMonthlyVolumeIOPsCostVariation
(String currentStorageEstimatedMonthlyVolumeIOPsCostVariation) The level of variation in monthly I/O costs for the current DB storage configuration.currentStorageEstimatedMonthlyVolumeIOPsCostVariation
(RDSEstimatedMonthlyVolumeIOPsCostVariation currentStorageEstimatedMonthlyVolumeIOPsCostVariation) The level of variation in monthly I/O costs for the current DB storage configuration.dbClusterIdentifier
(String dbClusterIdentifier) The identifier for DB cluster.default RDSDBRecommendation.Builder
effectiveRecommendationPreferences
(Consumer<RDSEffectiveRecommendationPreferences.Builder> effectiveRecommendationPreferences) Describes the effective recommendation preferences for DB instances.effectiveRecommendationPreferences
(RDSEffectiveRecommendationPreferences effectiveRecommendationPreferences) Describes the effective recommendation preferences for DB instances.The engine of the DB instance.engineVersion
(String engineVersion) The database engine version.This indicates if the DB instance is idle or not.This indicates if the DB instance is idle or not.instanceFinding
(String instanceFinding) The finding classification of an Amazon Aurora and RDS DB instance.instanceFinding
(RDSInstanceFinding instanceFinding) The finding classification of an Amazon Aurora and RDS DB instance.instanceFindingReasonCodes
(Collection<RDSInstanceFindingReasonCode> instanceFindingReasonCodes) The reason for the finding classification of a DB instance.instanceFindingReasonCodes
(RDSInstanceFindingReasonCode... instanceFindingReasonCodes) The reason for the finding classification of a DB instance.instanceFindingReasonCodesWithStrings
(String... instanceFindingReasonCodes) The reason for the finding classification of a DB instance.instanceFindingReasonCodesWithStrings
(Collection<String> instanceFindingReasonCodes) The reason for the finding classification of a DB instance.instanceRecommendationOptions
(Collection<RDSDBInstanceRecommendationOption> instanceRecommendationOptions) An array of objects that describe the recommendation options for the RDS DB instance.instanceRecommendationOptions
(Consumer<RDSDBInstanceRecommendationOption.Builder>... instanceRecommendationOptions) An array of objects that describe the recommendation options for the RDS DB instance.instanceRecommendationOptions
(RDSDBInstanceRecommendationOption... instanceRecommendationOptions) An array of objects that describe the recommendation options for the RDS DB instance.lastRefreshTimestamp
(Instant lastRefreshTimestamp) The timestamp of when the DB instance recommendation was last generated.lookbackPeriodInDays
(Double lookbackPeriodInDays) The number of days the DB instance utilization metrics were analyzed.promotionTier
(Integer promotionTier) The promotion tier for the Aurora instance.resourceArn
(String resourceArn) The ARN of the current Amazon Aurora or RDS database.storageFinding
(String storageFinding) The finding classification of Amazon RDS DB instance storage.storageFinding
(RDSStorageFinding storageFinding) The finding classification of Amazon RDS DB instance storage.storageFindingReasonCodes
(Collection<RDSStorageFindingReasonCode> storageFindingReasonCodes) The reason for the finding classification of RDS DB instance storage.storageFindingReasonCodes
(RDSStorageFindingReasonCode... storageFindingReasonCodes) The reason for the finding classification of RDS DB instance storage.storageFindingReasonCodesWithStrings
(String... storageFindingReasonCodes) The reason for the finding classification of RDS DB instance storage.storageFindingReasonCodesWithStrings
(Collection<String> storageFindingReasonCodes) The reason for the finding classification of RDS DB instance storage.storageRecommendationOptions
(Collection<RDSDBStorageRecommendationOption> storageRecommendationOptions) An array of objects that describe the recommendation options for DB instance storage.storageRecommendationOptions
(Consumer<RDSDBStorageRecommendationOption.Builder>... storageRecommendationOptions) An array of objects that describe the recommendation options for DB instance storage.storageRecommendationOptions
(RDSDBStorageRecommendationOption... storageRecommendationOptions) An array of objects that describe the recommendation options for DB instance storage.tags
(Collection<Tag> tags) A list of tags assigned to your DB instance recommendations.tags
(Consumer<Tag.Builder>... tags) A list of tags assigned to your DB instance recommendations.A list of tags assigned to your DB instance recommendations.utilizationMetrics
(Collection<RDSDBUtilizationMetric> utilizationMetrics) An array of objects that describe the utilization metrics of the DB instance.utilizationMetrics
(Consumer<RDSDBUtilizationMetric.Builder>... utilizationMetrics) An array of objects that describe the utilization metrics of the DB instance.utilizationMetrics
(RDSDBUtilizationMetric... utilizationMetrics) An array of objects that describe the utilization metrics of the 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 Details
-
resourceArn
The ARN of the current Amazon Aurora or RDS database.
The following is the format of the ARN:
arn:aws:rds:{region}:{accountId}:db:{resourceName}
- Parameters:
resourceArn
- The ARN of the current Amazon Aurora or RDS database.The following is the format of the ARN:
arn:aws:rds:{region}:{accountId}:db:{resourceName}
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accountId
The Amazon Web Services account ID of the Amazon Aurora or RDS database.
- Parameters:
accountId
- The Amazon Web Services account ID of the Amazon Aurora or RDS database.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
engine
The engine of the DB instance.
- Parameters:
engine
- The engine of the DB instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
engineVersion
The database engine version.
- Parameters:
engineVersion
- The database engine version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
promotionTier
The promotion tier for the Aurora instance.
- Parameters:
promotionTier
- The promotion tier for the Aurora instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currentDBInstanceClass
The DB instance class of the current Aurora or RDS DB instance.
- Parameters:
currentDBInstanceClass
- The DB instance class of the current Aurora or RDS DB instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currentStorageConfiguration
RDSDBRecommendation.Builder currentStorageConfiguration(DBStorageConfiguration currentStorageConfiguration) The configuration of the current DB storage.
- Parameters:
currentStorageConfiguration
- The configuration of the current DB storage.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currentStorageConfiguration
default RDSDBRecommendation.Builder currentStorageConfiguration(Consumer<DBStorageConfiguration.Builder> currentStorageConfiguration) The configuration of the current DB storage.
This is a convenience method that creates an instance of theDBStorageConfiguration.Builder
avoiding the need to create one manually viaDBStorageConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocurrentStorageConfiguration(DBStorageConfiguration)
.- Parameters:
currentStorageConfiguration
- a consumer that will call methods onDBStorageConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dbClusterIdentifier
The identifier for DB cluster.
- Parameters:
dbClusterIdentifier
- The identifier for DB cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
idle
This indicates if the DB instance is idle or not.
- Parameters:
idle
- This indicates if the DB instance is idle or not.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
idle
This indicates if the DB instance is idle or not.
- Parameters:
idle
- This indicates if the DB instance is idle or not.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceFinding
The finding classification of an Amazon Aurora and RDS DB instance.
For more information about finding classifications, see Finding classifications for Aurora and RDS databases in the Compute Optimizer User Guide.
- Parameters:
instanceFinding
- The finding classification of an Amazon Aurora and RDS DB instance.For more information about finding classifications, see Finding classifications for Aurora and RDS databases in the Compute Optimizer User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceFinding
The finding classification of an Amazon Aurora and RDS DB instance.
For more information about finding classifications, see Finding classifications for Aurora and RDS databases in the Compute Optimizer User Guide.
- Parameters:
instanceFinding
- The finding classification of an Amazon Aurora and RDS DB instance.For more information about finding classifications, see Finding classifications for Aurora and RDS databases in the Compute Optimizer User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
storageFinding
The finding classification of Amazon RDS DB instance storage.
For more information about finding classifications, see Finding classifications for Aurora and RDS databases in the Compute Optimizer User Guide.
- Parameters:
storageFinding
- The finding classification of Amazon RDS DB instance storage.For more information about finding classifications, see Finding classifications for Aurora and RDS databases in the Compute Optimizer User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
storageFinding
The finding classification of Amazon RDS DB instance storage.
For more information about finding classifications, see Finding classifications for Aurora and RDS databases in the Compute Optimizer User Guide.
- Parameters:
storageFinding
- The finding classification of Amazon RDS DB instance storage.For more information about finding classifications, see Finding classifications for Aurora and RDS databases in the Compute Optimizer User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceFindingReasonCodesWithStrings
RDSDBRecommendation.Builder instanceFindingReasonCodesWithStrings(Collection<String> instanceFindingReasonCodes) The reason for the finding classification of a DB instance.
- Parameters:
instanceFindingReasonCodes
- The reason for the finding classification of a DB instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceFindingReasonCodesWithStrings
RDSDBRecommendation.Builder instanceFindingReasonCodesWithStrings(String... instanceFindingReasonCodes) The reason for the finding classification of a DB instance.
- Parameters:
instanceFindingReasonCodes
- The reason for the finding classification of a DB instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceFindingReasonCodes
RDSDBRecommendation.Builder instanceFindingReasonCodes(Collection<RDSInstanceFindingReasonCode> instanceFindingReasonCodes) The reason for the finding classification of a DB instance.
- Parameters:
instanceFindingReasonCodes
- The reason for the finding classification of a DB instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceFindingReasonCodes
RDSDBRecommendation.Builder instanceFindingReasonCodes(RDSInstanceFindingReasonCode... instanceFindingReasonCodes) The reason for the finding classification of a DB instance.
- Parameters:
instanceFindingReasonCodes
- The reason for the finding classification of a DB instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currentInstancePerformanceRisk
The performance risk for the current DB instance.
- Parameters:
currentInstancePerformanceRisk
- The performance risk for the current DB instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
currentInstancePerformanceRisk
RDSDBRecommendation.Builder currentInstancePerformanceRisk(RDSCurrentInstancePerformanceRisk currentInstancePerformanceRisk) The performance risk for the current DB instance.
- Parameters:
currentInstancePerformanceRisk
- The performance risk for the current DB instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
currentStorageEstimatedMonthlyVolumeIOPsCostVariation
RDSDBRecommendation.Builder currentStorageEstimatedMonthlyVolumeIOPsCostVariation(String currentStorageEstimatedMonthlyVolumeIOPsCostVariation) The level of variation in monthly I/O costs for the current DB storage configuration.
- Parameters:
currentStorageEstimatedMonthlyVolumeIOPsCostVariation
- The level of variation in monthly I/O costs for the current DB storage configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
currentStorageEstimatedMonthlyVolumeIOPsCostVariation
RDSDBRecommendation.Builder currentStorageEstimatedMonthlyVolumeIOPsCostVariation(RDSEstimatedMonthlyVolumeIOPsCostVariation currentStorageEstimatedMonthlyVolumeIOPsCostVariation) The level of variation in monthly I/O costs for the current DB storage configuration.
- Parameters:
currentStorageEstimatedMonthlyVolumeIOPsCostVariation
- The level of variation in monthly I/O costs for the current DB storage configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
storageFindingReasonCodesWithStrings
RDSDBRecommendation.Builder storageFindingReasonCodesWithStrings(Collection<String> storageFindingReasonCodes) The reason for the finding classification of RDS DB instance storage.
- Parameters:
storageFindingReasonCodes
- The reason for the finding classification of RDS DB instance storage.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
storageFindingReasonCodesWithStrings
RDSDBRecommendation.Builder storageFindingReasonCodesWithStrings(String... storageFindingReasonCodes) The reason for the finding classification of RDS DB instance storage.
- Parameters:
storageFindingReasonCodes
- The reason for the finding classification of RDS DB instance storage.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
storageFindingReasonCodes
RDSDBRecommendation.Builder storageFindingReasonCodes(Collection<RDSStorageFindingReasonCode> storageFindingReasonCodes) The reason for the finding classification of RDS DB instance storage.
- Parameters:
storageFindingReasonCodes
- The reason for the finding classification of RDS DB instance storage.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
storageFindingReasonCodes
RDSDBRecommendation.Builder storageFindingReasonCodes(RDSStorageFindingReasonCode... storageFindingReasonCodes) The reason for the finding classification of RDS DB instance storage.
- Parameters:
storageFindingReasonCodes
- The reason for the finding classification of RDS DB instance storage.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceRecommendationOptions
RDSDBRecommendation.Builder instanceRecommendationOptions(Collection<RDSDBInstanceRecommendationOption> instanceRecommendationOptions) An array of objects that describe the recommendation options for the RDS DB instance.
- Parameters:
instanceRecommendationOptions
- An array of objects that describe the recommendation options for the RDS DB instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceRecommendationOptions
RDSDBRecommendation.Builder instanceRecommendationOptions(RDSDBInstanceRecommendationOption... instanceRecommendationOptions) An array of objects that describe the recommendation options for the RDS DB instance.
- Parameters:
instanceRecommendationOptions
- An array of objects that describe the recommendation options for the RDS DB instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceRecommendationOptions
RDSDBRecommendation.Builder instanceRecommendationOptions(Consumer<RDSDBInstanceRecommendationOption.Builder>... instanceRecommendationOptions) An array of objects that describe the recommendation options for the RDS DB instance.
This is a convenience method that creates an instance of theRDSDBInstanceRecommendationOption.Builder
avoiding the need to create one manually viaRDSDBInstanceRecommendationOption.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinstanceRecommendationOptions(List<RDSDBInstanceRecommendationOption>)
.- Parameters:
instanceRecommendationOptions
- a consumer that will call methods onRDSDBInstanceRecommendationOption.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
storageRecommendationOptions
RDSDBRecommendation.Builder storageRecommendationOptions(Collection<RDSDBStorageRecommendationOption> storageRecommendationOptions) An array of objects that describe the recommendation options for DB instance storage.
- Parameters:
storageRecommendationOptions
- An array of objects that describe the recommendation options for DB instance storage.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
storageRecommendationOptions
RDSDBRecommendation.Builder storageRecommendationOptions(RDSDBStorageRecommendationOption... storageRecommendationOptions) An array of objects that describe the recommendation options for DB instance storage.
- Parameters:
storageRecommendationOptions
- An array of objects that describe the recommendation options for DB instance storage.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
storageRecommendationOptions
RDSDBRecommendation.Builder storageRecommendationOptions(Consumer<RDSDBStorageRecommendationOption.Builder>... storageRecommendationOptions) An array of objects that describe the recommendation options for DB instance storage.
This is a convenience method that creates an instance of theRDSDBStorageRecommendationOption.Builder
avoiding the need to create one manually viaRDSDBStorageRecommendationOption.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostorageRecommendationOptions(List<RDSDBStorageRecommendationOption>)
.- Parameters:
storageRecommendationOptions
- a consumer that will call methods onRDSDBStorageRecommendationOption.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
utilizationMetrics
RDSDBRecommendation.Builder utilizationMetrics(Collection<RDSDBUtilizationMetric> utilizationMetrics) An array of objects that describe the utilization metrics of the DB instance.
- Parameters:
utilizationMetrics
- An array of objects that describe the utilization metrics of the DB instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
utilizationMetrics
An array of objects that describe the utilization metrics of the DB instance.
- Parameters:
utilizationMetrics
- An array of objects that describe the utilization metrics of the DB instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
utilizationMetrics
RDSDBRecommendation.Builder utilizationMetrics(Consumer<RDSDBUtilizationMetric.Builder>... utilizationMetrics) An array of objects that describe the utilization metrics of the DB instance.
This is a convenience method that creates an instance of theRDSDBUtilizationMetric.Builder
avoiding the need to create one manually viaRDSDBUtilizationMetric.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toutilizationMetrics(List<RDSDBUtilizationMetric>)
.- Parameters:
utilizationMetrics
- a consumer that will call methods onRDSDBUtilizationMetric.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
effectiveRecommendationPreferences
RDSDBRecommendation.Builder effectiveRecommendationPreferences(RDSEffectiveRecommendationPreferences effectiveRecommendationPreferences) Describes the effective recommendation preferences for DB instances.
- Parameters:
effectiveRecommendationPreferences
- Describes the effective recommendation preferences for DB instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
effectiveRecommendationPreferences
default RDSDBRecommendation.Builder effectiveRecommendationPreferences(Consumer<RDSEffectiveRecommendationPreferences.Builder> effectiveRecommendationPreferences) Describes the effective recommendation preferences for DB instances.
This is a convenience method that creates an instance of theRDSEffectiveRecommendationPreferences.Builder
avoiding the need to create one manually viaRDSEffectiveRecommendationPreferences.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toeffectiveRecommendationPreferences(RDSEffectiveRecommendationPreferences)
.- Parameters:
effectiveRecommendationPreferences
- a consumer that will call methods onRDSEffectiveRecommendationPreferences.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lookbackPeriodInDays
The number of days the DB instance utilization metrics were analyzed.
- Parameters:
lookbackPeriodInDays
- The number of days the DB instance utilization metrics were analyzed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastRefreshTimestamp
The timestamp of when the DB instance recommendation was last generated.
- Parameters:
lastRefreshTimestamp
- The timestamp of when the DB instance recommendation was last generated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of tags assigned to your DB instance recommendations.
- Parameters:
tags
- A list of tags assigned to your DB instance recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of tags assigned to your DB instance recommendations.
- Parameters:
tags
- A list of tags assigned to your DB instance recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of tags assigned to your DB instance recommendations.
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:
-