public static interface GetEc2InstanceRecommendationsResponse.Builder extends ComputeOptimizerResponse.Builder, SdkPojo, CopyableBuilder<GetEc2InstanceRecommendationsResponse.Builder,GetEc2InstanceRecommendationsResponse>
build, responseMetadata, responseMetadatasdkHttpResponse, sdkHttpResponseequalsBySdkFields, sdkFieldscopyapplyMutation, buildGetEc2InstanceRecommendationsResponse.Builder nextToken(String 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.
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.
GetEc2InstanceRecommendationsResponse.Builder instanceRecommendations(Collection<InstanceRecommendation> instanceRecommendations)
An array of objects that describe instance recommendations.
instanceRecommendations - An array of objects that describe instance recommendations.GetEc2InstanceRecommendationsResponse.Builder instanceRecommendations(InstanceRecommendation... instanceRecommendations)
An array of objects that describe instance recommendations.
instanceRecommendations - An array of objects that describe instance recommendations.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.Builder avoiding the
need to create one manually via
InstanceRecommendation.builder().
When the Consumer completes,
SdkBuilder.build() is
called immediately and its result is passed to #instanceRecommendations(List.
instanceRecommendations - a consumer that will call methods on
InstanceRecommendation.Builder#instanceRecommendations(java.util.Collection) GetEc2InstanceRecommendationsResponse.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 instance of an unsupported instance family.
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.
GetEc2InstanceRecommendationsResponse.Builder errors(GetRecommendationError... 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.
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.
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.Builder avoiding the
need to create one manually via
GetRecommendationError.builder().
When the Consumer completes,
SdkBuilder.build() is
called immediately and its result is passed to #errors(List.
errors - a consumer that will call methods on
GetRecommendationError.Builder#errors(java.util.Collection) Copyright © 2023. All rights reserved.