public DataPathColor withElement(DataPathValue element) {
        setElement(element);
        return this;
    }
<p>
The element that the color needs to be applied to.
</p>

@param element
       The element that the color needs to be applied to.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-quicksight/src/main/java/com/amazonaws/services/quicksight/model/DataPathColor.java