public GetPersonalizedRankingResult withPersonalizedRanking(PredictedItem... personalizedRanking) {
        if (this.personalizedRanking == null) {
            setPersonalizedRanking(new java.util.ArrayList<PredictedItem>(personalizedRanking.length));
        }
        for (PredictedItem ele : personalizedRanking) {
            this.personalizedRanking.add(ele);
        }
        return this;
    }
<p>
A list of items in order of most likely interest to the user. The maximum is 500.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPersonalizedRanking(java.util.Collection)} or {@link #withPersonalizedRanking(java.util.Collection)}
if you want to override the existing values.
</p>

@param personalizedRanking
       A list of items in order of most likely interest to the user. The maximum is 500.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-personalizeruntime/src/main/java/com/amazonaws/services/personalizeruntime/model/GetPersonalizedRankingResult.java