Interface GetReservationPurchaseRecommendationRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<GetReservationPurchaseRecommendationRequest.Builder,GetReservationPurchaseRecommendationRequest>,CostExplorerRequest.Builder,SdkBuilder<GetReservationPurchaseRecommendationRequest.Builder,GetReservationPurchaseRecommendationRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- GetReservationPurchaseRecommendationRequest
public static interface GetReservationPurchaseRecommendationRequest.Builder extends CostExplorerRequest.Builder, SdkPojo, CopyableBuilder<GetReservationPurchaseRecommendationRequest.Builder,GetReservationPurchaseRecommendationRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description GetReservationPurchaseRecommendationRequest.BuilderaccountId(String accountId)The account ID that's associated with the recommendation.GetReservationPurchaseRecommendationRequest.BuilderaccountScope(String accountScope)The account scope that you want your recommendations for.GetReservationPurchaseRecommendationRequest.BuilderaccountScope(AccountScope accountScope)The account scope that you want your recommendations for.default GetReservationPurchaseRecommendationRequest.Builderfilter(Consumer<Expression.Builder> filter)Sets the value of the Filter property for this object.GetReservationPurchaseRecommendationRequest.Builderfilter(Expression filter)Sets the value of the Filter property for this object.GetReservationPurchaseRecommendationRequest.BuilderlookbackPeriodInDays(String lookbackPeriodInDays)The number of previous days that you want Amazon Web Services to consider when it calculates your recommendations.GetReservationPurchaseRecommendationRequest.BuilderlookbackPeriodInDays(LookbackPeriodInDays lookbackPeriodInDays)The number of previous days that you want Amazon Web Services to consider when it calculates your recommendations.GetReservationPurchaseRecommendationRequest.BuildernextPageToken(String nextPageToken)The pagination token that indicates the next set of results that you want to retrieve.GetReservationPurchaseRecommendationRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)GetReservationPurchaseRecommendationRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)GetReservationPurchaseRecommendationRequest.BuilderpageSize(Integer pageSize)The number of recommendations that you want returned in a single response object.GetReservationPurchaseRecommendationRequest.BuilderpaymentOption(String paymentOption)The reservation purchase option that you want recommendations for.GetReservationPurchaseRecommendationRequest.BuilderpaymentOption(PaymentOption paymentOption)The reservation purchase option that you want recommendations for.GetReservationPurchaseRecommendationRequest.Builderservice(String service)The specific service that you want recommendations for.default GetReservationPurchaseRecommendationRequest.BuilderserviceSpecification(Consumer<ServiceSpecification.Builder> serviceSpecification)The hardware specifications for the service instances that you want recommendations for, such as standard or convertible Amazon EC2 instances.GetReservationPurchaseRecommendationRequest.BuilderserviceSpecification(ServiceSpecification serviceSpecification)The hardware specifications for the service instances that you want recommendations for, such as standard or convertible Amazon EC2 instances.GetReservationPurchaseRecommendationRequest.BuildertermInYears(String termInYears)The reservation term that you want recommendations for.GetReservationPurchaseRecommendationRequest.BuildertermInYears(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 Detail
-
accountId
GetReservationPurchaseRecommendationRequest.Builder accountId(String 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
GetReservationPurchaseRecommendationRequest.Builder service(String 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
GetReservationPurchaseRecommendationRequest.Builder filter(Expression 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.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:
filter(Expression)
-
accountScope
GetReservationPurchaseRecommendationRequest.Builder accountScope(String 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,AccountScope
-
accountScope
GetReservationPurchaseRecommendationRequest.Builder accountScope(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.- 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,AccountScope
-
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,LookbackPeriodInDays
-
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:
LookbackPeriodInDays,LookbackPeriodInDays
-
termInYears
GetReservationPurchaseRecommendationRequest.Builder termInYears(String 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,TermInYears
-
termInYears
GetReservationPurchaseRecommendationRequest.Builder termInYears(TermInYears 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,TermInYears
-
paymentOption
GetReservationPurchaseRecommendationRequest.Builder paymentOption(String 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,PaymentOption
-
paymentOption
GetReservationPurchaseRecommendationRequest.Builder paymentOption(PaymentOption 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,PaymentOption
-
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.Builderavoiding the need to create one manually viaServiceSpecification.builder().When the
Consumercompletes,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:
serviceSpecification(ServiceSpecification)
-
pageSize
GetReservationPurchaseRecommendationRequest.Builder pageSize(Integer 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
GetReservationPurchaseRecommendationRequest.Builder nextPageToken(String 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)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
GetReservationPurchaseRecommendationRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-