@Generated(value="software.amazon.awssdk:codegen") public final class GetSavingsPlansPurchaseRecommendationRequest extends CostExplorerRequest implements ToCopyableBuilder<GetSavingsPlansPurchaseRecommendationRequest.Builder,GetSavingsPlansPurchaseRecommendationRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
GetSavingsPlansPurchaseRecommendationRequest.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 GetSavingsPlansPurchaseRecommendationRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Expression |
filter()
You can filter your recommendations by Account ID with the
LINKED_ACCOUNT dimension. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
LookbackPeriodInDays |
lookbackPeriodInDays()
The lookback period used to generate the recommendation.
|
String |
lookbackPeriodInDaysAsString()
The lookback period used to generate the recommendation.
|
String |
nextPageToken()
The token to retrieve the next set of results.
|
Integer |
pageSize()
The number of recommendations that you want returned in a single response object.
|
PaymentOption |
paymentOption()
The payment option used to generate these recommendations.
|
String |
paymentOptionAsString()
The payment option used to generate these recommendations.
|
SupportedSavingsPlansType |
savingsPlansType()
The Savings Plans recommendation type requested.
|
String |
savingsPlansTypeAsString()
The Savings Plans recommendation type requested.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends GetSavingsPlansPurchaseRecommendationRequest.Builder> |
serializableBuilderClass() |
TermInYears |
termInYears()
The savings plan recommendation term used to generate these recommendations.
|
String |
termInYearsAsString()
The savings plan recommendation term used to generate these recommendations.
|
GetSavingsPlansPurchaseRecommendationRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final SupportedSavingsPlansType savingsPlansType()
The Savings Plans recommendation type requested.
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 Savings Plans recommendation type requested.
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 plan recommendation term used to generate these recommendations.
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 plan recommendation term used to generate these recommendations.
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 these recommendations.
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 these recommendations.
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 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 String nextPageToken()
The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.
public final Integer pageSize()
The number of recommendations that you want returned in a single response object.
public final LookbackPeriodInDays lookbackPeriodInDays()
The lookback period 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 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 Expression filter()
You can filter your recommendations by Account ID with the LINKED_ACCOUNT dimension. To filter your
recommendations by Account ID, specify Key as LINKED_ACCOUNT and Value as
the comma-separated Acount ID(s) for which you want to see Savings Plans purchase recommendations.
For GetSavingsPlansPurchaseRecommendation, the Filter does not include CostCategories
or Tags. It only includes Dimensions. With Dimensions, Key
must be LINKED_ACCOUNT and Value can be a single Account ID or multiple comma-separated
Account IDs for which you want to see Savings Plans Purchase Recommendations. AND and
OR operators are not supported.
LINKED_ACCOUNT dimension. To
filter your recommendations by Account ID, specify Key as LINKED_ACCOUNT and
Value as the comma-separated Acount ID(s) for which you want to see Savings Plans purchase
recommendations.
For GetSavingsPlansPurchaseRecommendation, the Filter does not include
CostCategories or Tags. It only includes Dimensions. With
Dimensions, Key must be LINKED_ACCOUNT and Value can
be a single Account ID or multiple comma-separated Account IDs for which you want to see Savings Plans
Purchase Recommendations. AND and OR operators are not supported.
public GetSavingsPlansPurchaseRecommendationRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<GetSavingsPlansPurchaseRecommendationRequest.Builder,GetSavingsPlansPurchaseRecommendationRequest>toBuilder in class CostExplorerRequestpublic static GetSavingsPlansPurchaseRecommendationRequest.Builder builder()
public static Class<? extends GetSavingsPlansPurchaseRecommendationRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2021. All rights reserved.