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