toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case BulkEmailStatus.success:
      return 'SUCCESS';
    case BulkEmailStatus.messageRejected:
      return 'MESSAGE_REJECTED';
    case BulkEmailStatus.mailFromDomainNotVerified:
      return 'MAIL_FROM_DOMAIN_NOT_VERIFIED';
    case BulkEmailStatus.configurationSetNotFound:
      return 'CONFIGURATION_SET_NOT_FOUND';
    case BulkEmailStatus.templateNotFound:
      return 'TEMPLATE_NOT_FOUND';
    case BulkEmailStatus.accountSuspended:
      return 'ACCOUNT_SUSPENDED';
    case BulkEmailStatus.accountThrottled:
      return 'ACCOUNT_THROTTLED';
    case BulkEmailStatus.accountDailyQuotaExceeded:
      return 'ACCOUNT_DAILY_QUOTA_EXCEEDED';
    case BulkEmailStatus.invalidSendingPoolName:
      return 'INVALID_SENDING_POOL_NAME';
    case BulkEmailStatus.accountSendingPaused:
      return 'ACCOUNT_SENDING_PAUSED';
    case BulkEmailStatus.configurationSetSendingPaused:
      return 'CONFIGURATION_SET_SENDING_PAUSED';
    case BulkEmailStatus.invalidParameter:
      return 'INVALID_PARAMETER';
    case BulkEmailStatus.transientFailure:
      return 'TRANSIENT_FAILURE';
    case BulkEmailStatus.failed:
      return 'FAILED';
  }
}