Class RecommendationDetailData
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<RecommendationDetailData.Builder,
RecommendationDetailData>
The details and metrics for the given recommendation.
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal String
The AccountID that the recommendation is generated for.final AccountScope
The account scope that you want your recommendations for.final String
The account scope that you want your recommendations for.builder()
final String
The currency code that Amazon Web Services used to generate the recommendation and present potential savings.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 of the applicable usage type.final String
The highest value of hourly On-Demand spend over the lookback period of the applicable usage type.final String
The lowest value of hourly On-Demand spend over the lookback period of the applicable usage type.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 recommended Savings Plan.final String
The estimated utilization of the recommended Savings Plan.final String
The estimated monthly savings amount based on the recommended Savings Plan.final String
The remaining On-Demand cost estimated to not be covered by the recommended Savings Plan, over the length of the lookback period.final String
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.final String
The estimated return on investment that's based on the recommended Savings Plan that you purchased.final String
The estimated savings amount that's based on the recommended Savings Plan over the length of the lookback period.final String
The estimated savings percentage relative to the total cost of applicable On-Demand usage over the lookback period.final String
The cost of the recommended Savings Plan over the length of the lookback period.final String
The existing hourly commitment for the Savings Plan type.final String
Returns the value of the GenerationTimestamp property for this object.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 hourly commitment level for the Savings Plan type and the configuration that's based on the usage during the lookback period.final String
The instance family of the recommended Savings Plan.final String
Returns the value of the LatestUsageTimestamp property for this object.final LookbackPeriodInDays
How many days of previous usage that Amazon Web Services considers when making this recommendation.final String
How many days of previous usage that Amazon Web Services considers when making this recommendation.The related hourly cost, coverage, and utilization metrics over the lookback period.final String
The unique ID that's used to distinguish Savings Plans from one another.final PaymentOption
The payment option for the commitment (for example, All Upfront or No Upfront).final String
The payment option for the commitment (for example, All Upfront or No Upfront).final String
region()
The region the recommendation is generated for.The requested Savings Plan recommendation type.final String
The requested Savings Plan recommendation type.static Class
<? extends RecommendationDetailData.Builder> final TermInYears
The term of the commitment in years.final String
The term of the commitment in years.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 recommended Savings Plan, based on the selected payment option.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
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.
If the service returns an enum value that is not available in the current SDK version,
accountScope
will returnAccountScope.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromaccountScopeAsString()
.- Returns:
- 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.
- See Also:
-
accountScopeAsString
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.
If the service returns an enum value that is not available in the current SDK version,
accountScope
will returnAccountScope.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromaccountScopeAsString()
.- Returns:
- 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.
- See Also:
-
lookbackPeriodInDays
How many days of previous usage that Amazon Web Services considers when making this recommendation.
If the service returns an enum value that is not available in the current SDK version,
lookbackPeriodInDays
will returnLookbackPeriodInDays.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromlookbackPeriodInDaysAsString()
.- Returns:
- How many days of previous usage that Amazon Web Services considers when making this recommendation.
- See Also:
-
lookbackPeriodInDaysAsString
How many days of previous usage that Amazon Web Services considers when making this recommendation.
If the service returns an enum value that is not available in the current SDK version,
lookbackPeriodInDays
will returnLookbackPeriodInDays.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromlookbackPeriodInDaysAsString()
.- Returns:
- How many days of previous usage that Amazon Web Services considers when making this recommendation.
- See Also:
-
savingsPlansType
The requested Savings Plan recommendation type.
If the service returns an enum value that is not available in the current SDK version,
savingsPlansType
will returnSupportedSavingsPlansType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromsavingsPlansTypeAsString()
.- Returns:
- The requested Savings Plan recommendation type.
- See Also:
-
savingsPlansTypeAsString
The requested Savings Plan recommendation type.
If the service returns an enum value that is not available in the current SDK version,
savingsPlansType
will returnSupportedSavingsPlansType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromsavingsPlansTypeAsString()
.- Returns:
- The requested Savings Plan recommendation type.
- See Also:
-
termInYears
The term of the commitment in years.
If the service returns an enum value that is not available in the current SDK version,
termInYears
will returnTermInYears.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtermInYearsAsString()
.- Returns:
- The term of the commitment in years.
- See Also:
-
termInYearsAsString
The term of the commitment in years.
If the service returns an enum value that is not available in the current SDK version,
termInYears
will returnTermInYears.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtermInYearsAsString()
.- Returns:
- The term of the commitment in years.
- See Also:
-
paymentOption
The payment option for the commitment (for example, All Upfront or No Upfront).
If the service returns an enum value that is not available in the current SDK version,
paymentOption
will returnPaymentOption.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frompaymentOptionAsString()
.- Returns:
- The payment option for the commitment (for example, All Upfront or No Upfront).
- See Also:
-
paymentOptionAsString
The payment option for the commitment (for example, All Upfront or No Upfront).
If the service returns an enum value that is not available in the current SDK version,
paymentOption
will returnPaymentOption.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frompaymentOptionAsString()
.- Returns:
- The payment option for the commitment (for example, All Upfront or No Upfront).
- See Also:
-
accountId
The AccountID that the recommendation is generated for.
- Returns:
- The AccountID that the recommendation is generated for.
-
currencyCode
The currency code that Amazon Web Services used to generate the recommendation and present potential savings.
- Returns:
- The currency code that Amazon Web Services used to generate the recommendation and present potential savings.
-
instanceFamily
The instance family of the recommended Savings Plan.
- Returns:
- The instance family of the recommended Savings Plan.
-
region
The region the recommendation is generated for.
- Returns:
- The region the recommendation is generated for.
-
offeringId
The unique ID that's used to distinguish Savings Plans from one another.
- Returns:
- The unique ID that's used to distinguish Savings Plans from one another.
-
generationTimestamp
Returns the value of the GenerationTimestamp property for this object.- Returns:
- The value of the GenerationTimestamp property for this object.
-
latestUsageTimestamp
Returns the value of the LatestUsageTimestamp property for this object.- Returns:
- The value of the LatestUsageTimestamp property for this object.
-
currentAverageHourlyOnDemandSpend
The average value of hourly On-Demand spend over the lookback period of the applicable usage type.
- Returns:
- The average value of hourly On-Demand spend over the lookback period of the applicable usage type.
-
currentMaximumHourlyOnDemandSpend
The highest value of hourly On-Demand spend over the lookback period of the applicable usage type.
- Returns:
- The highest value of hourly On-Demand spend over the lookback period of the applicable usage type.
-
currentMinimumHourlyOnDemandSpend
The lowest value of hourly On-Demand spend over the lookback period of the applicable usage type.
- Returns:
- The lowest value of hourly On-Demand spend over the lookback period of the applicable usage type.
-
estimatedAverageUtilization
The estimated utilization of the recommended Savings Plan.
- Returns:
- The estimated utilization of the recommended Savings Plan.
-
estimatedMonthlySavingsAmount
The estimated monthly savings amount based on the recommended Savings Plan.
- Returns:
- The estimated monthly savings amount based on the recommended Savings Plan.
-
estimatedOnDemandCost
The remaining On-Demand cost estimated to not be covered by the recommended Savings Plan, over the length of the lookback period.
- Returns:
- The remaining On-Demand cost estimated to not be covered by the recommended Savings Plan, over the length of the lookback period.
-
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:
- 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.
-
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:
- The estimated return on investment that's based on the recommended Savings Plan that you purchased. This is calculated as estimatedSavingsAmount/estimatedSPCost*100.
-
estimatedSPCost
The cost of the recommended Savings Plan over the length of the lookback period.
- Returns:
- The cost of the recommended Savings Plan over the length of the lookback period.
-
estimatedSavingsAmount
The estimated savings amount that's based on the recommended Savings Plan over the length of the lookback period.
- Returns:
- The estimated savings amount that's based on the recommended Savings Plan over the length of the lookback period.
-
estimatedSavingsPercentage
The estimated savings percentage relative to the total cost of applicable On-Demand usage over the lookback period.
- Returns:
- The estimated savings percentage relative to the total cost of applicable On-Demand usage 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 hourly commitment level for the Savings Plan type and the configuration that's based on the usage during the lookback period.
- Returns:
- The recommended hourly commitment level for the Savings Plan type and the configuration that's based on the usage during the lookback period.
-
upfrontCost
The upfront cost of the recommended Savings Plan, based on the selected payment option.
- Returns:
- The upfront cost of the recommended Savings Plan, based on the selected payment option.
-
currentAverageCoverage
The average value of hourly coverage over the lookback period.
- Returns:
- The average value of hourly coverage over the lookback period.
-
estimatedAverageCoverage
The estimated coverage of the recommended Savings Plan.
- Returns:
- The estimated coverage of the recommended Savings Plan.
-
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<RecommendationDetailData.Builder,
RecommendationDetailData> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int 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
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. -
getValueForField
-
sdkFields
-