Interface SavingsPlansPurchaseAnalysisDetails.Builder

  • Method Details

    • currencyCode

      The currency code used for the analysis.

      Parameters:
      currencyCode - The currency code used for the analysis.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lookbackPeriodInHours

      SavingsPlansPurchaseAnalysisDetails.Builder lookbackPeriodInHours(String lookbackPeriodInHours)

      The lookback period in hours that's used to generate the analysis.

      Parameters:
      lookbackPeriodInHours - The lookback period in hours that's used to generate the analysis.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • currentAverageCoverage

      SavingsPlansPurchaseAnalysisDetails.Builder currentAverageCoverage(String currentAverageCoverage)

      The average value of hourly coverage over the lookback period.

      Parameters:
      currentAverageCoverage - The average value of hourly coverage over the lookback period.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • currentAverageHourlyOnDemandSpend

      SavingsPlansPurchaseAnalysisDetails.Builder currentAverageHourlyOnDemandSpend(String currentAverageHourlyOnDemandSpend)

      The average value of hourly On-Demand spend over the lookback period.

      Parameters:
      currentAverageHourlyOnDemandSpend - The average value of hourly On-Demand spend over the lookback period.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • currentMaximumHourlyOnDemandSpend

      SavingsPlansPurchaseAnalysisDetails.Builder currentMaximumHourlyOnDemandSpend(String currentMaximumHourlyOnDemandSpend)

      The highest value of hourly On-Demand spend over the lookback period.

      Parameters:
      currentMaximumHourlyOnDemandSpend - The highest value of hourly On-Demand spend over the lookback period.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • currentMinimumHourlyOnDemandSpend

      SavingsPlansPurchaseAnalysisDetails.Builder currentMinimumHourlyOnDemandSpend(String currentMinimumHourlyOnDemandSpend)

      The lowest value of hourly On-Demand spend over the lookback period.

      Parameters:
      currentMinimumHourlyOnDemandSpend - The lowest value of hourly On-Demand spend over the lookback period.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • currentOnDemandSpend

      SavingsPlansPurchaseAnalysisDetails.Builder currentOnDemandSpend(String currentOnDemandSpend)

      The current total On-Demand spend over the lookback period.

      Parameters:
      currentOnDemandSpend - The current total On-Demand spend over the lookback period.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • existingHourlyCommitment

      SavingsPlansPurchaseAnalysisDetails.Builder existingHourlyCommitment(String existingHourlyCommitment)

      The existing hourly commitment for the Savings Plan type.

      Parameters:
      existingHourlyCommitment - The existing hourly commitment for the Savings Plan type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • hourlyCommitmentToPurchase

      SavingsPlansPurchaseAnalysisDetails.Builder hourlyCommitmentToPurchase(String hourlyCommitmentToPurchase)

      The recommended or custom hourly commitment.

      Parameters:
      hourlyCommitmentToPurchase - The recommended or custom hourly commitment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • estimatedAverageCoverage

      SavingsPlansPurchaseAnalysisDetails.Builder estimatedAverageCoverage(String estimatedAverageCoverage)

      The estimated coverage of the Savings Plan.

      Parameters:
      estimatedAverageCoverage - The estimated coverage of the Savings Plan.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • estimatedAverageUtilization

      SavingsPlansPurchaseAnalysisDetails.Builder estimatedAverageUtilization(String estimatedAverageUtilization)

      The estimated utilization of the Savings Plan.

      Parameters:
      estimatedAverageUtilization - The estimated utilization of the Savings Plan.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • estimatedMonthlySavingsAmount

      SavingsPlansPurchaseAnalysisDetails.Builder estimatedMonthlySavingsAmount(String estimatedMonthlySavingsAmount)

      The estimated monthly savings amount based on the Savings Plan.

      Parameters:
      estimatedMonthlySavingsAmount - The estimated monthly savings amount based on the Savings Plan.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • estimatedOnDemandCost

      SavingsPlansPurchaseAnalysisDetails.Builder estimatedOnDemandCost(String estimatedOnDemandCost)

      The remaining On-Demand cost estimated to not be covered by the Savings Plan over the length of the lookback period.

      Parameters:
      estimatedOnDemandCost - The remaining On-Demand cost estimated to not be covered by the Savings Plan over the length of the lookback period.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • estimatedOnDemandCostWithCurrentCommitment

      SavingsPlansPurchaseAnalysisDetails.Builder estimatedOnDemandCostWithCurrentCommitment(String estimatedOnDemandCostWithCurrentCommitment)

      The estimated On-Demand cost you expect with no additional commitment based on your usage of the selected time period and the Savings Plan you own.

      Parameters:
      estimatedOnDemandCostWithCurrentCommitment - The estimated On-Demand cost you expect with no additional commitment based on your usage of the selected time period and the Savings Plan you own.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • estimatedROI

      The estimated return on investment that's based on the Savings Plan and estimated savings. This is calculated as estimatedSavingsAmount/estimatedSPCost*100.

      Parameters:
      estimatedROI - The estimated return on investment that's based on the Savings Plan and estimated savings. This is calculated as estimatedSavingsAmount/estimatedSPCost*100.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • estimatedSavingsAmount

      SavingsPlansPurchaseAnalysisDetails.Builder estimatedSavingsAmount(String estimatedSavingsAmount)

      The estimated savings amount that's based on the Savings Plan over the length of the lookback period.

      Parameters:
      estimatedSavingsAmount - The estimated savings amount that's based on the Savings Plan over the length of the lookback period.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • estimatedSavingsPercentage

      SavingsPlansPurchaseAnalysisDetails.Builder estimatedSavingsPercentage(String estimatedSavingsPercentage)

      The estimated savings percentage relative to the total cost over the cost calculation lookback period.

      Parameters:
      estimatedSavingsPercentage - The estimated savings percentage relative to the total cost over the cost calculation lookback period.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • estimatedCommitmentCost

      SavingsPlansPurchaseAnalysisDetails.Builder estimatedCommitmentCost(String estimatedCommitmentCost)

      The estimated cost of the Savings Plan over the length of the lookback period.

      Parameters:
      estimatedCommitmentCost - The estimated cost of the Savings Plan over the length of the lookback period.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • latestUsageTimestamp

      SavingsPlansPurchaseAnalysisDetails.Builder latestUsageTimestamp(String latestUsageTimestamp)

      The date and time of the last hour that went into the analysis.

      Parameters:
      latestUsageTimestamp - The date and time of the last hour that went into the analysis.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • upfrontCost

      The upfront cost of the Savings Plan based on the selected payment option.

      Parameters:
      upfrontCost - The upfront cost of the Savings Plan based on the selected payment option.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • additionalMetadata

      SavingsPlansPurchaseAnalysisDetails.Builder additionalMetadata(String additionalMetadata)

      Additional metadata that might be applicable to the commitment.

      Parameters:
      additionalMetadata - Additional metadata that might be applicable to the commitment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metricsOverLookbackPeriod

      SavingsPlansPurchaseAnalysisDetails.Builder metricsOverLookbackPeriod(Collection<RecommendationDetailHourlyMetrics> metricsOverLookbackPeriod)

      The related hourly cost, coverage, and utilization metrics over the lookback period.

      Parameters:
      metricsOverLookbackPeriod - The related hourly cost, coverage, and utilization metrics over the lookback period.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metricsOverLookbackPeriod

      SavingsPlansPurchaseAnalysisDetails.Builder metricsOverLookbackPeriod(RecommendationDetailHourlyMetrics... metricsOverLookbackPeriod)

      The related hourly cost, coverage, and utilization metrics over the lookback period.

      Parameters:
      metricsOverLookbackPeriod - The related hourly cost, coverage, and utilization metrics over the lookback period.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metricsOverLookbackPeriod

      The related hourly cost, coverage, and utilization metrics over the lookback period.

      This is a convenience method that creates an instance of the RecommendationDetailHourlyMetrics.Builder avoiding the need to create one manually via RecommendationDetailHourlyMetrics.builder().

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

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