toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case NodeStatus.creating:
      return 'CREATING';
    case NodeStatus.available:
      return 'AVAILABLE';
    case NodeStatus.unhealthy:
      return 'UNHEALTHY';
    case NodeStatus.createFailed:
      return 'CREATE_FAILED';
    case NodeStatus.updating:
      return 'UPDATING';
    case NodeStatus.deleting:
      return 'DELETING';
    case NodeStatus.deleted:
      return 'DELETED';
    case NodeStatus.failed:
      return 'FAILED';
  }
}