Interface GetRightsizingRecommendationRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<GetRightsizingRecommendationRequest.Builder,GetRightsizingRecommendationRequest>,CostExplorerRequest.Builder,SdkBuilder<GetRightsizingRecommendationRequest.Builder,GetRightsizingRecommendationRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- GetRightsizingRecommendationRequest
public static interface GetRightsizingRecommendationRequest.Builder extends CostExplorerRequest.Builder, SdkPojo, CopyableBuilder<GetRightsizingRecommendationRequest.Builder,GetRightsizingRecommendationRequest>
-
-
Method Summary
-
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
-
filter
GetRightsizingRecommendationRequest.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 GetRightsizingRecommendationRequest.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)
-
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:
configuration(RightsizingRecommendationConfiguration)
-
service
GetRightsizingRecommendationRequest.Builder service(String 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
GetRightsizingRecommendationRequest.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
GetRightsizingRecommendationRequest.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
GetRightsizingRecommendationRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
GetRightsizingRecommendationRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-