public BatchCreateObject withParentReference(ObjectReference parentReference) {
        setParentReference(parentReference);
        return this;
    }
<p>
If specified, the parent reference to which this object will be attached.
</p>

@param parentReference
       If specified, the parent reference to which this object will be attached.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-clouddirectory/src/main/java/com/amazonaws/services/clouddirectory/model/BatchCreateObject.java