Class GetSavingsPlansPurchaseRecommendationRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.costexplorer.model.CostExplorerRequest
-
- software.amazon.awssdk.services.costexplorer.model.GetSavingsPlansPurchaseRecommendationRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<GetSavingsPlansPurchaseRecommendationRequest.Builder,GetSavingsPlansPurchaseRecommendationRequest>
@Generated("software.amazon.awssdk:codegen") public final class GetSavingsPlansPurchaseRecommendationRequest extends CostExplorerRequest implements ToCopyableBuilder<GetSavingsPlansPurchaseRecommendationRequest.Builder,GetSavingsPlansPurchaseRecommendationRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGetSavingsPlansPurchaseRecommendationRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AccountScopeaccountScope()The account scope that you want your recommendations for.StringaccountScopeAsString()The account scope that you want your recommendations for.static GetSavingsPlansPurchaseRecommendationRequest.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)Expressionfilter()You can filter your recommendations by Account ID with theLINKED_ACCOUNTdimension.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()LookbackPeriodInDayslookbackPeriodInDays()The lookback period that's used to generate the recommendation.StringlookbackPeriodInDaysAsString()The lookback period that's used to generate the recommendation.StringnextPageToken()The token to retrieve the next set of results.IntegerpageSize()The number of recommendations that you want returned in a single response object.PaymentOptionpaymentOption()The payment option that's used to generate these recommendations.StringpaymentOptionAsString()The payment option that's used to generate these recommendations.SupportedSavingsPlansTypesavingsPlansType()The Savings Plans recommendation type that's requested.StringsavingsPlansTypeAsString()The Savings Plans recommendation type that's requested.List<SdkField<?>>sdkFields()static Class<? extends GetSavingsPlansPurchaseRecommendationRequest.Builder>serializableBuilderClass()TermInYearstermInYears()The savings plan recommendation term that's used to generate these recommendations.StringtermInYearsAsString()The savings plan recommendation term that's used to generate these recommendations.GetSavingsPlansPurchaseRecommendationRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
savingsPlansType
public final SupportedSavingsPlansType savingsPlansType()
The Savings Plans recommendation type that's requested.
If the service returns an enum value that is not available in the current SDK version,
savingsPlansTypewill returnSupportedSavingsPlansType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsavingsPlansTypeAsString().- Returns:
- The Savings Plans recommendation type that's requested.
- See Also:
SupportedSavingsPlansType
-
savingsPlansTypeAsString
public final String savingsPlansTypeAsString()
The Savings Plans recommendation type that's requested.
If the service returns an enum value that is not available in the current SDK version,
savingsPlansTypewill returnSupportedSavingsPlansType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsavingsPlansTypeAsString().- Returns:
- The Savings Plans recommendation type that's requested.
- See Also:
SupportedSavingsPlansType
-
termInYears
public final TermInYears termInYears()
The savings plan recommendation term that's used to generate these recommendations.
If the service returns an enum value that is not available in the current SDK version,
termInYearswill returnTermInYears.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtermInYearsAsString().- Returns:
- The savings plan recommendation term that's used to generate these recommendations.
- See Also:
TermInYears
-
termInYearsAsString
public final String termInYearsAsString()
The savings plan recommendation term that's used to generate these recommendations.
If the service returns an enum value that is not available in the current SDK version,
termInYearswill returnTermInYears.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtermInYearsAsString().- Returns:
- The savings plan recommendation term that's used to generate these recommendations.
- See Also:
TermInYears
-
paymentOption
public final PaymentOption paymentOption()
The payment option that's used to generate these recommendations.
If the service returns an enum value that is not available in the current SDK version,
paymentOptionwill returnPaymentOption.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompaymentOptionAsString().- Returns:
- The payment option that's used to generate these recommendations.
- See Also:
PaymentOption
-
paymentOptionAsString
public final String paymentOptionAsString()
The payment option that's used to generate these recommendations.
If the service returns an enum value that is not available in the current SDK version,
paymentOptionwill returnPaymentOption.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompaymentOptionAsString().- Returns:
- The payment option that's used to generate these recommendations.
- See Also:
PaymentOption
-
accountScope
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 isLINKED, recommendations are calculated for individual member accounts only.If the service returns an enum value that is not available in the current SDK version,
accountScopewill 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 isLINKED, recommendations are calculated for individual member accounts only. - See Also:
AccountScope
-
accountScopeAsString
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 isLINKED, recommendations are calculated for individual member accounts only.If the service returns an enum value that is not available in the current SDK version,
accountScopewill 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 isLINKED, recommendations are calculated for individual member accounts only. - See Also:
AccountScope
-
nextPageToken
public 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.
- Returns:
- 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.
-
pageSize
public final Integer pageSize()
The number of recommendations that you want returned in a single response object.
- Returns:
- The number of recommendations that you want returned in a single response object.
-
lookbackPeriodInDays
public final LookbackPeriodInDays lookbackPeriodInDays()
The lookback period that's used to generate the recommendation.
If the service returns an enum value that is not available in the current SDK version,
lookbackPeriodInDayswill returnLookbackPeriodInDays.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlookbackPeriodInDaysAsString().- Returns:
- The lookback period that's used to generate the recommendation.
- See Also:
LookbackPeriodInDays
-
lookbackPeriodInDaysAsString
public final String lookbackPeriodInDaysAsString()
The lookback period that's used to generate the recommendation.
If the service returns an enum value that is not available in the current SDK version,
lookbackPeriodInDayswill returnLookbackPeriodInDays.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlookbackPeriodInDaysAsString().- Returns:
- The lookback period that's used to generate the recommendation.
- See Also:
LookbackPeriodInDays
-
filter
public final Expression filter()
You can filter your recommendations by Account ID with the
LINKED_ACCOUNTdimension. To filter your recommendations by Account ID, specifyKeyasLINKED_ACCOUNTandValueas the comma-separated Acount ID(s) that you want to see Savings Plans purchase recommendations for.For GetSavingsPlansPurchaseRecommendation, the
Filterdoesn't includeCostCategoriesorTags. It only includesDimensions. WithDimensions,Keymust beLINKED_ACCOUNTandValuecan be a single Account ID or multiple comma-separated Account IDs that you want to see Savings Plans Purchase Recommendations for.ANDandORoperators are not supported.- Returns:
- You can filter your recommendations by Account ID with the
LINKED_ACCOUNTdimension. To filter your recommendations by Account ID, specifyKeyasLINKED_ACCOUNTandValueas the comma-separated Acount ID(s) that you want to see Savings Plans purchase recommendations for.For GetSavingsPlansPurchaseRecommendation, the
Filterdoesn't includeCostCategoriesorTags. It only includesDimensions. WithDimensions,Keymust beLINKED_ACCOUNTandValuecan be a single Account ID or multiple comma-separated Account IDs that you want to see Savings Plans Purchase Recommendations for.ANDandORoperators are not supported.
-
toBuilder
public GetSavingsPlansPurchaseRecommendationRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<GetSavingsPlansPurchaseRecommendationRequest.Builder,GetSavingsPlansPurchaseRecommendationRequest>- Specified by:
toBuilderin classCostExplorerRequest
-
builder
public static GetSavingsPlansPurchaseRecommendationRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends GetSavingsPlansPurchaseRecommendationRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String 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
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-