public void setParents(java.util.Collection<Parent> parents) {
        if (parents == null) {
            this.parents = null;
            return;
        }

        this.parents = new java.util.ArrayList<Parent>(parents);
    }
<p>
The parent labels for a label. The response includes all ancestor labels.
</p>

@param parents
       The parent labels for a label. The response includes all ancestor labels.
aws-java-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/Label.java