public Anomaly withName(String name) {
        setName(name);
        return this;
    }
<p>
The name of an anomaly type found in an image. <code>Name</code> maps to an anomaly type in the training dataset,
apart from the anomaly type <code>background</code>. The service automatically inserts the
<code>background</code> anomaly type into the response from <code>DetectAnomalies</code>.
</p>

@param name
       The name of an anomaly type found in an image. <code>Name</code> maps to an anomaly type in the training
       dataset, apart from the anomaly type <code>background</code>. The service automatically inserts the
       <code>background</code> anomaly type into the response from <code>DetectAnomalies</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-lookoutforvision/src/main/java/com/amazonaws/services/lookoutforvision/model/Anomaly.java