toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case InstanceHealthState.initial:
      return 'initial';
    case InstanceHealthState.healthy:
      return 'healthy';
    case InstanceHealthState.unhealthy:
      return 'unhealthy';
    case InstanceHealthState.unused:
      return 'unused';
    case InstanceHealthState.draining:
      return 'draining';
    case InstanceHealthState.unavailable:
      return 'unavailable';
  }
}