public Label withParents(Parent... parents) {
        if (this.parents == null) {
            setParents(new java.util.ArrayList<Parent>(parents.length));
        }
        for (Parent ele : parents) {
            this.parents.add(ele);
        }
        return this;
    }
<p>
The parent labels for a label. The response includes all ancestor labels.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setParents(java.util.Collection)} or {@link #withParents(java.util.Collection)} if you want to override
the existing values.
</p>

@param parents
       The parent labels for a label. The response includes all ancestor labels.
@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/Label.java