Interface GetEc2InstanceRecommendationsRequest.Builder

    • Method Detail

      • instanceArns

        GetEc2InstanceRecommendationsRequest.Builder instanceArns​(Collection<String> 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

        GetEc2InstanceRecommendationsRequest.Builder instanceArns​(String... 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

        GetEc2InstanceRecommendationsRequest.Builder nextToken​(String 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

        GetEc2InstanceRecommendationsRequest.Builder maxResults​(Integer 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

        GetEc2InstanceRecommendationsRequest.Builder filters​(Collection<Filter> 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

        GetEc2InstanceRecommendationsRequest.Builder filters​(Filter... 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.
      • accountIds

        GetEc2InstanceRecommendationsRequest.Builder accountIds​(Collection<String> 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

        GetEc2InstanceRecommendationsRequest.Builder accountIds​(String... 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.