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.model.json; 011 012import com.fasterxml.jackson.annotation.JsonProperty; 013import io.swagger.v3.oas.annotations.media.Schema; 014 015import java.io.Serializable; 016 017/** 018 * Represents a SMART launch context that has been assigned to a specific user session. 019 * This structure uses resource type (i.e. Patient). 020 */ 021@Schema( 022 name = "LaunchResourceId", 023 description = "Represents a SMART launch context that has been assigned to a specific user session. " 024 + "This structure uses resource type (i.e. Patient).") 025public class LaunchResourceIdJson implements Serializable, IModelJson { 026 027 @JsonProperty("resourceType") 028 @Schema(description = "The resource type, e.g. 'Patient'") 029 private String myResourceType; 030 031 @JsonProperty("resourceId") 032 @Schema(description = "The resource ID, e.g. '123'") 033 private String myResourceId; 034 035 /** 036 * Constructor 037 */ 038 public LaunchResourceIdJson() { 039 super(); 040 } 041 042 /** 043 * Copy Constructor 044 */ 045 public LaunchResourceIdJson(LaunchResourceIdJson theLaunchResourceIdJson) { 046 setResourceType(theLaunchResourceIdJson.getResourceType()); 047 setResourceId(theLaunchResourceIdJson.getResourceId()); 048 } 049 050 public String getResourceId() { 051 return myResourceId; 052 } 053 054 public LaunchResourceIdJson setResourceId(String theResourceId) { 055 myResourceId = theResourceId; 056 return this; 057 } 058 059 public String getResourceType() { 060 return myResourceType; 061 } 062 063 public LaunchResourceIdJson setResourceType(String theResourceType) { 064 myResourceType = theResourceType; 065 return this; 066 } 067}