Interface GetEc2InstanceRecommendationsRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, ComputeOptimizerRequest.Builder, CopyableBuilder<GetEc2InstanceRecommendationsRequest.Builder,GetEc2InstanceRecommendationsRequest>, SdkBuilder<GetEc2InstanceRecommendationsRequest.Builder,GetEc2InstanceRecommendationsRequest>, SdkPojo, SdkRequest.Builder
Enclosing class:
GetEc2InstanceRecommendationsRequest

  • Method Details

    • instanceArns

      The Amazon Resource Name (ARN) of the instances for which to return recommendations.

      Parameters:
      instanceArns - The Amazon Resource Name (ARN) of the instances for which to return recommendations.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceArns

      The Amazon Resource Name (ARN) of the instances for which to return recommendations.

      Parameters:
      instanceArns - The Amazon Resource Name (ARN) of the instances for which to return recommendations.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • nextToken

      The token to advance to the next page of instance recommendations.

      Parameters:
      nextToken - The token to advance to the next page of instance recommendations.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • maxResults

      The maximum number of instance recommendations to return with a single request.

      To retrieve the remaining results, make another request with the returned nextToken value.

      Parameters:
      maxResults - The maximum number of instance recommendations to return with a single request.

      To retrieve the remaining results, make another request with the returned nextToken value.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • filters

      An array of objects to specify a filter that returns a more specific list of instance recommendations.

      Parameters:
      filters - An array of objects to specify a filter that returns a more specific list of instance recommendations.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • filters

      An array of objects to specify a filter that returns a more specific list of instance recommendations.

      Parameters:
      filters - An array of objects to specify a filter that returns a more specific list of instance recommendations.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • filters

      An array of objects to specify a filter that returns a more specific list of instance recommendations.

      This is a convenience method that creates an instance of the Filter.Builder avoiding the need to create one manually via Filter.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to filters(List<Filter>).

      Parameters:
      filters - a consumer that will call methods on Filter.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • accountIds

      The ID of the Amazon Web Services account for which to return instance recommendations.

      If your account is the management account of an organization, use this parameter to specify the member account for which you want to return instance recommendations.

      Only one account ID can be specified per request.

      Parameters:
      accountIds - The ID of the Amazon Web Services account for which to return instance recommendations.

      If your account is the management account of an organization, use this parameter to specify the member account for which you want to return instance recommendations.

      Only one account ID can be specified per request.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • accountIds

      The ID of the Amazon Web Services account for which to return instance recommendations.

      If your account is the management account of an organization, use this parameter to specify the member account for which you want to return instance recommendations.

      Only one account ID can be specified per request.

      Parameters:
      accountIds - The ID of the Amazon Web Services account for which to return instance recommendations.

      If your account is the management account of an organization, use this parameter to specify the member account for which you want to return instance recommendations.

      Only one account ID can be specified per request.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • recommendationPreferences

      GetEc2InstanceRecommendationsRequest.Builder recommendationPreferences(RecommendationPreferences recommendationPreferences)

      An object to specify the preferences for the Amazon EC2 instance recommendations to return in the response.

      Parameters:
      recommendationPreferences - An object to specify the preferences for the Amazon EC2 instance recommendations to return in the response.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • recommendationPreferences

      default GetEc2InstanceRecommendationsRequest.Builder recommendationPreferences(Consumer<RecommendationPreferences.Builder> recommendationPreferences)

      An object to specify the preferences for the Amazon EC2 instance recommendations to return in the response.

      This is a convenience method that creates an instance of the RecommendationPreferences.Builder avoiding the need to create one manually via RecommendationPreferences.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to recommendationPreferences(RecommendationPreferences).

      Parameters:
      recommendationPreferences - a consumer that will call methods on RecommendationPreferences.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.