@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)
Indicates whether some other object is "equal to" this one by SDK fields.
|
<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()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString()
Returns a string representation of this object.
|
copy
public 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.AccountScope
public 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.AccountScope
public 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()
.
SupportedSavingsPlansType
public 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()
.
SupportedSavingsPlansType
public 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()
.
TermInYears
public 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()
.
TermInYears
public 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()
.
PaymentOption
public 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()
.
PaymentOption
public 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()
.
LookbackPeriodInDays
public 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()
.
LookbackPeriodInDays
public 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()
ToCopyableBuilder
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)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()
Copyright © 2021 Amazon Web Services, Inc. All Rights Reserved.