public AttachObjectRequest withChildReference(ObjectReference childReference) {
        setChildReference(childReference);
        return this;
    }
<p>
The child object reference to be attached to the object.
</p>

@param childReference
       The child object reference to be attached to the object.
@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/AttachObjectRequest.java