toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case BatchStatementErrorCodeEnum.conditionalCheckFailed:
      return 'ConditionalCheckFailed';
    case BatchStatementErrorCodeEnum.itemCollectionSizeLimitExceeded:
      return 'ItemCollectionSizeLimitExceeded';
    case BatchStatementErrorCodeEnum.requestLimitExceeded:
      return 'RequestLimitExceeded';
    case BatchStatementErrorCodeEnum.validationError:
      return 'ValidationError';
    case BatchStatementErrorCodeEnum.provisionedThroughputExceeded:
      return 'ProvisionedThroughputExceeded';
    case BatchStatementErrorCodeEnum.transactionConflict:
      return 'TransactionConflict';
    case BatchStatementErrorCodeEnum.throttlingError:
      return 'ThrottlingError';
    case BatchStatementErrorCodeEnum.internalServerError:
      return 'InternalServerError';
    case BatchStatementErrorCodeEnum.resourceNotFound:
      return 'ResourceNotFound';
    case BatchStatementErrorCodeEnum.accessDenied:
      return 'AccessDenied';
    case BatchStatementErrorCodeEnum.duplicateItem:
      return 'DuplicateItem';
  }
}