toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case Status.available:
      return 'AVAILABLE';
    case Status.creating:
      return 'CREATING';
    case Status.failed:
      return 'FAILED';
  }
}