Interface GetReservationPurchaseRecommendationRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<GetReservationPurchaseRecommendationRequest.Builder,
,GetReservationPurchaseRecommendationRequest> CostExplorerRequest.Builder
,SdkBuilder<GetReservationPurchaseRecommendationRequest.Builder,
,GetReservationPurchaseRecommendationRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
GetReservationPurchaseRecommendationRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe account ID that's associated with the recommendation.accountScope
(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) Sets the value of the Filter property for this object.filter
(Expression filter) Sets the value of the Filter property for this object.lookbackPeriodInDays
(String lookbackPeriodInDays) The number of previous days that you want Amazon Web Services to consider when it calculates your recommendations.lookbackPeriodInDays
(LookbackPeriodInDays lookbackPeriodInDays) The number of previous days that you want Amazon Web Services to consider when it calculates your recommendations.nextPageToken
(String nextPageToken) The pagination token that indicates the next set of results that you want to retrieve.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 reservation purchase option that you want recommendations for.paymentOption
(PaymentOption paymentOption) The reservation purchase option that you want recommendations for.The specific service that you want recommendations for.serviceSpecification
(Consumer<ServiceSpecification.Builder> serviceSpecification) The hardware specifications for the service instances that you want recommendations for, such as standard or convertible Amazon EC2 instances.serviceSpecification
(ServiceSpecification serviceSpecification) The hardware specifications for the service instances that you want recommendations for, such as standard or convertible Amazon EC2 instances.termInYears
(String termInYears) The reservation term that you want recommendations for.termInYears
(TermInYears termInYears) The reservation term that you want recommendations for.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.costexplorer.model.CostExplorerRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
accountId
The account ID that's associated with the recommendation.
- Parameters:
accountId
- The account ID that's associated with the recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
service
The specific service that you want recommendations for.
- Parameters:
service
- The specific service that you want recommendations for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filter
Sets the value of the Filter property for this object.- Parameters:
filter
- The new value for the Filter property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filter
default GetReservationPurchaseRecommendationRequest.Builder filter(Consumer<Expression.Builder> filter) Sets the value of the Filter property for this object. This is a convenience method that creates an instance of theExpression.Builder
avoiding the need to create one manually viaExpression.builder()
.When the
Consumer
completes,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:
-
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:
-
lookbackPeriodInDays
GetReservationPurchaseRecommendationRequest.Builder lookbackPeriodInDays(String lookbackPeriodInDays) The number of previous days that you want Amazon Web Services to consider when it calculates your recommendations.
- Parameters:
lookbackPeriodInDays
- The number of previous days that you want Amazon Web Services to consider when it calculates your recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lookbackPeriodInDays
GetReservationPurchaseRecommendationRequest.Builder lookbackPeriodInDays(LookbackPeriodInDays lookbackPeriodInDays) The number of previous days that you want Amazon Web Services to consider when it calculates your recommendations.
- Parameters:
lookbackPeriodInDays
- The number of previous days that you want Amazon Web Services to consider when it calculates your recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
termInYears
The reservation term that you want recommendations for.
- Parameters:
termInYears
- The reservation term that you want recommendations for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
termInYears
The reservation term that you want recommendations for.
- Parameters:
termInYears
- The reservation term that you want recommendations for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
paymentOption
The reservation purchase option that you want recommendations for.
- Parameters:
paymentOption
- The reservation purchase option that you want recommendations for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
paymentOption
The reservation purchase option that you want recommendations for.
- Parameters:
paymentOption
- The reservation purchase option that you want recommendations for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
serviceSpecification
GetReservationPurchaseRecommendationRequest.Builder serviceSpecification(ServiceSpecification serviceSpecification) The hardware specifications for the service instances that you want recommendations for, such as standard or convertible Amazon EC2 instances.
- Parameters:
serviceSpecification
- The hardware specifications for the service instances that you want recommendations for, such as standard or convertible Amazon EC2 instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceSpecification
default GetReservationPurchaseRecommendationRequest.Builder serviceSpecification(Consumer<ServiceSpecification.Builder> serviceSpecification) The hardware specifications for the service instances that you want recommendations for, such as standard or convertible Amazon EC2 instances.
This is a convenience method that creates an instance of theServiceSpecification.Builder
avoiding the need to create one manually viaServiceSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toserviceSpecification(ServiceSpecification)
.- Parameters:
serviceSpecification
- a consumer that will call methods onServiceSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
-
nextPageToken
The pagination token that indicates the next set of results that you want to retrieve.
- Parameters:
nextPageToken
- The pagination token that indicates the next set of results that you want to retrieve.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
GetReservationPurchaseRecommendationRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
GetReservationPurchaseRecommendationRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-