toValue method
Implementation
String toValue() {
switch (this) {
case ErrorCode.badRequest:
return 'BadRequest';
case ErrorCode.conflict:
return 'Conflict';
case ErrorCode.forbidden:
return 'Forbidden';
case ErrorCode.notFound:
return 'NotFound';
case ErrorCode.preconditionFailed:
return 'PreconditionFailed';
case ErrorCode.resourceLimitExceeded:
return 'ResourceLimitExceeded';
case ErrorCode.serviceFailure:
return 'ServiceFailure';
case ErrorCode.accessDenied:
return 'AccessDenied';
case ErrorCode.serviceUnavailable:
return 'ServiceUnavailable';
case ErrorCode.throttled:
return 'Throttled';
case ErrorCode.throttling:
return 'Throttling';
case ErrorCode.unauthorized:
return 'Unauthorized';
case ErrorCode.unprocessable:
return 'Unprocessable';
case ErrorCode.voiceConnectorGroupAssociationsExist:
return 'VoiceConnectorGroupAssociationsExist';
case ErrorCode.phoneNumberAssociationsExist:
return 'PhoneNumberAssociationsExist';
}
}