001/*-
002 * #%L
003 * Smile CDR - CDR
004 * %%
005 * Copyright (C) 2016 - 2024 Smile CDR, Inc.
006 * %%
007 * All rights reserved.
008 * #L%
009 */
010package ca.cdr.api.fhirgw.model;
011
012/**
013 * This class represents a FHIR Gateway Read request
014 */
015public class ReadRequest extends BaseRequest<ReadRequest> {
016
017        private String myResourceId;
018        private String myResourceVersionId;
019
020        /**
021         * Constructor
022         */
023        public ReadRequest() {
024                // nothing
025        }
026
027        /**
028         * Copy constructor
029         */
030        public ReadRequest(ReadRequest theRequest) {
031                super(theRequest);
032                myResourceId = theRequest.getResourceId();
033                myResourceVersionId = theRequest.getResourceVersionId();
034        }
035
036        public String getResourceId() {
037                return myResourceId;
038        }
039
040        public ReadRequest setResourceId(String theResourceId) {
041                myResourceId = theResourceId;
042                return this;
043        }
044
045        public String getResourceVersionId() {
046                return myResourceVersionId;
047        }
048
049        public ReadRequest setResourceVersionId(String theResourceVersionId) {
050                myResourceVersionId = theResourceVersionId;
051                return this;
052        }
053}