public EnableEnhancedMonitoringResult withDesiredShardLevelMetrics(MetricsName... desiredShardLevelMetrics) {
        com.amazonaws.internal.SdkInternalList<String> desiredShardLevelMetricsCopy = new com.amazonaws.internal.SdkInternalList<String>(
                desiredShardLevelMetrics.length);
        for (MetricsName value : desiredShardLevelMetrics) {
            desiredShardLevelMetricsCopy.add(value.toString());
        }
        if (getDesiredShardLevelMetrics() == null) {
            setDesiredShardLevelMetrics(desiredShardLevelMetricsCopy);
        } else {
            getDesiredShardLevelMetrics().addAll(desiredShardLevelMetricsCopy);
        }
        return this;
    }
public EnableEnhancedMonitoringResult withDesiredShardLevelMetrics ( MetricsName ... desiredShardLevelMetrics ) { com . amazonaws . internal . SdkInternalList < String > desiredShardLevelMetricsCopy = new com . amazonaws . internal . SdkInternalList < String > ( desiredShardLevelMetrics . length ) ; for ( MetricsName value : desiredShardLevelMetrics ) { desiredShardLevelMetricsCopy . add ( value . toString ( ) ) ; } if ( getDesiredShardLevelMetrics ( ) == null ) { setDesiredShardLevelMetrics ( desiredShardLevelMetricsCopy ) ; } else { getDesiredShardLevelMetrics ( ) . addAll ( desiredShardLevelMetricsCopy ) ; } return this ; }
<p>
Represents the list of all the metrics that would be in the enhanced state after the operation.
</p>

@param desiredShardLevelMetrics
Represents the list of all the metrics that would be in the enhanced state after the operation.
@return Returns a reference to this object so that method calls can be chained together.
@see MetricsName