public ProactiveAnomaly withSourceMetadata(AnomalySourceMetadata sourceMetadata) {
        setSourceMetadata(sourceMetadata);
        return this;
    }
<p>
The metadata for the anomaly.
</p>

@param sourceMetadata
       The metadata for the anomaly.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-devopsguru/src/main/java/com/amazonaws/services/devopsguru/model/ProactiveAnomaly.java