toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case CapacityTypes.onDemand:
      return 'ON_DEMAND';
    case CapacityTypes.spot:
      return 'SPOT';
  }
}