@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()
Returns true if the SavingsPlansPurchaseRecommendationDetails property was specified by the sender (it may be
empty), or false if the sender did not specify the value (it will be empty).
|
LookbackPeriodInDays |
lookbackPeriodInDays()
The lookback period in days, used to generate the recommendation.
|
String |
lookbackPeriodInDaysAsString()
The lookback period in days, used to generate the recommendation.
|
PaymentOption |
paymentOption()
The payment option used to generate the recommendation.
|
String |
paymentOptionAsString()
The payment option used to generate the recommendation.
|
List<SavingsPlansPurchaseRecommendationDetail> |
savingsPlansPurchaseRecommendationDetails()
Details for the Savings Plans 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, used to generate the recommendation.
|
String |
termInYearsAsString()
The Savings Plans recommendation term in years, used to generate the recommendation.
|
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
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
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
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
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, 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, 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 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 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, 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, 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()
public final List<SavingsPlansPurchaseRecommendationDetail> savingsPlansPurchaseRecommendationDetails()
Details for the Savings Plans 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.
You can use hasSavingsPlansPurchaseRecommendationDetails() to see if a value was sent in this field.
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 © 2021. All rights reserved.