Interface RecommendationDetailData.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<RecommendationDetailData.Builder,RecommendationDetailData>,SdkBuilder<RecommendationDetailData.Builder,RecommendationDetailData>,SdkPojo
- Enclosing class:
- RecommendationDetailData
public static interface RecommendationDetailData.Builder extends SdkPojo, CopyableBuilder<RecommendationDetailData.Builder,RecommendationDetailData>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RecommendationDetailData.BuilderaccountId(String accountId)The AccountID that the recommendation is generated for.RecommendationDetailData.BuilderaccountScope(String accountScope)The account scope that you want your recommendations for.RecommendationDetailData.BuilderaccountScope(AccountScope accountScope)The account scope that you want your recommendations for.RecommendationDetailData.BuildercurrencyCode(String currencyCode)The currency code that Amazon Web Services used to generate the recommendation and present potential savings.RecommendationDetailData.BuildercurrentAverageCoverage(String currentAverageCoverage)The average value of hourly coverage over the lookback period.RecommendationDetailData.BuildercurrentAverageHourlyOnDemandSpend(String currentAverageHourlyOnDemandSpend)The average value of hourly On-Demand spend over the lookback period of the applicable usage type.RecommendationDetailData.BuildercurrentMaximumHourlyOnDemandSpend(String currentMaximumHourlyOnDemandSpend)The highest value of hourly On-Demand spend over the lookback period of the applicable usage type.RecommendationDetailData.BuildercurrentMinimumHourlyOnDemandSpend(String currentMinimumHourlyOnDemandSpend)The lowest value of hourly On-Demand spend over the lookback period of the applicable usage type.RecommendationDetailData.BuilderestimatedAverageCoverage(String estimatedAverageCoverage)The estimated coverage of the recommended Savings Plan.RecommendationDetailData.BuilderestimatedAverageUtilization(String estimatedAverageUtilization)The estimated utilization of the recommended Savings Plan.RecommendationDetailData.BuilderestimatedMonthlySavingsAmount(String estimatedMonthlySavingsAmount)The estimated monthly savings amount based on the recommended Savings Plan.RecommendationDetailData.BuilderestimatedOnDemandCost(String estimatedOnDemandCost)The remaining On-Demand cost estimated to not be covered by the recommended Savings Plan, over the length of the lookback period.RecommendationDetailData.BuilderestimatedOnDemandCostWithCurrentCommitment(String estimatedOnDemandCostWithCurrentCommitment)The estimated On-Demand costs you expect with no additional commitment, based on your usage of the selected time period and the Savings Plan you own.RecommendationDetailData.BuilderestimatedROI(String estimatedROI)The estimated return on investment that's based on the recommended Savings Plan that you purchased.RecommendationDetailData.BuilderestimatedSavingsAmount(String estimatedSavingsAmount)The estimated savings amount that's based on the recommended Savings Plan over the length of the lookback period.RecommendationDetailData.BuilderestimatedSavingsPercentage(String estimatedSavingsPercentage)The estimated savings percentage relative to the total cost of applicable On-Demand usage over the lookback period.RecommendationDetailData.BuilderestimatedSPCost(String estimatedSPCost)The cost of the recommended Savings Plan over the length of the lookback period.RecommendationDetailData.BuilderexistingHourlyCommitment(String existingHourlyCommitment)The existing hourly commitment for the Savings Plan type.RecommendationDetailData.BuildergenerationTimestamp(String generationTimestamp)Sets the value of the GenerationTimestamp property for this object.RecommendationDetailData.BuilderhourlyCommitmentToPurchase(String hourlyCommitmentToPurchase)The recommended hourly commitment level for the Savings Plan type and the configuration that's based on the usage during the lookback period.RecommendationDetailData.BuilderinstanceFamily(String instanceFamily)The instance family of the recommended Savings Plan.RecommendationDetailData.BuilderlatestUsageTimestamp(String latestUsageTimestamp)Sets the value of the LatestUsageTimestamp property for this object.RecommendationDetailData.BuilderlookbackPeriodInDays(String lookbackPeriodInDays)How many days of previous usage that Amazon Web Services considers when making this recommendation.RecommendationDetailData.BuilderlookbackPeriodInDays(LookbackPeriodInDays lookbackPeriodInDays)How many days of previous usage that Amazon Web Services considers when making this recommendation.RecommendationDetailData.BuildermetricsOverLookbackPeriod(Collection<RecommendationDetailHourlyMetrics> metricsOverLookbackPeriod)The related hourly cost, coverage, and utilization metrics over the lookback period.RecommendationDetailData.BuildermetricsOverLookbackPeriod(Consumer<RecommendationDetailHourlyMetrics.Builder>... metricsOverLookbackPeriod)The related hourly cost, coverage, and utilization metrics over the lookback period.RecommendationDetailData.BuildermetricsOverLookbackPeriod(RecommendationDetailHourlyMetrics... metricsOverLookbackPeriod)The related hourly cost, coverage, and utilization metrics over the lookback period.RecommendationDetailData.BuilderofferingId(String offeringId)The unique ID that's used to distinguish Savings Plans from one another.RecommendationDetailData.BuilderpaymentOption(String paymentOption)The payment option for the commitment (for example, All Upfront or No Upfront).RecommendationDetailData.BuilderpaymentOption(PaymentOption paymentOption)The payment option for the commitment (for example, All Upfront or No Upfront).RecommendationDetailData.Builderregion(String region)The region the recommendation is generated for.RecommendationDetailData.BuildersavingsPlansType(String savingsPlansType)The requested Savings Plan recommendation type.RecommendationDetailData.BuildersavingsPlansType(SupportedSavingsPlansType savingsPlansType)The requested Savings Plan recommendation type.RecommendationDetailData.BuildertermInYears(String termInYears)The term of the commitment in years.RecommendationDetailData.BuildertermInYears(TermInYears termInYears)The term of the commitment in years.RecommendationDetailData.BuilderupfrontCost(String upfrontCost)The upfront cost of the recommended 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, sdkFields
-
-
-
-
Method Detail
-
accountScope
RecommendationDetailData.Builder accountScope(String accountScope)
The account scope that you want your recommendations for. Amazon Web Services calculates recommendations including the management account and member accounts if the value is set to PAYER. If the value is LINKED, recommendations are calculated for individual member accounts only.
- Parameters:
accountScope- The account scope that you want your recommendations for. Amazon Web Services calculates recommendations including the management account and member accounts if the value is set to PAYER. If the value is LINKED, recommendations are calculated for individual member accounts only.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AccountScope,AccountScope
-
accountScope
RecommendationDetailData.Builder accountScope(AccountScope accountScope)
The account scope that you want your recommendations for. Amazon Web Services calculates recommendations including the management account and member accounts if the value is set to PAYER. If the value is LINKED, recommendations are calculated for individual member accounts only.
- Parameters:
accountScope- The account scope that you want your recommendations for. Amazon Web Services calculates recommendations including the management account and member accounts if the value is set to PAYER. If the value is LINKED, recommendations are calculated for individual member accounts only.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AccountScope,AccountScope
-
lookbackPeriodInDays
RecommendationDetailData.Builder lookbackPeriodInDays(String lookbackPeriodInDays)
How many days of previous usage that Amazon Web Services considers when making this recommendation.
- Parameters:
lookbackPeriodInDays- How many days of previous usage that Amazon Web Services considers when making this recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
LookbackPeriodInDays,LookbackPeriodInDays
-
lookbackPeriodInDays
RecommendationDetailData.Builder lookbackPeriodInDays(LookbackPeriodInDays lookbackPeriodInDays)
How many days of previous usage that Amazon Web Services considers when making this recommendation.
- Parameters:
lookbackPeriodInDays- How many days of previous usage that Amazon Web Services considers when making this recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
LookbackPeriodInDays,LookbackPeriodInDays
-
savingsPlansType
RecommendationDetailData.Builder savingsPlansType(String savingsPlansType)
The requested Savings Plan recommendation type.
- Parameters:
savingsPlansType- The requested Savings Plan recommendation type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SupportedSavingsPlansType,SupportedSavingsPlansType
-
savingsPlansType
RecommendationDetailData.Builder savingsPlansType(SupportedSavingsPlansType savingsPlansType)
The requested Savings Plan recommendation type.
- Parameters:
savingsPlansType- The requested Savings Plan recommendation type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SupportedSavingsPlansType,SupportedSavingsPlansType
-
termInYears
RecommendationDetailData.Builder termInYears(String termInYears)
The term of the commitment in years.
- Parameters:
termInYears- The term of the commitment in years.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TermInYears,TermInYears
-
termInYears
RecommendationDetailData.Builder termInYears(TermInYears termInYears)
The term of the commitment in years.
- Parameters:
termInYears- The term of the commitment in years.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TermInYears,TermInYears
-
paymentOption
RecommendationDetailData.Builder paymentOption(String paymentOption)
The payment option for the commitment (for example, All Upfront or No Upfront).
- Parameters:
paymentOption- The payment option for the commitment (for example, All Upfront or No Upfront).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PaymentOption,PaymentOption
-
paymentOption
RecommendationDetailData.Builder paymentOption(PaymentOption paymentOption)
The payment option for the commitment (for example, All Upfront or No Upfront).
- Parameters:
paymentOption- The payment option for the commitment (for example, All Upfront or No Upfront).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PaymentOption,PaymentOption
-
accountId
RecommendationDetailData.Builder accountId(String accountId)
The AccountID that the recommendation is generated for.
- Parameters:
accountId- The AccountID that the recommendation is generated for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currencyCode
RecommendationDetailData.Builder currencyCode(String currencyCode)
The currency code that Amazon Web Services used to generate the recommendation and present potential savings.
- Parameters:
currencyCode- The currency code that Amazon Web Services used to generate the recommendation and present potential savings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceFamily
RecommendationDetailData.Builder instanceFamily(String instanceFamily)
The instance family of the recommended Savings Plan.
- Parameters:
instanceFamily- The instance family of the recommended Savings Plan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
region
RecommendationDetailData.Builder region(String region)
The region the recommendation is generated for.
- Parameters:
region- The region the recommendation is generated for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
offeringId
RecommendationDetailData.Builder offeringId(String offeringId)
The unique ID that's used to distinguish Savings Plans from one another.
- Parameters:
offeringId- The unique ID that's used to distinguish Savings Plans from one another.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
generationTimestamp
RecommendationDetailData.Builder generationTimestamp(String generationTimestamp)
Sets the value of the GenerationTimestamp property for this object.- Parameters:
generationTimestamp- The new value for the GenerationTimestamp property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
latestUsageTimestamp
RecommendationDetailData.Builder latestUsageTimestamp(String latestUsageTimestamp)
Sets the value of the LatestUsageTimestamp property for this object.- Parameters:
latestUsageTimestamp- The new value for the LatestUsageTimestamp property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currentAverageHourlyOnDemandSpend
RecommendationDetailData.Builder currentAverageHourlyOnDemandSpend(String currentAverageHourlyOnDemandSpend)
The average value of hourly On-Demand spend over the lookback period of the applicable usage type.
- Parameters:
currentAverageHourlyOnDemandSpend- The average value of hourly On-Demand spend over the lookback period of the applicable usage type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currentMaximumHourlyOnDemandSpend
RecommendationDetailData.Builder currentMaximumHourlyOnDemandSpend(String currentMaximumHourlyOnDemandSpend)
The highest value of hourly On-Demand spend over the lookback period of the applicable usage type.
- Parameters:
currentMaximumHourlyOnDemandSpend- The highest value of hourly On-Demand spend over the lookback period of the applicable usage type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currentMinimumHourlyOnDemandSpend
RecommendationDetailData.Builder currentMinimumHourlyOnDemandSpend(String currentMinimumHourlyOnDemandSpend)
The lowest value of hourly On-Demand spend over the lookback period of the applicable usage type.
- Parameters:
currentMinimumHourlyOnDemandSpend- The lowest value of hourly On-Demand spend over the lookback period of the applicable usage type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
estimatedAverageUtilization
RecommendationDetailData.Builder estimatedAverageUtilization(String estimatedAverageUtilization)
The estimated utilization of the recommended Savings Plan.
- Parameters:
estimatedAverageUtilization- The estimated utilization of the recommended Savings Plan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
estimatedMonthlySavingsAmount
RecommendationDetailData.Builder estimatedMonthlySavingsAmount(String estimatedMonthlySavingsAmount)
The estimated monthly savings amount based on the recommended Savings Plan.
- Parameters:
estimatedMonthlySavingsAmount- The estimated monthly savings amount based on the recommended Savings Plan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
estimatedOnDemandCost
RecommendationDetailData.Builder estimatedOnDemandCost(String estimatedOnDemandCost)
The remaining On-Demand cost estimated to not be covered by the recommended Savings Plan, over the length of the lookback period.
- Parameters:
estimatedOnDemandCost- The remaining On-Demand cost estimated to not be covered by the recommended 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
RecommendationDetailData.Builder estimatedOnDemandCostWithCurrentCommitment(String estimatedOnDemandCostWithCurrentCommitment)
The estimated On-Demand costs 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 costs 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
RecommendationDetailData.Builder estimatedROI(String estimatedROI)
The estimated return on investment that's based on the recommended Savings Plan that you purchased. This is calculated as estimatedSavingsAmount/estimatedSPCost*100.
- Parameters:
estimatedROI- The estimated return on investment that's based on the recommended Savings Plan that you purchased. This is calculated as estimatedSavingsAmount/estimatedSPCost*100.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
estimatedSPCost
RecommendationDetailData.Builder estimatedSPCost(String estimatedSPCost)
The cost of the recommended Savings Plan over the length of the lookback period.
- Parameters:
estimatedSPCost- The cost of the recommended Savings Plan over the length of the lookback period.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
estimatedSavingsAmount
RecommendationDetailData.Builder estimatedSavingsAmount(String estimatedSavingsAmount)
The estimated savings amount that's based on the recommended Savings Plan over the length of the lookback period.
- Parameters:
estimatedSavingsAmount- The estimated savings amount that's based on the recommended 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
RecommendationDetailData.Builder estimatedSavingsPercentage(String estimatedSavingsPercentage)
The estimated savings percentage relative to the total cost of applicable On-Demand usage over the lookback period.
- Parameters:
estimatedSavingsPercentage- The estimated savings percentage relative to the total cost of applicable On-Demand usage over the lookback period.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
existingHourlyCommitment
RecommendationDetailData.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
RecommendationDetailData.Builder hourlyCommitmentToPurchase(String hourlyCommitmentToPurchase)
The recommended hourly commitment level for the Savings Plan type and the configuration that's based on the usage during the lookback period.
- Parameters:
hourlyCommitmentToPurchase- The recommended hourly commitment level for the Savings Plan type and the configuration that's based on the usage during the lookback period.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
upfrontCost
RecommendationDetailData.Builder upfrontCost(String upfrontCost)
The upfront cost of the recommended Savings Plan, based on the selected payment option.
- Parameters:
upfrontCost- The upfront cost of the recommended Savings Plan, based on the selected payment option.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currentAverageCoverage
RecommendationDetailData.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.
-
estimatedAverageCoverage
RecommendationDetailData.Builder estimatedAverageCoverage(String estimatedAverageCoverage)
The estimated coverage of the recommended Savings Plan.
- Parameters:
estimatedAverageCoverage- The estimated coverage of the recommended Savings Plan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricsOverLookbackPeriod
RecommendationDetailData.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
RecommendationDetailData.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
RecommendationDetailData.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.Builderavoiding the need to create one manually viaRecommendationDetailHourlyMetrics.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#metricsOverLookbackPeriod(List.) - 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:
#metricsOverLookbackPeriod(java.util.Collection)
-
-