Interface RDSDBRecommendation.Builder

All Superinterfaces:
Buildable, CopyableBuilder<RDSDBRecommendation.Builder,RDSDBRecommendation>, SdkBuilder<RDSDBRecommendation.Builder,RDSDBRecommendation>, SdkPojo
Enclosing class:
RDSDBRecommendation

public static interface RDSDBRecommendation.Builder extends SdkPojo, CopyableBuilder<RDSDBRecommendation.Builder,RDSDBRecommendation>
  • Method Details

    • resourceArn

      RDSDBRecommendation.Builder resourceArn(String 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

      RDSDBRecommendation.Builder accountId(String 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

      RDSDBRecommendation.Builder engineVersion(String 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

      RDSDBRecommendation.Builder currentDBInstanceClass(String 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 the DBStorageConfiguration.Builder avoiding the need to create one manually via DBStorageConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to currentStorageConfiguration(DBStorageConfiguration).

      Parameters:
      currentStorageConfiguration - a consumer that will call methods on DBStorageConfiguration.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

      RDSDBRecommendation.Builder instanceFinding(String 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

      RDSDBRecommendation.Builder instanceFinding(RDSInstanceFinding 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

      RDSDBRecommendation.Builder storageFinding(String 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

      RDSDBRecommendation.Builder storageFinding(RDSStorageFinding 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 the RDSDBInstanceRecommendationOption.Builder avoiding the need to create one manually via RDSDBInstanceRecommendationOption.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to instanceRecommendationOptions(List<RDSDBInstanceRecommendationOption>).

      Parameters:
      instanceRecommendationOptions - a consumer that will call methods on RDSDBInstanceRecommendationOption.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 the RDSDBStorageRecommendationOption.Builder avoiding the need to create one manually via RDSDBStorageRecommendationOption.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to storageRecommendationOptions(List<RDSDBStorageRecommendationOption>).

      Parameters:
      storageRecommendationOptions - a consumer that will call methods on RDSDBStorageRecommendationOption.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

      RDSDBRecommendation.Builder utilizationMetrics(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

      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 the RDSDBUtilizationMetric.Builder avoiding the need to create one manually via RDSDBUtilizationMetric.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to utilizationMetrics(List<RDSDBUtilizationMetric>).

      Parameters:
      utilizationMetrics - a consumer that will call methods on RDSDBUtilizationMetric.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 the RDSEffectiveRecommendationPreferences.Builder avoiding the need to create one manually via RDSEffectiveRecommendationPreferences.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to effectiveRecommendationPreferences(RDSEffectiveRecommendationPreferences).

      Parameters:
      effectiveRecommendationPreferences - a consumer that will call methods on RDSEffectiveRecommendationPreferences.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • lookbackPeriodInDays

      RDSDBRecommendation.Builder lookbackPeriodInDays(Double 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

      RDSDBRecommendation.Builder lastRefreshTimestamp(Instant 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 the Tag.Builder avoiding the need to create one manually via Tag.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to tags(List<Tag>).

      Parameters:
      tags - a consumer that will call methods on Tag.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: