Interface GetEc2InstanceRecommendationsResponse.Builder

    • Method Detail

      • nextToken

        GetEc2InstanceRecommendationsResponse.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.

        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.
      • errors

        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.

        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​(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.

        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.