toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case UsageReportExecutionErrorCode.resourceNotFound:
      return 'RESOURCE_NOT_FOUND';
    case UsageReportExecutionErrorCode.accessDenied:
      return 'ACCESS_DENIED';
    case UsageReportExecutionErrorCode.internalServiceError:
      return 'INTERNAL_SERVICE_ERROR';
  }
}