toTargetHealthReasonEnum method
Implementation
TargetHealthReasonEnum toTargetHealthReasonEnum() {
switch (this) {
case 'Elb.RegistrationInProgress':
return TargetHealthReasonEnum.elbRegistrationInProgress;
case 'Elb.InitialHealthChecking':
return TargetHealthReasonEnum.elbInitialHealthChecking;
case 'Target.ResponseCodeMismatch':
return TargetHealthReasonEnum.targetResponseCodeMismatch;
case 'Target.Timeout':
return TargetHealthReasonEnum.targetTimeout;
case 'Target.FailedHealthChecks':
return TargetHealthReasonEnum.targetFailedHealthChecks;
case 'Target.NotRegistered':
return TargetHealthReasonEnum.targetNotRegistered;
case 'Target.NotInUse':
return TargetHealthReasonEnum.targetNotInUse;
case 'Target.DeregistrationInProgress':
return TargetHealthReasonEnum.targetDeregistrationInProgress;
case 'Target.InvalidState':
return TargetHealthReasonEnum.targetInvalidState;
case 'Target.IpUnusable':
return TargetHealthReasonEnum.targetIpUnusable;
case 'Target.HealthCheckDisabled':
return TargetHealthReasonEnum.targetHealthCheckDisabled;
case 'Elb.InternalError':
return TargetHealthReasonEnum.elbInternalError;
}
throw Exception('$this is not known in enum TargetHealthReasonEnum');
}