public void setInstanceRecommendations(java.util.Collection<InstanceRecommendation> instanceRecommendations) {
        if (instanceRecommendations == null) {
            this.instanceRecommendations = null;
            return;
        }

        this.instanceRecommendations = new java.util.ArrayList<InstanceRecommendation>(instanceRecommendations);
    }
<p>
An array of objects that describe instance recommendations.
</p>

@param instanceRecommendations
       An array of objects that describe instance recommendations.
aws-java-sdk-computeoptimizer/src/main/java/com/amazonaws/services/computeoptimizer/model/GetEC2InstanceRecommendationsResult.java