toComputeLimitsUnitType method

ComputeLimitsUnitType toComputeLimitsUnitType()

Implementation

ComputeLimitsUnitType toComputeLimitsUnitType() {
  switch (this) {
    case 'InstanceFleetUnits':
      return ComputeLimitsUnitType.instanceFleetUnits;
    case 'Instances':
      return ComputeLimitsUnitType.instances;
    case 'VCPU':
      return ComputeLimitsUnitType.vcpu;
  }
  throw Exception('$this is not known in enum ComputeLimitsUnitType');
}