toEBSMetricName method
Implementation
EBSMetricName toEBSMetricName() {
switch (this) {
case 'VolumeReadOpsPerSecond':
return EBSMetricName.volumeReadOpsPerSecond;
case 'VolumeWriteOpsPerSecond':
return EBSMetricName.volumeWriteOpsPerSecond;
case 'VolumeReadBytesPerSecond':
return EBSMetricName.volumeReadBytesPerSecond;
case 'VolumeWriteBytesPerSecond':
return EBSMetricName.volumeWriteBytesPerSecond;
}
throw Exception('$this is not known in enum EBSMetricName');
}