toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ResourceStateType.active:
      return 'ACTIVE';
    case ResourceStateType.restoring:
      return 'RESTORING';
    case ResourceStateType.recycling:
      return 'RECYCLING';
    case ResourceStateType.recycled:
      return 'RECYCLED';
  }
}