toValue method
Implementation
String toValue() {
switch (this) {
case GatewayResponseType.default_4xx:
return 'DEFAULT_4XX';
case GatewayResponseType.default_5xx:
return 'DEFAULT_5XX';
case GatewayResponseType.resourceNotFound:
return 'RESOURCE_NOT_FOUND';
case GatewayResponseType.unauthorized:
return 'UNAUTHORIZED';
case GatewayResponseType.invalidApiKey:
return 'INVALID_API_KEY';
case GatewayResponseType.accessDenied:
return 'ACCESS_DENIED';
case GatewayResponseType.authorizerFailure:
return 'AUTHORIZER_FAILURE';
case GatewayResponseType.authorizerConfigurationError:
return 'AUTHORIZER_CONFIGURATION_ERROR';
case GatewayResponseType.invalidSignature:
return 'INVALID_SIGNATURE';
case GatewayResponseType.expiredToken:
return 'EXPIRED_TOKEN';
case GatewayResponseType.missingAuthenticationToken:
return 'MISSING_AUTHENTICATION_TOKEN';
case GatewayResponseType.integrationFailure:
return 'INTEGRATION_FAILURE';
case GatewayResponseType.integrationTimeout:
return 'INTEGRATION_TIMEOUT';
case GatewayResponseType.apiConfigurationError:
return 'API_CONFIGURATION_ERROR';
case GatewayResponseType.unsupportedMediaType:
return 'UNSUPPORTED_MEDIA_TYPE';
case GatewayResponseType.badRequestParameters:
return 'BAD_REQUEST_PARAMETERS';
case GatewayResponseType.badRequestBody:
return 'BAD_REQUEST_BODY';
case GatewayResponseType.requestTooLarge:
return 'REQUEST_TOO_LARGE';
case GatewayResponseType.throttled:
return 'THROTTLED';
case GatewayResponseType.quotaExceeded:
return 'QUOTA_EXCEEDED';
}
}