
001/*- 002 * #%L 003 * HAPI FHIR Storage api 004 * %% 005 * Copyright (C) 2014 - 2025 Smile CDR, Inc. 006 * %% 007 * Licensed under the Apache License, Version 2.0 (the "License"); 008 * you may not use this file except in compliance with the License. 009 * You may obtain a copy of the License at 010 * 011 * http://www.apache.org/licenses/LICENSE-2.0 012 * 013 * Unless required by applicable law or agreed to in writing, software 014 * distributed under the License is distributed on an "AS IS" BASIS, 015 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 016 * See the License for the specific language governing permissions and 017 * limitations under the License. 018 * #L% 019 */ 020package ca.uhn.fhir.batch2.importpull.models; 021 022import ca.uhn.fhir.jpa.bulk.imprt.model.JobFileRowProcessingModeEnum; 023import ca.uhn.fhir.model.api.IModelJson; 024import com.fasterxml.jackson.annotation.JsonProperty; 025 026public class BulkImportRecord implements IModelJson { 027 /** 028 * Stringified version of the resource 029 */ 030 @JsonProperty("resource") 031 private String myResourceString; 032 033 /** 034 * Name of the tenant from the bulk import job file 035 */ 036 @JsonProperty("tenantName") 037 private String myTenantName; 038 039 /** 040 * The line index (starting at 1; for backwards compatibility) 041 * of the import file from which the resource was read. 042 */ 043 @JsonProperty("lineIndex") 044 private int myLineIndex; 045 046 /** 047 * The file index for the import job 048 */ 049 @JsonProperty("fileIndex") 050 private int myFileIndex; 051 052 /** 053 * Row processing mode 054 */ 055 @JsonProperty("rowProcessingMode") 056 private JobFileRowProcessingModeEnum myProcessingMode; 057 058 public String getResourceString() { 059 return myResourceString; 060 } 061 062 public void setResourceString(String theResourceString) { 063 myResourceString = theResourceString; 064 } 065 066 public String getTenantName() { 067 return myTenantName; 068 } 069 070 public void setTenantName(String theTenantName) { 071 myTenantName = theTenantName; 072 } 073 074 public int getLineIndex() { 075 return myLineIndex; 076 } 077 078 public void setLineIndex(int theLineIndex) { 079 myLineIndex = theLineIndex; 080 } 081 082 public int getFileIndex() { 083 return myFileIndex; 084 } 085 086 public void setFileIndex(int theFileIndex) { 087 myFileIndex = theFileIndex; 088 } 089 090 public JobFileRowProcessingModeEnum getProcessingMode() { 091 return myProcessingMode; 092 } 093 094 public void setProcessingMode(JobFileRowProcessingModeEnum theProcessingMode) { 095 myProcessingMode = theProcessingMode; 096 } 097}