001package ca.cdr.api.model.json.CdaJson; 002 003/* 004 * #%L 005 * Smile CDR - CDR 006 * %% 007 * Copyright (C) 2016 - 2026 Smile CDR, Inc. 008 * %% 009 * All rights reserved. 010 * #L% 011 */ 012 013import ca.cdr.api.model.json.IModelJson; 014import com.fasterxml.jackson.annotation.JsonProperty; 015 016import java.util.ArrayList; 017import java.util.List; 018 019public class CdaTemplateRequestJson implements IModelJson { 020 021 @JsonProperty("params") 022 private List<String> myParams; 023 024 @JsonProperty("script") 025 private String myScript; 026 027 @JsonProperty("description") 028 private String myDescription; 029 030 public List<String> getParams() { 031 if (myParams == null) { 032 myParams = new ArrayList<>(); 033 } 034 return myParams; 035 } 036 037 public void setParams(List<String> params) { 038 this.myParams = params; 039 } 040 041 public String getScript() { 042 return myScript; 043 } 044 045 public boolean hasScript() { 046 return myScript != null; 047 } 048 049 public boolean hasDescription() { 050 return myDescription != null; 051 } 052 053 public boolean hasParams() { 054 return myParams != null; 055 } 056 057 public void setScript(String script) { 058 this.myScript = script; 059 } 060 061 public String getDescription() { 062 return myDescription; 063 } 064 065 public void setDescription(String description) { 066 this.myDescription = description; 067 } 068}