toProductionVariantAcceleratorType method
Implementation
ProductionVariantAcceleratorType toProductionVariantAcceleratorType() {
switch (this) {
case 'ml.eia1.medium':
return ProductionVariantAcceleratorType.mlEia1Medium;
case 'ml.eia1.large':
return ProductionVariantAcceleratorType.mlEia1Large;
case 'ml.eia1.xlarge':
return ProductionVariantAcceleratorType.mlEia1Xlarge;
case 'ml.eia2.medium':
return ProductionVariantAcceleratorType.mlEia2Medium;
case 'ml.eia2.large':
return ProductionVariantAcceleratorType.mlEia2Large;
case 'ml.eia2.xlarge':
return ProductionVariantAcceleratorType.mlEia2Xlarge;
}
throw Exception(
'$this is not known in enum ProductionVariantAcceleratorType');
}