Class SavingsPlansPurchaseAnalysisDetails
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<SavingsPlansPurchaseAnalysisDetails.Builder,
SavingsPlansPurchaseAnalysisDetails>
Details about the Savings Plans purchase analysis.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal String
Additional metadata that might be applicable to the commitment.builder()
final String
The currency code used for the analysis.final String
The average value of hourly coverage over the lookback period.final String
The average value of hourly On-Demand spend over the lookback period.final String
The highest value of hourly On-Demand spend over the lookback period.final String
The lowest value of hourly On-Demand spend over the lookback period.final String
The current total On-Demand spend over the lookback period.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final String
The estimated coverage of the Savings Plan.final String
The estimated utilization of the Savings Plan.final String
The estimated cost of the Savings Plan over the length of the lookback period.final String
The estimated monthly savings amount based on the Savings Plan.final String
The remaining On-Demand cost estimated to not be covered by the Savings Plan over the length of the lookback period.final String
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.final String
The estimated return on investment that's based on the Savings Plan and estimated savings.final String
The estimated savings amount that's based on the Savings Plan over the length of the lookback period.final String
The estimated savings percentage relative to the total cost over the cost calculation lookback period.final String
The existing hourly commitment for the Savings Plan type.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final boolean
For responses, this returns true if the service returned a value for the MetricsOverLookbackPeriod property.final String
The recommended or custom hourly commitment.final String
The date and time of the last hour that went into the analysis.final String
The lookback period in hours that's used to generate the analysis.The related hourly cost, coverage, and utilization metrics over the lookback period.static Class
<? extends SavingsPlansPurchaseAnalysisDetails.Builder> Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final String
The upfront cost of the Savings Plan based on the selected payment option.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
currencyCode
The currency code used for the analysis.
- Returns:
- The currency code used for the analysis.
-
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
The average value of hourly coverage over the lookback period.
- Returns:
- The average value of hourly coverage over the lookback period.
-
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
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
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
The current total On-Demand spend over the lookback period.
- Returns:
- The current total On-Demand spend over the lookback period.
-
existingHourlyCommitment
The existing hourly commitment for the Savings Plan type.
- Returns:
- The existing hourly commitment for the Savings Plan type.
-
hourlyCommitmentToPurchase
The recommended or custom hourly commitment.
- Returns:
- The recommended or custom hourly commitment.
-
estimatedAverageCoverage
The estimated coverage of the Savings Plan.
- Returns:
- The estimated coverage of the Savings Plan.
-
estimatedAverageUtilization
The estimated utilization of the Savings Plan.
- Returns:
- The estimated utilization of the Savings Plan.
-
estimatedMonthlySavingsAmount
The estimated monthly savings amount based on the Savings Plan.
- Returns:
- The estimated monthly savings amount based on the Savings Plan.
-
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
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
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
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
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
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
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
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
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
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
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<SavingsPlansPurchaseAnalysisDetails.Builder,
SavingsPlansPurchaseAnalysisDetails> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
public static Class<? extends SavingsPlansPurchaseAnalysisDetails.Builder> serializableBuilderClass() -
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
-