toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case DesiredStatus.running:
      return 'RUNNING';
    case DesiredStatus.pending:
      return 'PENDING';
    case DesiredStatus.stopped:
      return 'STOPPED';
  }
}