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 RDS.currentDBInstanceClass
(String currentDBInstanceClass) The DB instance class of the current RDS instance.default RDSDBRecommendation.Builder
currentStorageConfiguration
(Consumer<DBStorageConfiguration.Builder> currentStorageConfiguration) The configuration of the current RDS storage.currentStorageConfiguration
(DBStorageConfiguration currentStorageConfiguration) The configuration of the current RDS storage.default RDSDBRecommendation.Builder
effectiveRecommendationPreferences
(Consumer<RDSEffectiveRecommendationPreferences.Builder> effectiveRecommendationPreferences) Describes the effective recommendation preferences for Amazon RDS.effectiveRecommendationPreferences
(RDSEffectiveRecommendationPreferences effectiveRecommendationPreferences) Describes the effective recommendation preferences for Amazon RDS.The engine of the RDS instance.engineVersion
(String engineVersion) The database engine version.This indicates if the RDS instance is idle or not.This indicates if the RDS instance is idle or not.instanceFinding
(String instanceFinding) The finding classification of an Amazon RDS instance.instanceFinding
(RDSInstanceFinding instanceFinding) The finding classification of an Amazon RDS instance.instanceFindingReasonCodes
(Collection<RDSInstanceFindingReasonCode> instanceFindingReasonCodes) The reason for the finding classification of an Amazon RDS instance.instanceFindingReasonCodes
(RDSInstanceFindingReasonCode... instanceFindingReasonCodes) The reason for the finding classification of an Amazon RDS instance.instanceFindingReasonCodesWithStrings
(String... instanceFindingReasonCodes) The reason for the finding classification of an Amazon RDS instance.instanceFindingReasonCodesWithStrings
(Collection<String> instanceFindingReasonCodes) The reason for the finding classification of an Amazon RDS instance.instanceRecommendationOptions
(Collection<RDSDBInstanceRecommendationOption> instanceRecommendationOptions) An array of objects that describe the recommendation options for the Amazon RDS instance.instanceRecommendationOptions
(Consumer<RDSDBInstanceRecommendationOption.Builder>... instanceRecommendationOptions) An array of objects that describe the recommendation options for the Amazon RDS instance.instanceRecommendationOptions
(RDSDBInstanceRecommendationOption... instanceRecommendationOptions) An array of objects that describe the recommendation options for the Amazon RDS instance.lastRefreshTimestamp
(Instant lastRefreshTimestamp) The timestamp of when the Amazon RDS recommendation was last generated.lookbackPeriodInDays
(Double lookbackPeriodInDays) The number of days the Amazon RDS utilization metrics were analyzed.resourceArn
(String resourceArn) The ARN of the current Amazon RDS.storageFinding
(String storageFinding) The finding classification of Amazon RDS storage.storageFinding
(RDSStorageFinding storageFinding) The finding classification of Amazon RDS storage.storageFindingReasonCodes
(Collection<RDSStorageFindingReasonCode> storageFindingReasonCodes) The reason for the finding classification of Amazon RDS storage.storageFindingReasonCodes
(RDSStorageFindingReasonCode... storageFindingReasonCodes) The reason for the finding classification of Amazon RDS storage.storageFindingReasonCodesWithStrings
(String... storageFindingReasonCodes) The reason for the finding classification of Amazon RDS storage.storageFindingReasonCodesWithStrings
(Collection<String> storageFindingReasonCodes) The reason for the finding classification of Amazon RDS storage.storageRecommendationOptions
(Collection<RDSDBStorageRecommendationOption> storageRecommendationOptions) An array of objects that describe the recommendation options for Amazon RDS storage.storageRecommendationOptions
(Consumer<RDSDBStorageRecommendationOption.Builder>... storageRecommendationOptions) An array of objects that describe the recommendation options for Amazon RDS storage.storageRecommendationOptions
(RDSDBStorageRecommendationOption... storageRecommendationOptions) An array of objects that describe the recommendation options for Amazon RDS storage.tags
(Collection<Tag> tags) A list of tags assigned to your Amazon RDS recommendations.tags
(Consumer<Tag.Builder>... tags) A list of tags assigned to your Amazon RDS recommendations.A list of tags assigned to your Amazon RDS recommendations.utilizationMetrics
(Collection<RDSDBUtilizationMetric> utilizationMetrics) An array of objects that describe the utilization metrics of the Amazon RDS.utilizationMetrics
(Consumer<RDSDBUtilizationMetric.Builder>... utilizationMetrics) An array of objects that describe the utilization metrics of the Amazon RDS.utilizationMetrics
(RDSDBUtilizationMetric... utilizationMetrics) An array of objects that describe the utilization metrics of the Amazon RDS.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
-
resourceArn
The ARN of the current Amazon RDS.
The following is the format of the ARN:
arn:aws:rds:{region}:{accountId}:db:{resourceName}
- Parameters:
resourceArn
- The ARN of the current Amazon RDS.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 RDS.
- Parameters:
accountId
- The Amazon Web Services account ID of the Amazon RDS.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
engine
The engine of the RDS instance.
- Parameters:
engine
- The engine of the RDS 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.
-
currentDBInstanceClass
The DB instance class of the current RDS instance.
- Parameters:
currentDBInstanceClass
- The DB instance class of the current RDS 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 RDS storage.
- Parameters:
currentStorageConfiguration
- The configuration of the current RDS 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 RDS 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:
-
idle
This indicates if the RDS instance is idle or not.
- Parameters:
idle
- This indicates if the RDS 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 RDS instance is idle or not.
- Parameters:
idle
- This indicates if the RDS 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 RDS instance.
Findings for Amazon RDS instance include:
-
Underprovisioned
— When Compute Optimizer detects that there’s not enough resource specifications, an Amazon RDS is considered under-provisioned. -
Overprovisioned
— When Compute Optimizer detects that there’s excessive resource specifications, an Amazon RDS is considered over-provisioned. -
Optimized
— When the specifications of your Amazon RDS instance meet the performance requirements of your workload, the service is considered optimized.
- Parameters:
instanceFinding
- The finding classification of an Amazon RDS instance.Findings for Amazon RDS instance include:
-
Underprovisioned
— When Compute Optimizer detects that there’s not enough resource specifications, an Amazon RDS is considered under-provisioned. -
Overprovisioned
— When Compute Optimizer detects that there’s excessive resource specifications, an Amazon RDS is considered over-provisioned. -
Optimized
— When the specifications of your Amazon RDS instance meet the performance requirements of your workload, the service is considered optimized.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
instanceFinding
The finding classification of an Amazon RDS instance.
Findings for Amazon RDS instance include:
-
Underprovisioned
— When Compute Optimizer detects that there’s not enough resource specifications, an Amazon RDS is considered under-provisioned. -
Overprovisioned
— When Compute Optimizer detects that there’s excessive resource specifications, an Amazon RDS is considered over-provisioned. -
Optimized
— When the specifications of your Amazon RDS instance meet the performance requirements of your workload, the service is considered optimized.
- Parameters:
instanceFinding
- The finding classification of an Amazon RDS instance.Findings for Amazon RDS instance include:
-
Underprovisioned
— When Compute Optimizer detects that there’s not enough resource specifications, an Amazon RDS is considered under-provisioned. -
Overprovisioned
— When Compute Optimizer detects that there’s excessive resource specifications, an Amazon RDS is considered over-provisioned. -
Optimized
— When the specifications of your Amazon RDS instance meet the performance requirements of your workload, the service is considered optimized.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
storageFinding
The finding classification of Amazon RDS storage.
Findings for Amazon RDS instance include:
-
Underprovisioned
— When Compute Optimizer detects that there’s not enough storage, an Amazon RDS is considered under-provisioned. -
Overprovisioned
— When Compute Optimizer detects that there’s excessive storage, an Amazon RDS is considered over-provisioned. -
Optimized
— When the storage of your Amazon RDS meet the performance requirements of your workload, the service is considered optimized.
- Parameters:
storageFinding
- The finding classification of Amazon RDS storage.Findings for Amazon RDS instance include:
-
Underprovisioned
— When Compute Optimizer detects that there’s not enough storage, an Amazon RDS is considered under-provisioned. -
Overprovisioned
— When Compute Optimizer detects that there’s excessive storage, an Amazon RDS is considered over-provisioned. -
Optimized
— When the storage of your Amazon RDS meet the performance requirements of your workload, the service is considered optimized.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
storageFinding
The finding classification of Amazon RDS storage.
Findings for Amazon RDS instance include:
-
Underprovisioned
— When Compute Optimizer detects that there’s not enough storage, an Amazon RDS is considered under-provisioned. -
Overprovisioned
— When Compute Optimizer detects that there’s excessive storage, an Amazon RDS is considered over-provisioned. -
Optimized
— When the storage of your Amazon RDS meet the performance requirements of your workload, the service is considered optimized.
- Parameters:
storageFinding
- The finding classification of Amazon RDS storage.Findings for Amazon RDS instance include:
-
Underprovisioned
— When Compute Optimizer detects that there’s not enough storage, an Amazon RDS is considered under-provisioned. -
Overprovisioned
— When Compute Optimizer detects that there’s excessive storage, an Amazon RDS is considered over-provisioned. -
Optimized
— When the storage of your Amazon RDS meet the performance requirements of your workload, the service is considered optimized.
-
- 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 an Amazon RDS instance.
- Parameters:
instanceFindingReasonCodes
- The reason for the finding classification of an Amazon RDS 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 an Amazon RDS instance.
- Parameters:
instanceFindingReasonCodes
- The reason for the finding classification of an Amazon RDS 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 an Amazon RDS instance.
- Parameters:
instanceFindingReasonCodes
- The reason for the finding classification of an Amazon RDS 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 an Amazon RDS instance.
- Parameters:
instanceFindingReasonCodes
- The reason for the finding classification of an Amazon RDS instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
storageFindingReasonCodesWithStrings
RDSDBRecommendation.Builder storageFindingReasonCodesWithStrings(Collection<String> storageFindingReasonCodes) The reason for the finding classification of Amazon RDS storage.
- Parameters:
storageFindingReasonCodes
- The reason for the finding classification of Amazon RDS 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 Amazon RDS storage.
- Parameters:
storageFindingReasonCodes
- The reason for the finding classification of Amazon RDS 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 Amazon RDS storage.
- Parameters:
storageFindingReasonCodes
- The reason for the finding classification of Amazon RDS 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 Amazon RDS storage.
- Parameters:
storageFindingReasonCodes
- The reason for the finding classification of Amazon RDS 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 Amazon RDS instance.
- Parameters:
instanceRecommendationOptions
- An array of objects that describe the recommendation options for the Amazon RDS 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 Amazon RDS instance.
- Parameters:
instanceRecommendationOptions
- An array of objects that describe the recommendation options for the Amazon RDS 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 Amazon RDS 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 Amazon RDS storage.
- Parameters:
storageRecommendationOptions
- An array of objects that describe the recommendation options for Amazon RDS 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 Amazon RDS storage.
- Parameters:
storageRecommendationOptions
- An array of objects that describe the recommendation options for Amazon RDS 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 Amazon RDS 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 Amazon RDS.
- Parameters:
utilizationMetrics
- An array of objects that describe the utilization metrics of the Amazon RDS.- 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 Amazon RDS.
- Parameters:
utilizationMetrics
- An array of objects that describe the utilization metrics of the Amazon RDS.- 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 Amazon RDS.
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 Amazon RDS.
- Parameters:
effectiveRecommendationPreferences
- Describes the effective recommendation preferences for Amazon RDS.- 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 Amazon RDS.
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 Amazon RDS utilization metrics were analyzed.
- Parameters:
lookbackPeriodInDays
- The number of days the Amazon RDS 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 Amazon RDS recommendation was last generated.
- Parameters:
lastRefreshTimestamp
- The timestamp of when the Amazon RDS 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 Amazon RDS recommendations.
- Parameters:
tags
- A list of tags assigned to your Amazon RDS recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of tags assigned to your Amazon RDS recommendations.
- Parameters:
tags
- A list of tags assigned to your Amazon RDS recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of tags assigned to your Amazon RDS 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:
-