toValue method
Implementation
String toValue() {
switch (this) {
case InstanceHealthReason.lbRegistrationInProgress:
return 'Lb.RegistrationInProgress';
case InstanceHealthReason.lbInitialHealthChecking:
return 'Lb.InitialHealthChecking';
case InstanceHealthReason.lbInternalError:
return 'Lb.InternalError';
case InstanceHealthReason.instanceResponseCodeMismatch:
return 'Instance.ResponseCodeMismatch';
case InstanceHealthReason.instanceTimeout:
return 'Instance.Timeout';
case InstanceHealthReason.instanceFailedHealthChecks:
return 'Instance.FailedHealthChecks';
case InstanceHealthReason.instanceNotRegistered:
return 'Instance.NotRegistered';
case InstanceHealthReason.instanceNotInUse:
return 'Instance.NotInUse';
case InstanceHealthReason.instanceDeregistrationInProgress:
return 'Instance.DeregistrationInProgress';
case InstanceHealthReason.instanceInvalidState:
return 'Instance.InvalidState';
case InstanceHealthReason.instanceIpUnusable:
return 'Instance.IpUnusable';
}
}