toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case TargetHealthReasonEnum.elbRegistrationInProgress:
      return 'Elb.RegistrationInProgress';
    case TargetHealthReasonEnum.elbInitialHealthChecking:
      return 'Elb.InitialHealthChecking';
    case TargetHealthReasonEnum.targetResponseCodeMismatch:
      return 'Target.ResponseCodeMismatch';
    case TargetHealthReasonEnum.targetTimeout:
      return 'Target.Timeout';
    case TargetHealthReasonEnum.targetFailedHealthChecks:
      return 'Target.FailedHealthChecks';
    case TargetHealthReasonEnum.targetNotRegistered:
      return 'Target.NotRegistered';
    case TargetHealthReasonEnum.targetNotInUse:
      return 'Target.NotInUse';
    case TargetHealthReasonEnum.targetDeregistrationInProgress:
      return 'Target.DeregistrationInProgress';
    case TargetHealthReasonEnum.targetInvalidState:
      return 'Target.InvalidState';
    case TargetHealthReasonEnum.targetIpUnusable:
      return 'Target.IpUnusable';
    case TargetHealthReasonEnum.targetHealthCheckDisabled:
      return 'Target.HealthCheckDisabled';
    case TargetHealthReasonEnum.elbInternalError:
      return 'Elb.InternalError';
  }
}