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

@param instanceRecommendations
       An array of objects that describe instance recommendations.
@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/GetEC2InstanceRecommendationsResult.java