toValue method
Implementation
String toValue() {
switch (this) {
case FailureReason.noAvailableContacts:
return 'NO_AVAILABLE_CONTACTS';
case FailureReason.additionalVerificationRequired:
return 'ADDITIONAL_VERIFICATION_REQUIRED';
case FailureReason.domainNotAllowed:
return 'DOMAIN_NOT_ALLOWED';
case FailureReason.invalidPublicDomain:
return 'INVALID_PUBLIC_DOMAIN';
case FailureReason.domainValidationDenied:
return 'DOMAIN_VALIDATION_DENIED';
case FailureReason.caaError:
return 'CAA_ERROR';
case FailureReason.pcaLimitExceeded:
return 'PCA_LIMIT_EXCEEDED';
case FailureReason.pcaInvalidArn:
return 'PCA_INVALID_ARN';
case FailureReason.pcaInvalidState:
return 'PCA_INVALID_STATE';
case FailureReason.pcaRequestFailed:
return 'PCA_REQUEST_FAILED';
case FailureReason.pcaNameConstraintsValidation:
return 'PCA_NAME_CONSTRAINTS_VALIDATION';
case FailureReason.pcaResourceNotFound:
return 'PCA_RESOURCE_NOT_FOUND';
case FailureReason.pcaInvalidArgs:
return 'PCA_INVALID_ARGS';
case FailureReason.pcaInvalidDuration:
return 'PCA_INVALID_DURATION';
case FailureReason.pcaAccessDenied:
return 'PCA_ACCESS_DENIED';
case FailureReason.slrNotFound:
return 'SLR_NOT_FOUND';
case FailureReason.other:
return 'OTHER';
}
}