toValue method

String toValue()

Implementation

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