toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ClusterState.awaitingQuorum:
      return 'AwaitingQuorum';
    case ClusterState.pending:
      return 'Pending';
    case ClusterState.inUse:
      return 'InUse';
    case ClusterState.complete:
      return 'Complete';
    case ClusterState.cancelled:
      return 'Cancelled';
  }
}