public ObjectLambdaConfiguration withCloudWatchMetricsEnabled(Boolean cloudWatchMetricsEnabled) {
        setCloudWatchMetricsEnabled(cloudWatchMetricsEnabled);
        return this;
    }
<p>
A container for whether the CloudWatch metrics configuration is enabled.
</p>

@param cloudWatchMetricsEnabled
       A container for whether the CloudWatch metrics configuration is enabled.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-s3control/src/main/java/com/amazonaws/services/s3control/model/ObjectLambdaConfiguration.java