Interface GetRightsizingRecommendationRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<GetRightsizingRecommendationRequest.Builder,
,GetRightsizingRecommendationRequest> CostExplorerRequest.Builder
,SdkBuilder<GetRightsizingRecommendationRequest.Builder,
,GetRightsizingRecommendationRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
GetRightsizingRecommendationRequest
-
Method Summary
Modifier and TypeMethodDescriptionconfiguration
(Consumer<RightsizingRecommendationConfiguration.Builder> configuration) You can use Configuration to customize recommendations across two attributes.configuration
(RightsizingRecommendationConfiguration configuration) You can use Configuration to customize recommendations across two attributes.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.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.The specific service 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
-
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
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:
-
configuration
GetRightsizingRecommendationRequest.Builder configuration(RightsizingRecommendationConfiguration configuration) You can use Configuration to customize recommendations across two attributes. You can choose to view recommendations for instances within the same instance families or across different instance families. You can also choose to view your estimated savings that are associated with recommendations with consideration of existing Savings Plans or RI benefits, or neither.
- Parameters:
configuration
- You can use Configuration to customize recommendations across two attributes. You can choose to view recommendations for instances within the same instance families or across different instance families. You can also choose to view your estimated savings that are associated with recommendations with consideration of existing Savings Plans or RI benefits, or neither.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configuration
default GetRightsizingRecommendationRequest.Builder configuration(Consumer<RightsizingRecommendationConfiguration.Builder> configuration) You can use Configuration to customize recommendations across two attributes. You can choose to view recommendations for instances within the same instance families or across different instance families. You can also choose to view your estimated savings that are associated with recommendations with consideration of existing Savings Plans or RI benefits, or neither.
This is a convenience method that creates an instance of theRightsizingRecommendationConfiguration.Builder
avoiding the need to create one manually viaRightsizingRecommendationConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconfiguration(RightsizingRecommendationConfiguration)
.- Parameters:
configuration
- a consumer that will call methods onRightsizingRecommendationConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
service
The specific service that you want recommendations for. The only valid value for
GetRightsizingRecommendation
is "AmazonEC2
".- Parameters:
service
- The specific service that you want recommendations for. The only valid value forGetRightsizingRecommendation
is "AmazonEC2
".- 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.
-
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
GetRightsizingRecommendationRequest.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
GetRightsizingRecommendationRequest.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.
-