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.json; 011 012import com.fasterxml.jackson.annotation.JsonProperty; 013import io.swagger.v3.oas.annotations.media.Schema; 014 015@Schema( 016 name = "GatewaySearchRoute", 017 description = "Defines a Smile CDR FHIR Gateway route that services FHIR **search** operations") 018public class GatewaySearchRouteJson extends BaseRouteJson<GatewaySearchRouteJson> implements Cloneable { 019 020 @JsonProperty("disablePaging") 021 @Schema(description = "Responses for this route should not include paging links") 022 private boolean myDisablePaging; 023 024 @Override 025 public GatewaySearchRouteJson clone() { 026 try { 027 return (GatewaySearchRouteJson) super.clone(); 028 } catch (CloneNotSupportedException e) { 029 throw new AssertionError(); 030 } 031 } 032 033 public GatewaySearchRouteJson setDisablePaging(boolean theDisablePaging) { 034 myDisablePaging = theDisablePaging; 035 return this; 036 } 037 038 public boolean isDisablePaging() { 039 return myDisablePaging; 040 } 041}