@Generated(value="software.amazon.awssdk:codegen") public final class SavingsPlansPurchaseRecommendation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SavingsPlansPurchaseRecommendation.Builder,SavingsPlansPurchaseRecommendation>
Contains your request parameters, Savings Plan Recommendations Summary, and Details.
| Modifier and Type | Class and Description |
|---|---|
static interface |
SavingsPlansPurchaseRecommendation.Builder |
| Modifier and Type | Method and Description |
|---|---|
AccountScope |
accountScope()
The account scope that you want your recommendations for.
|
String |
accountScopeAsString()
The account scope that you want your recommendations for.
|
static SavingsPlansPurchaseRecommendation.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasSavingsPlansPurchaseRecommendationDetails()
For responses, this returns true if the service returned a value for the
SavingsPlansPurchaseRecommendationDetails property.
|
LookbackPeriodInDays |
lookbackPeriodInDays()
The lookback period in days that's used to generate the recommendation.
|
String |
lookbackPeriodInDaysAsString()
The lookback period in days that's used to generate the recommendation.
|
PaymentOption |
paymentOption()
The payment option that's used to generate the recommendation.
|
String |
paymentOptionAsString()
The payment option that's used to generate the recommendation.
|
List<SavingsPlansPurchaseRecommendationDetail> |
savingsPlansPurchaseRecommendationDetails()
Details for the Savings Plans that we recommend that you purchase to cover existing Savings Plans eligible
workloads.
|
SavingsPlansPurchaseRecommendationSummary |
savingsPlansPurchaseRecommendationSummary()
Summary metrics for your Savings Plans Recommendations.
|
SupportedSavingsPlansType |
savingsPlansType()
The requested Savings Plans recommendation type.
|
String |
savingsPlansTypeAsString()
The requested Savings Plans recommendation type.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends SavingsPlansPurchaseRecommendation.Builder> |
serializableBuilderClass() |
TermInYears |
termInYears()
The Savings Plans recommendation term in years.
|
String |
termInYearsAsString()
The Savings Plans recommendation term in years.
|
SavingsPlansPurchaseRecommendation.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final AccountScope accountScope()
The account scope that you want your recommendations for. Amazon Web Services calculates recommendations that
include 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
return AccountScope.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
accountScopeAsString().
PAYER. If the
value is LINKED, recommendations are calculated for individual member accounts only.AccountScopepublic final String accountScopeAsString()
The account scope that you want your recommendations for. Amazon Web Services calculates recommendations that
include 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
return AccountScope.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
accountScopeAsString().
PAYER. If the
value is LINKED, recommendations are calculated for individual member accounts only.AccountScopepublic final SupportedSavingsPlansType savingsPlansType()
The requested Savings Plans recommendation type.
If the service returns an enum value that is not available in the current SDK version, savingsPlansType
will return SupportedSavingsPlansType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from savingsPlansTypeAsString().
SupportedSavingsPlansTypepublic final String savingsPlansTypeAsString()
The requested Savings Plans recommendation type.
If the service returns an enum value that is not available in the current SDK version, savingsPlansType
will return SupportedSavingsPlansType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from savingsPlansTypeAsString().
SupportedSavingsPlansTypepublic final TermInYears termInYears()
The Savings Plans recommendation term in years. It's used to generate the recommendation.
If the service returns an enum value that is not available in the current SDK version, termInYears will
return TermInYears.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
termInYearsAsString().
TermInYearspublic final String termInYearsAsString()
The Savings Plans recommendation term in years. It's used to generate the recommendation.
If the service returns an enum value that is not available in the current SDK version, termInYears will
return TermInYears.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
termInYearsAsString().
TermInYearspublic final PaymentOption paymentOption()
The payment option that's used to generate the recommendation.
If the service returns an enum value that is not available in the current SDK version, paymentOption
will return PaymentOption.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
paymentOptionAsString().
PaymentOptionpublic final String paymentOptionAsString()
The payment option that's used to generate the recommendation.
If the service returns an enum value that is not available in the current SDK version, paymentOption
will return PaymentOption.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
paymentOptionAsString().
PaymentOptionpublic final LookbackPeriodInDays lookbackPeriodInDays()
The lookback period in days that's used to generate the recommendation.
If the service returns an enum value that is not available in the current SDK version,
lookbackPeriodInDays will return LookbackPeriodInDays.UNKNOWN_TO_SDK_VERSION. The raw value
returned by the service is available from lookbackPeriodInDaysAsString().
LookbackPeriodInDayspublic final String lookbackPeriodInDaysAsString()
The lookback period in days that's used to generate the recommendation.
If the service returns an enum value that is not available in the current SDK version,
lookbackPeriodInDays will return LookbackPeriodInDays.UNKNOWN_TO_SDK_VERSION. The raw value
returned by the service is available from lookbackPeriodInDaysAsString().
LookbackPeriodInDayspublic final boolean hasSavingsPlansPurchaseRecommendationDetails()
isEmpty() 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.public final List<SavingsPlansPurchaseRecommendationDetail> savingsPlansPurchaseRecommendationDetails()
Details for the Savings Plans that we recommend that you purchase to cover existing Savings Plans eligible workloads.
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
hasSavingsPlansPurchaseRecommendationDetails() method.
public final SavingsPlansPurchaseRecommendationSummary savingsPlansPurchaseRecommendationSummary()
Summary metrics for your Savings Plans Recommendations.
public SavingsPlansPurchaseRecommendation.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<SavingsPlansPurchaseRecommendation.Builder,SavingsPlansPurchaseRecommendation>public static SavingsPlansPurchaseRecommendation.Builder builder()
public static Class<? extends SavingsPlansPurchaseRecommendation.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.