public GetPersonTrackingResult withPersons(PersonDetection... persons) {
        if (this.persons == null) {
            setPersons(new java.util.ArrayList<PersonDetection>(persons.length));
        }
        for (PersonDetection ele : persons) {
            this.persons.add(ele);
        }
        return this;
    }
<p>
An array of the persons detected in the video and the time(s) their path was tracked throughout the video. An
array element will exist for each time a person's path is tracked.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPersons(java.util.Collection)} or {@link #withPersons(java.util.Collection)} if you want to override
the existing values.
</p>

@param persons
       An array of the persons detected in the video and the time(s) their path was tracked throughout the video.
       An array element will exist for each time a person's path is tracked.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/GetPersonTrackingResult.java