public ReplicationDestinationConfig withMetrics(Metrics metrics) {
        setMetrics(metrics);
        return this;
    }
Set container specifying settings for configuring replication metrics and events.

@param metrics The metrics information.
@return This object for method chaining.
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/ReplicationDestinationConfig.java