public DataSource withMetricsConfig(String metricsConfig) {
        setMetricsConfig(metricsConfig);
        return this;
    }
<p>
Enables or disables enhanced data source metrics for specified data sources. Note that <code>metricsConfig</code>
won't be used unless the <code>dataSourceLevelMetricsBehavior</code> value is set to
<code>PER_DATA_SOURCE_METRICS</code>. If the <code>dataSourceLevelMetricsBehavior</code> is set to
<code>FULL_REQUEST_DATA_SOURCE_METRICS</code> instead, <code>metricsConfig</code> will be ignored. However, you
can still set its value.
</p>
<p>
<code>metricsConfig</code> can be <code>ENABLED</code> or <code>DISABLED</code>.
</p>

@param metricsConfig
       Enables or disables enhanced data source metrics for specified data sources. Note that
       <code>metricsConfig</code> won't be used unless the <code>dataSourceLevelMetricsBehavior</code> value is
       set to <code>PER_DATA_SOURCE_METRICS</code>. If the <code>dataSourceLevelMetricsBehavior</code> is set to
       <code>FULL_REQUEST_DATA_SOURCE_METRICS</code> instead, <code>metricsConfig</code> will be ignored.
       However, you can still set its value.</p>
       <p>
       <code>metricsConfig</code> can be <code>ENABLED</code> or <code>DISABLED</code>.
@return Returns a reference to this object so that method calls can be chained together.
@see DataSourceLevelMetricsConfig
aws-java-sdk-appsync/src/main/java/com/amazonaws/services/appsync/model/DataSource.java