
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.models; 021 022import org.springframework.data.domain.Sort; 023 024import java.util.Date; 025 026public class JobInstanceFetchRequest { 027 028 /** 029 * Page index to start from. 030 */ 031 private int myPageStart; 032 033 /** 034 * Page size (number of elements to return) 035 */ 036 private int myBatchSize; 037 038 private Sort mySort; 039 040 private String myJobStatus; 041 042 private String myJobDefinitionId; 043 044 private String myJobId; 045 046 private Date myJobCreateTimeFrom; 047 048 private Date myJobCreateTimeTo; 049 050 public int getPageStart() { 051 return myPageStart; 052 } 053 054 public void setPageStart(int thePageStart) { 055 myPageStart = thePageStart; 056 } 057 058 public int getBatchSize() { 059 return myBatchSize; 060 } 061 062 public void setBatchSize(int theBatchSize) { 063 myBatchSize = theBatchSize; 064 } 065 066 public Sort getSort() { 067 return mySort; 068 } 069 070 public void setSort(Sort theSort) { 071 mySort = theSort; 072 } 073 074 public String getJobStatus() { 075 return myJobStatus; 076 } 077 078 public void setJobStatus(String theJobStatus) { 079 myJobStatus = theJobStatus; 080 } 081 082 public String getJobDefinitionId() { 083 return myJobDefinitionId; 084 } 085 086 public void setJobDefinitionId(String theJobDefinitionId) { 087 this.myJobDefinitionId = theJobDefinitionId; 088 } 089 090 public String getJobId() { 091 return myJobId; 092 } 093 094 public void setJobId(String theJobId) { 095 this.myJobId = theJobId; 096 } 097 098 public Date getJobCreateTimeFrom() { 099 return myJobCreateTimeFrom; 100 } 101 102 public void setJobCreateTimeFrom(Date theJobCreateTimeFrom) { 103 this.myJobCreateTimeFrom = theJobCreateTimeFrom; 104 } 105 106 public Date getJobCreateTimeTo() { 107 return myJobCreateTimeTo; 108 } 109 110 public void setJobCreateTimeTo(Date theJobCreateTimeTo) { 111 this.myJobCreateTimeTo = theJobCreateTimeTo; 112 } 113}