Interface SavingsPlansPurchaseAnalysisDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<SavingsPlansPurchaseAnalysisDetails.Builder,
,SavingsPlansPurchaseAnalysisDetails> SdkBuilder<SavingsPlansPurchaseAnalysisDetails.Builder,
,SavingsPlansPurchaseAnalysisDetails> SdkPojo
- Enclosing class:
SavingsPlansPurchaseAnalysisDetails
-
Method Summary
Modifier and TypeMethodDescriptionadditionalMetadata
(String additionalMetadata) Additional metadata that might be applicable to the commitment.currencyCode
(String currencyCode) The currency code used for the analysis.currentAverageCoverage
(String currentAverageCoverage) The average value of hourly coverage over the lookback period.currentAverageHourlyOnDemandSpend
(String currentAverageHourlyOnDemandSpend) The average value of hourly On-Demand spend over the lookback period.currentMaximumHourlyOnDemandSpend
(String currentMaximumHourlyOnDemandSpend) The highest value of hourly On-Demand spend over the lookback period.currentMinimumHourlyOnDemandSpend
(String currentMinimumHourlyOnDemandSpend) The lowest value of hourly On-Demand spend over the lookback period.currentOnDemandSpend
(String currentOnDemandSpend) The current total On-Demand spend over the lookback period.estimatedAverageCoverage
(String estimatedAverageCoverage) The estimated coverage of the Savings Plan.estimatedAverageUtilization
(String estimatedAverageUtilization) The estimated utilization of the Savings Plan.estimatedCommitmentCost
(String estimatedCommitmentCost) The estimated cost of the Savings Plan over the length of the lookback period.estimatedMonthlySavingsAmount
(String estimatedMonthlySavingsAmount) The estimated monthly savings amount based on the Savings Plan.estimatedOnDemandCost
(String estimatedOnDemandCost) The remaining On-Demand cost estimated to not be covered by the Savings Plan over the length of the lookback period.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.estimatedROI
(String estimatedROI) The estimated return on investment that's based on the Savings Plan and estimated savings.estimatedSavingsAmount
(String estimatedSavingsAmount) The estimated savings amount that's based on the Savings Plan over the length of the lookback period.estimatedSavingsPercentage
(String estimatedSavingsPercentage) The estimated savings percentage relative to the total cost over the cost calculation lookback period.existingHourlyCommitment
(String existingHourlyCommitment) The existing hourly commitment for the Savings Plan type.hourlyCommitmentToPurchase
(String hourlyCommitmentToPurchase) The recommended or custom hourly commitment.latestUsageTimestamp
(String latestUsageTimestamp) The date and time of the last hour that went into the analysis.lookbackPeriodInHours
(String lookbackPeriodInHours) The lookback period in hours that's used to generate the analysis.metricsOverLookbackPeriod
(Collection<RecommendationDetailHourlyMetrics> metricsOverLookbackPeriod) The related hourly cost, coverage, and utilization metrics over the lookback period.metricsOverLookbackPeriod
(Consumer<RecommendationDetailHourlyMetrics.Builder>... metricsOverLookbackPeriod) The related hourly cost, coverage, and utilization metrics over the lookback period.metricsOverLookbackPeriod
(RecommendationDetailHourlyMetrics... metricsOverLookbackPeriod) The related hourly cost, coverage, and utilization metrics over the lookback period.upfrontCost
(String upfrontCost) The upfront cost of the Savings Plan based on the selected payment option.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
-
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
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
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
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
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
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
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
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
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
SavingsPlansPurchaseAnalysisDetails.Builder metricsOverLookbackPeriod(Consumer<RecommendationDetailHourlyMetrics.Builder>... metricsOverLookbackPeriod) The related hourly cost, coverage, and utilization metrics over the lookback period.
This is a convenience method that creates an instance of theRecommendationDetailHourlyMetrics.Builder
avoiding the need to create one manually viaRecommendationDetailHourlyMetrics.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometricsOverLookbackPeriod(List<RecommendationDetailHourlyMetrics>)
.- Parameters:
metricsOverLookbackPeriod
- a consumer that will call methods onRecommendationDetailHourlyMetrics.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-