toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ClusterState.createInProgress:
      return 'CREATE_IN_PROGRESS';
    case ClusterState.uninitialized:
      return 'UNINITIALIZED';
    case ClusterState.initializeInProgress:
      return 'INITIALIZE_IN_PROGRESS';
    case ClusterState.initialized:
      return 'INITIALIZED';
    case ClusterState.active:
      return 'ACTIVE';
    case ClusterState.updateInProgress:
      return 'UPDATE_IN_PROGRESS';
    case ClusterState.deleteInProgress:
      return 'DELETE_IN_PROGRESS';
    case ClusterState.deleted:
      return 'DELETED';
    case ClusterState.degraded:
      return 'DEGRADED';
  }
}