001/*-
002 * #%L
003 * HAPI FHIR - Master Data Management
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.mdm.model.mdmevents;
021
022import ca.uhn.fhir.model.api.IModelJson;
023import com.fasterxml.jackson.annotation.JsonProperty;
024
025import java.util.ArrayList;
026import java.util.List;
027
028public class MdmClearEvent implements IModelJson {
029
030        @JsonProperty("resourceTypes")
031        private List<String> myResourceTypes;
032
033        /**
034         * True if this submit was done asynchronously
035         * (ie, was submitted as a batch job).
036         * False if submitted directly to mdm.
037         */
038        @JsonProperty("batchSize")
039        private Long myBatchSize;
040
041        public Long getBatchSize() {
042                return myBatchSize;
043        }
044
045        public void setBatchSize(Long theBatchSize) {
046                myBatchSize = theBatchSize;
047        }
048
049        public List<String> getResourceTypes() {
050                if (myResourceTypes == null) {
051                        myResourceTypes = new ArrayList<>();
052                }
053                return myResourceTypes;
054        }
055
056        public void setResourceTypes(List<String> theResourceTypes) {
057                myResourceTypes = theResourceTypes;
058        }
059}