Interface GetSavingsPlansPurchaseRecommendationRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<GetSavingsPlansPurchaseRecommendationRequest.Builder,,GetSavingsPlansPurchaseRecommendationRequest> CostExplorerRequest.Builder,SdkBuilder<GetSavingsPlansPurchaseRecommendationRequest.Builder,,GetSavingsPlansPurchaseRecommendationRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
GetSavingsPlansPurchaseRecommendationRequest
-
Method Summary
Modifier and TypeMethodDescriptionaccountScope(String accountScope) The account scope that you want your recommendations for.accountScope(AccountScope accountScope) The account scope that you want your recommendations for.filter(Consumer<Expression.Builder> filter) You can filter your recommendations by Account ID with theLINKED_ACCOUNTdimension.filter(Expression filter) You can filter your recommendations by Account ID with theLINKED_ACCOUNTdimension.lookbackPeriodInDays(String lookbackPeriodInDays) The lookback period that's used to generate the recommendation.lookbackPeriodInDays(LookbackPeriodInDays lookbackPeriodInDays) The lookback period that's used to generate the recommendation.nextPageToken(String nextPageToken) The token to retrieve the next set of results.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The number of recommendations that you want returned in a single response object.paymentOption(String paymentOption) The payment option that's used to generate these recommendations.paymentOption(PaymentOption paymentOption) The payment option that's used to generate these recommendations.savingsPlansType(String savingsPlansType) The Savings Plans recommendation type that's requested.savingsPlansType(SupportedSavingsPlansType savingsPlansType) The Savings Plans recommendation type that's requested.termInYears(String termInYears) The savings plan recommendation term that's used to generate these recommendations.termInYears(TermInYears termInYears) The savings plan recommendation term that's used to generate these recommendations.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.costexplorer.model.CostExplorerRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
savingsPlansType
The Savings Plans recommendation type that's requested.
- Parameters:
savingsPlansType- The Savings Plans recommendation type that's requested.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
savingsPlansType
GetSavingsPlansPurchaseRecommendationRequest.Builder savingsPlansType(SupportedSavingsPlansType savingsPlansType) The Savings Plans recommendation type that's requested.
- Parameters:
savingsPlansType- The Savings Plans recommendation type that's requested.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
termInYears
The savings plan recommendation term that's used to generate these recommendations.
- Parameters:
termInYears- The savings plan recommendation term that's used to generate these recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
termInYears
The savings plan recommendation term that's used to generate these recommendations.
- Parameters:
termInYears- The savings plan recommendation term that's used to generate these recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
paymentOption
The payment option that's used to generate these recommendations.
- Parameters:
paymentOption- The payment option that's used to generate these recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
paymentOption
The payment option that's used to generate these recommendations.
- Parameters:
paymentOption- The payment option that's used to generate these recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.- Parameters:
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 toPAYER. If the value isLINKED, recommendations are calculated for individual member accounts only.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.- Parameters:
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 toPAYER. If the value isLINKED, recommendations are calculated for individual member accounts only.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
pageSize
The number of recommendations that you want returned in a single response object.
- Parameters:
pageSize- The number of recommendations that you want returned in a single response object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lookbackPeriodInDays
GetSavingsPlansPurchaseRecommendationRequest.Builder lookbackPeriodInDays(String lookbackPeriodInDays) The lookback period that's used to generate the recommendation.
- Parameters:
lookbackPeriodInDays- The lookback period that's used to generate the recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lookbackPeriodInDays
GetSavingsPlansPurchaseRecommendationRequest.Builder lookbackPeriodInDays(LookbackPeriodInDays lookbackPeriodInDays) The lookback period that's used to generate the recommendation.
- Parameters:
lookbackPeriodInDays- The lookback period that's used to generate the recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.- Parameters:
filter- You can filter your recommendations by Account ID with theLINKED_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:
- Returns a reference to this object so that method calls can be chained together.
-
filter
default GetSavingsPlansPurchaseRecommendationRequest.Builder filter(Consumer<Expression.Builder> 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
This is a convenience method that creates an instance of theFilterdoesn'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.Expression.Builderavoiding the need to create one manually viaExpression.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofilter(Expression).- Parameters:
filter- a consumer that will call methods onExpression.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
GetSavingsPlansPurchaseRecommendationRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
GetSavingsPlansPurchaseRecommendationRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-