Interface GetEc2InstanceRecommendationsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,ComputeOptimizerResponse.Builder,CopyableBuilder<GetEc2InstanceRecommendationsResponse.Builder,,GetEc2InstanceRecommendationsResponse> SdkBuilder<GetEc2InstanceRecommendationsResponse.Builder,,GetEc2InstanceRecommendationsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetEc2InstanceRecommendationsResponse
-
Method Summary
Modifier and TypeMethodDescriptionerrors(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.instanceRecommendations(Collection<InstanceRecommendation> instanceRecommendations) An array of objects that describe instance recommendations.instanceRecommendations(Consumer<InstanceRecommendation.Builder>... instanceRecommendations) An array of objects that describe instance recommendations.instanceRecommendations(InstanceRecommendation... instanceRecommendations) An array of objects that describe instance recommendations.The token to use to advance to the next page of instance recommendations.Methods inherited from interface software.amazon.awssdk.services.computeoptimizer.model.ComputeOptimizerResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods 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 instance recommendations.
This value is null when there are no more pages of instance recommendations to return.
- Parameters:
nextToken- The token to use to advance to the next page of instance recommendations.This value is null when there are no more pages of instance recommendations to return.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceRecommendations
GetEc2InstanceRecommendationsResponse.Builder instanceRecommendations(Collection<InstanceRecommendation> instanceRecommendations) An array of objects that describe instance recommendations.
- Parameters:
instanceRecommendations- An array of objects that describe instance recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceRecommendations
GetEc2InstanceRecommendationsResponse.Builder instanceRecommendations(InstanceRecommendation... instanceRecommendations) An array of objects that describe instance recommendations.
- Parameters:
instanceRecommendations- An array of objects that describe instance recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceRecommendations
GetEc2InstanceRecommendationsResponse.Builder instanceRecommendations(Consumer<InstanceRecommendation.Builder>... instanceRecommendations) An array of objects that describe instance recommendations.
This is a convenience method that creates an instance of theInstanceRecommendation.Builderavoiding the need to create one manually viaInstanceRecommendation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinstanceRecommendations(List<InstanceRecommendation>).- Parameters:
instanceRecommendations- a consumer that will call methods onInstanceRecommendation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
errors
An array of objects that describe errors of the request.
For example, an error is returned if you request recommendations for an instance of an unsupported instance family.
- Parameters:
errors- An array of objects that describe errors of the request.For example, an error is returned if you request recommendations for an instance of an unsupported instance family.
- 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 instance of an unsupported instance family.
- Parameters:
errors- An array of objects that describe errors of the request.For example, an error is returned if you request recommendations for an instance of an unsupported instance family.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errors
GetEc2InstanceRecommendationsResponse.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 instance of an unsupported instance family.
This is a convenience method that creates an instance of theGetRecommendationError.Builderavoiding the need to create one manually viaGetRecommendationError.builder().When the
Consumercompletes,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:
-