Class SavingsPlansPurchaseAnalysisDetails
- java.lang.Object
-
- software.amazon.awssdk.services.costexplorer.model.SavingsPlansPurchaseAnalysisDetails
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SavingsPlansPurchaseAnalysisDetails.Builder,SavingsPlansPurchaseAnalysisDetails>
@Generated("software.amazon.awssdk:codegen") public final class SavingsPlansPurchaseAnalysisDetails extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SavingsPlansPurchaseAnalysisDetails.Builder,SavingsPlansPurchaseAnalysisDetails>
Details about the Savings Plans purchase analysis.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSavingsPlansPurchaseAnalysisDetails.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringadditionalMetadata()Additional metadata that might be applicable to the commitment.static SavingsPlansPurchaseAnalysisDetails.Builderbuilder()StringcurrencyCode()The currency code used for the analysis.StringcurrentAverageCoverage()The average value of hourly coverage over the lookback period.StringcurrentAverageHourlyOnDemandSpend()The average value of hourly On-Demand spend over the lookback period.StringcurrentMaximumHourlyOnDemandSpend()The highest value of hourly On-Demand spend over the lookback period.StringcurrentMinimumHourlyOnDemandSpend()The lowest value of hourly On-Demand spend over the lookback period.StringcurrentOnDemandSpend()The current total On-Demand spend over the lookback period.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringestimatedAverageCoverage()The estimated coverage of the Savings Plan.StringestimatedAverageUtilization()The estimated utilization of the Savings Plan.StringestimatedCommitmentCost()The estimated cost of the Savings Plan over the length of the lookback period.StringestimatedMonthlySavingsAmount()The estimated monthly savings amount based on the Savings Plan.StringestimatedOnDemandCost()The remaining On-Demand cost estimated to not be covered by the Savings Plan over the length of the lookback period.StringestimatedOnDemandCostWithCurrentCommitment()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.StringestimatedROI()The estimated return on investment that's based on the Savings Plan and estimated savings.StringestimatedSavingsAmount()The estimated savings amount that's based on the Savings Plan over the length of the lookback period.StringestimatedSavingsPercentage()The estimated savings percentage relative to the total cost over the cost calculation lookback period.StringexistingHourlyCommitment()The existing hourly commitment for the Savings Plan type.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasMetricsOverLookbackPeriod()For responses, this returns true if the service returned a value for the MetricsOverLookbackPeriod property.StringhourlyCommitmentToPurchase()The recommended or custom hourly commitment.StringlatestUsageTimestamp()The date and time of the last hour that went into the analysis.StringlookbackPeriodInHours()The lookback period in hours that's used to generate the analysis.List<RecommendationDetailHourlyMetrics>metricsOverLookbackPeriod()The related hourly cost, coverage, and utilization metrics over the lookback period.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends SavingsPlansPurchaseAnalysisDetails.Builder>serializableBuilderClass()SavingsPlansPurchaseAnalysisDetails.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringupfrontCost()The upfront cost of the Savings Plan based on the selected payment option.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
currencyCode
public final String currencyCode()
The currency code used for the analysis.
- Returns:
- The currency code used for the analysis.
-
lookbackPeriodInHours
public final String lookbackPeriodInHours()
The lookback period in hours that's used to generate the analysis.
- Returns:
- The lookback period in hours that's used to generate the analysis.
-
currentAverageCoverage
public final String currentAverageCoverage()
The average value of hourly coverage over the lookback period.
- Returns:
- The average value of hourly coverage over the lookback period.
-
currentAverageHourlyOnDemandSpend
public final String currentAverageHourlyOnDemandSpend()
The average value of hourly On-Demand spend over the lookback period.
- Returns:
- The average value of hourly On-Demand spend over the lookback period.
-
currentMaximumHourlyOnDemandSpend
public final String currentMaximumHourlyOnDemandSpend()
The highest value of hourly On-Demand spend over the lookback period.
- Returns:
- The highest value of hourly On-Demand spend over the lookback period.
-
currentMinimumHourlyOnDemandSpend
public final String currentMinimumHourlyOnDemandSpend()
The lowest value of hourly On-Demand spend over the lookback period.
- Returns:
- The lowest value of hourly On-Demand spend over the lookback period.
-
currentOnDemandSpend
public final String currentOnDemandSpend()
The current total On-Demand spend over the lookback period.
- Returns:
- The current total On-Demand spend over the lookback period.
-
existingHourlyCommitment
public final String existingHourlyCommitment()
The existing hourly commitment for the Savings Plan type.
- Returns:
- The existing hourly commitment for the Savings Plan type.
-
hourlyCommitmentToPurchase
public final String hourlyCommitmentToPurchase()
The recommended or custom hourly commitment.
- Returns:
- The recommended or custom hourly commitment.
-
estimatedAverageCoverage
public final String estimatedAverageCoverage()
The estimated coverage of the Savings Plan.
- Returns:
- The estimated coverage of the Savings Plan.
-
estimatedAverageUtilization
public final String estimatedAverageUtilization()
The estimated utilization of the Savings Plan.
- Returns:
- The estimated utilization of the Savings Plan.
-
estimatedMonthlySavingsAmount
public final String estimatedMonthlySavingsAmount()
The estimated monthly savings amount based on the Savings Plan.
- Returns:
- The estimated monthly savings amount based on the Savings Plan.
-
estimatedOnDemandCost
public final String estimatedOnDemandCost()
The remaining On-Demand cost estimated to not be covered by the Savings Plan over the length of the lookback period.
- Returns:
- The remaining On-Demand cost estimated to not be covered by the Savings Plan over the length of the lookback period.
-
estimatedOnDemandCostWithCurrentCommitment
public final 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.
- Returns:
- 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
public final String estimatedROI()
The estimated return on investment that's based on the Savings Plan and estimated savings. This is calculated as estimatedSavingsAmount/estimatedSPCost*100.
- Returns:
- The estimated return on investment that's based on the Savings Plan and estimated savings. This is calculated as estimatedSavingsAmount/estimatedSPCost*100.
-
estimatedSavingsAmount
public final String estimatedSavingsAmount()
The estimated savings amount that's based on the Savings Plan over the length of the lookback period.
- Returns:
- The estimated savings amount that's based on the Savings Plan over the length of the lookback period.
-
estimatedSavingsPercentage
public final String estimatedSavingsPercentage()
The estimated savings percentage relative to the total cost over the cost calculation lookback period.
- Returns:
- The estimated savings percentage relative to the total cost over the cost calculation lookback period.
-
estimatedCommitmentCost
public final String estimatedCommitmentCost()
The estimated cost of the Savings Plan over the length of the lookback period.
- Returns:
- The estimated cost of the Savings Plan over the length of the lookback period.
-
latestUsageTimestamp
public final String latestUsageTimestamp()
The date and time of the last hour that went into the analysis.
- Returns:
- The date and time of the last hour that went into the analysis.
-
upfrontCost
public final String upfrontCost()
The upfront cost of the Savings Plan based on the selected payment option.
- Returns:
- The upfront cost of the Savings Plan based on the selected payment option.
-
additionalMetadata
public final String additionalMetadata()
Additional metadata that might be applicable to the commitment.
- Returns:
- Additional metadata that might be applicable to the commitment.
-
hasMetricsOverLookbackPeriod
public final boolean hasMetricsOverLookbackPeriod()
For responses, this returns true if the service returned a value for the MetricsOverLookbackPeriod property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
metricsOverLookbackPeriod
public final List<RecommendationDetailHourlyMetrics> metricsOverLookbackPeriod()
The related hourly cost, coverage, and utilization metrics over the lookback period.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasMetricsOverLookbackPeriod()method.- Returns:
- The related hourly cost, coverage, and utilization metrics over the lookback period.
-
toBuilder
public SavingsPlansPurchaseAnalysisDetails.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SavingsPlansPurchaseAnalysisDetails.Builder,SavingsPlansPurchaseAnalysisDetails>
-
builder
public static SavingsPlansPurchaseAnalysisDetails.Builder builder()
-
serializableBuilderClass
public static Class<? extends SavingsPlansPurchaseAnalysisDetails.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-