Interface GetRightsizingRecommendationResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetRightsizingRecommendationResponse.Builder,
,GetRightsizingRecommendationResponse> CostExplorerResponse.Builder
,SdkBuilder<GetRightsizingRecommendationResponse.Builder,
,GetRightsizingRecommendationResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetRightsizingRecommendationResponse
-
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.Information regarding this specific recommendation set.metadata
(RightsizingRecommendationMetadata metadata) Information regarding this specific recommendation set.nextPageToken
(String nextPageToken) The token to retrieve the next set of results.rightsizingRecommendations
(Collection<RightsizingRecommendation> rightsizingRecommendations) Recommendations to rightsize resources.rightsizingRecommendations
(Consumer<RightsizingRecommendation.Builder>... rightsizingRecommendations) Recommendations to rightsize resources.rightsizingRecommendations
(RightsizingRecommendation... rightsizingRecommendations) Recommendations to rightsize resources.Summary of this recommendation set.summary
(RightsizingRecommendationSummary summary) Summary of this recommendation set.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.costexplorer.model.CostExplorerResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
metadata
Information regarding this specific recommendation set.
- Parameters:
metadata
- Information regarding this specific recommendation set.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadata
default GetRightsizingRecommendationResponse.Builder metadata(Consumer<RightsizingRecommendationMetadata.Builder> metadata) Information regarding this specific recommendation set.
This is a convenience method that creates an instance of theRightsizingRecommendationMetadata.Builder
avoiding the need to create one manually viaRightsizingRecommendationMetadata.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometadata(RightsizingRecommendationMetadata)
.- Parameters:
metadata
- a consumer that will call methods onRightsizingRecommendationMetadata.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
summary
Summary of this recommendation set.
- Parameters:
summary
- Summary of this recommendation set.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
summary
default GetRightsizingRecommendationResponse.Builder summary(Consumer<RightsizingRecommendationSummary.Builder> summary) Summary of this recommendation set.
This is a convenience method that creates an instance of theRightsizingRecommendationSummary.Builder
avoiding the need to create one manually viaRightsizingRecommendationSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosummary(RightsizingRecommendationSummary)
.- Parameters:
summary
- a consumer that will call methods onRightsizingRecommendationSummary.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
rightsizingRecommendations
GetRightsizingRecommendationResponse.Builder rightsizingRecommendations(Collection<RightsizingRecommendation> rightsizingRecommendations) Recommendations to rightsize resources.
- Parameters:
rightsizingRecommendations
- Recommendations to rightsize resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rightsizingRecommendations
GetRightsizingRecommendationResponse.Builder rightsizingRecommendations(RightsizingRecommendation... rightsizingRecommendations) Recommendations to rightsize resources.
- Parameters:
rightsizingRecommendations
- Recommendations to rightsize resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rightsizingRecommendations
GetRightsizingRecommendationResponse.Builder rightsizingRecommendations(Consumer<RightsizingRecommendation.Builder>... rightsizingRecommendations) Recommendations to rightsize resources.
This is a convenience method that creates an instance of theRightsizingRecommendation.Builder
avoiding the need to create one manually viaRightsizingRecommendation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torightsizingRecommendations(List<RightsizingRecommendation>)
.- Parameters:
rightsizingRecommendations
- a consumer that will call methods onRightsizingRecommendation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextPageToken
The token to retrieve the next set of results.
- Parameters:
nextPageToken
- The token to retrieve the next set of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configuration
GetRightsizingRecommendationResponse.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 GetRightsizingRecommendationResponse.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:
-