public InstanceRecommendation withRecommendationSources(RecommendationSource... recommendationSources) {
        if (this.recommendationSources == null) {
            setRecommendationSources(new java.util.ArrayList<RecommendationSource>(recommendationSources.length));
        }
        for (RecommendationSource ele : recommendationSources) {
            this.recommendationSources.add(ele);
        }
        return this;
    }
<p>
An array of objects that describe the source resource of the recommendation.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setRecommendationSources(java.util.Collection)} or
{@link #withRecommendationSources(java.util.Collection)} if you want to override the existing values.
</p>

@param recommendationSources
       An array of objects that describe the source resource of the recommendation.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-computeoptimizer/src/main/java/com/amazonaws/services/computeoptimizer/model/InstanceRecommendation.java