public GetLabelDetectionResult withLabels(LabelDetection... labels) {
        if (this.labels == null) {
            setLabels(new java.util.ArrayList<LabelDetection>(labels.length));
        }
        for (LabelDetection ele : labels) {
            this.labels.add(ele);
        }
        return this;
    }
<p>
An array of labels detected in the video. Each element contains the detected label and the time, in milliseconds
from the start of the video, that the label was detected.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setLabels(java.util.Collection)} or {@link #withLabels(java.util.Collection)} if you want to override the
existing values.
</p>

@param labels
       An array of labels detected in the video. Each element contains the detected label and the time, in
       milliseconds from the start of the video, that the label was detected.
@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/GetLabelDetectionResult.java