001package ca.uhn.fhir.jpa.bulk.imprt.model;
002
003/*-
004 * #%L
005 * HAPI FHIR Storage api
006 * %%
007 * Copyright (C) 2014 - 2022 Smile CDR, Inc.
008 * %%
009 * Licensed under the Apache License, Version 2.0 (the "License");
010 * you may not use this file except in compliance with the License.
011 * You may obtain a copy of the License at
012 *
013 *      http://www.apache.org/licenses/LICENSE-2.0
014 *
015 * Unless required by applicable law or agreed to in writing, software
016 * distributed under the License is distributed on an "AS IS" BASIS,
017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
018 * See the License for the specific language governing permissions and
019 * limitations under the License.
020 * #L%
021 */
022
023import ca.uhn.fhir.model.api.IModelJson;
024import com.fasterxml.jackson.annotation.JsonProperty;
025
026public class BulkImportJobJson implements IModelJson {
027
028        @JsonProperty("processingMode")
029        private JobFileRowProcessingModeEnum myProcessingMode;
030        @JsonProperty("jobDescription")
031        private String myJobDescription;
032        @JsonProperty("fileCount")
033        private int myFileCount;
034        @JsonProperty("batchSize")
035        private int myBatchSize;
036
037        public String getJobDescription() {
038                return myJobDescription;
039        }
040
041        public BulkImportJobJson setJobDescription(String theJobDescription) {
042                myJobDescription = theJobDescription;
043                return this;
044        }
045
046        public JobFileRowProcessingModeEnum getProcessingMode() {
047                return myProcessingMode;
048        }
049
050        public BulkImportJobJson setProcessingMode(JobFileRowProcessingModeEnum theProcessingMode) {
051                myProcessingMode = theProcessingMode;
052                return this;
053        }
054
055        public int getFileCount() {
056                return myFileCount;
057        }
058
059        public BulkImportJobJson setFileCount(int theFileCount) {
060                myFileCount = theFileCount;
061                return this;
062        }
063
064        public int getBatchSize() {
065                return myBatchSize;
066        }
067
068        public BulkImportJobJson setBatchSize(int theBatchSize) {
069                myBatchSize = theBatchSize;
070                return this;
071        }
072}