toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case LoadBalancerState.active:
      return 'active';
    case LoadBalancerState.provisioning:
      return 'provisioning';
    case LoadBalancerState.activeImpaired:
      return 'active_impaired';
    case LoadBalancerState.failed:
      return 'failed';
    case LoadBalancerState.unknown:
      return 'unknown';
  }
}