Interface GetAutoScalingGroupRecommendationsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,ComputeOptimizerResponse.Builder
,CopyableBuilder<GetAutoScalingGroupRecommendationsResponse.Builder,
,GetAutoScalingGroupRecommendationsResponse> SdkBuilder<GetAutoScalingGroupRecommendationsResponse.Builder,
,GetAutoScalingGroupRecommendationsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetAutoScalingGroupRecommendationsResponse
-
Method Summary
Modifier and TypeMethodDescriptionautoScalingGroupRecommendations
(Collection<AutoScalingGroupRecommendation> autoScalingGroupRecommendations) An array of objects that describe Auto Scaling group recommendations.autoScalingGroupRecommendations
(Consumer<AutoScalingGroupRecommendation.Builder>... autoScalingGroupRecommendations) An array of objects that describe Auto Scaling group recommendations.autoScalingGroupRecommendations
(AutoScalingGroupRecommendation... autoScalingGroupRecommendations) An array of objects that describe Auto Scaling group recommendations.errors
(Collection<GetRecommendationError> errors) An array of objects that describe errors of the request.errors
(Consumer<GetRecommendationError.Builder>... errors) An array of objects that describe errors of the request.errors
(GetRecommendationError... errors) An array of objects that describe errors of the request.The token to use to advance to the next page of Auto Scaling group recommendations.Methods inherited from interface software.amazon.awssdk.services.computeoptimizer.model.ComputeOptimizerResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
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
-
nextToken
The token to use to advance to the next page of Auto Scaling group recommendations.
This value is null when there are no more pages of Auto Scaling group recommendations to return.
- Parameters:
nextToken
- The token to use to advance to the next page of Auto Scaling group recommendations.This value is null when there are no more pages of Auto Scaling group recommendations to return.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
autoScalingGroupRecommendations
GetAutoScalingGroupRecommendationsResponse.Builder autoScalingGroupRecommendations(Collection<AutoScalingGroupRecommendation> autoScalingGroupRecommendations) An array of objects that describe Auto Scaling group recommendations.
- Parameters:
autoScalingGroupRecommendations
- An array of objects that describe Auto Scaling group recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
autoScalingGroupRecommendations
GetAutoScalingGroupRecommendationsResponse.Builder autoScalingGroupRecommendations(AutoScalingGroupRecommendation... autoScalingGroupRecommendations) An array of objects that describe Auto Scaling group recommendations.
- Parameters:
autoScalingGroupRecommendations
- An array of objects that describe Auto Scaling group recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
autoScalingGroupRecommendations
GetAutoScalingGroupRecommendationsResponse.Builder autoScalingGroupRecommendations(Consumer<AutoScalingGroupRecommendation.Builder>... autoScalingGroupRecommendations) An array of objects that describe Auto Scaling group recommendations.
This is a convenience method that creates an instance of theAutoScalingGroupRecommendation.Builder
avoiding the need to create one manually viaAutoScalingGroupRecommendation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toautoScalingGroupRecommendations(List<AutoScalingGroupRecommendation>)
.- Parameters:
autoScalingGroupRecommendations
- a consumer that will call methods onAutoScalingGroupRecommendation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
errors
GetAutoScalingGroupRecommendationsResponse.Builder errors(Collection<GetRecommendationError> errors) An array of objects that describe errors of the request.
For example, an error is returned if you request recommendations for an unsupported Auto Scaling group.
- Parameters:
errors
- An array of objects that describe errors of the request.For example, an error is returned if you request recommendations for an unsupported Auto Scaling group.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errors
An array of objects that describe errors of the request.
For example, an error is returned if you request recommendations for an unsupported Auto Scaling group.
- Parameters:
errors
- An array of objects that describe errors of the request.For example, an error is returned if you request recommendations for an unsupported Auto Scaling group.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errors
GetAutoScalingGroupRecommendationsResponse.Builder errors(Consumer<GetRecommendationError.Builder>... errors) An array of objects that describe errors of the request.
For example, an error is returned if you request recommendations for an unsupported Auto Scaling group.
This is a convenience method that creates an instance of theGetRecommendationError.Builder
avoiding the need to create one manually viaGetRecommendationError.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toerrors(List<GetRecommendationError>)
.- Parameters:
errors
- a consumer that will call methods onGetRecommendationError.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-