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
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
-
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.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:
-
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.Builderavoiding the need to create one manually viaRightsizingRecommendationConfiguration.builder().When the
Consumercompletes,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
GetRightsizingRecommendationis "AmazonEC2".- Parameters:
service- The specific service that you want recommendations for. The only valid value forGetRightsizingRecommendationis "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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.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.
-