001/*-
002 * #%L
003 * HAPI FHIR Storage api
004 * %%
005 * Copyright (C) 2014 - 2024 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.jpa.bulk.imprt.model;
021
022import ca.uhn.fhir.model.api.IModelJson;
023import com.fasterxml.jackson.annotation.JsonProperty;
024
025public class BulkImportJobJson implements IModelJson {
026
027        @JsonProperty("processingMode")
028        private JobFileRowProcessingModeEnum myProcessingMode;
029
030        @JsonProperty("jobDescription")
031        private String myJobDescription;
032
033        @JsonProperty("fileCount")
034        private int myFileCount;
035
036        @JsonProperty("batchSize")
037        private int myBatchSize;
038
039        public String getJobDescription() {
040                return myJobDescription;
041        }
042
043        public BulkImportJobJson setJobDescription(String theJobDescription) {
044                myJobDescription = theJobDescription;
045                return this;
046        }
047
048        public JobFileRowProcessingModeEnum getProcessingMode() {
049                return myProcessingMode;
050        }
051
052        public BulkImportJobJson setProcessingMode(JobFileRowProcessingModeEnum theProcessingMode) {
053                myProcessingMode = theProcessingMode;
054                return this;
055        }
056
057        public int getFileCount() {
058                return myFileCount;
059        }
060
061        public BulkImportJobJson setFileCount(int theFileCount) {
062                myFileCount = theFileCount;
063                return this;
064        }
065
066        public int getBatchSize() {
067                return myBatchSize;
068        }
069
070        public BulkImportJobJson setBatchSize(int theBatchSize) {
071                myBatchSize = theBatchSize;
072                return this;
073        }
074}