public MetricDefinition withNamespace(String namespace) {
        setNamespace(namespace);
        return this;
    }
<p>
If this metric definition is for a custom metric instead of an extended metric, this field displays the metric
namespace that the custom metric is published to.
</p>

@param namespace
       If this metric definition is for a custom metric instead of an extended metric, this field displays the
       metric namespace that the custom metric is published to.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cloudwatchrum/src/main/java/com/amazonaws/services/cloudwatchrum/model/MetricDefinition.java