2 * Copyright (c) 2018 ZTE Corporation.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the Apache License, Version 2.0
5 * and the Eclipse Public License v1.0 which both accompany this distribution,
6 * and are available at http://www.eclipse.org/legal/epl-v10.html
7 * and http://www.apache.org/licenses/LICENSE-2.0
10 * ZTE - initial API and implementation and/or initial documentation
12 package org.onap.sdc.workflowdesigner.resources.entity;
16 import com.fasterxml.jackson.annotation.JsonInclude;
17 import com.fasterxml.jackson.annotation.JsonInclude.Include;
18 import com.fasterxml.jackson.annotation.JsonProperty;
19 import com.google.gson.annotations.SerializedName;
24 @JsonInclude(Include.NON_NULL)
25 public class Content {
26 @JsonProperty(value="class") // for dropwizard's Jackson
27 @SerializedName("class") // for Gson
30 private String script;
32 private String scriptFormat;
34 private Map<String, InputOutput> inputs;
36 private Map<String, InputOutput> outputs;
42 public String getScript() {
47 * @param script the script to set
49 public void setScript(String script) {
54 * @return the scriptFormat
56 public String getScriptFormat() {
61 * @param scriptFormat the scriptFormat to set
63 public void setScriptFormat(String scriptFormat) {
64 this.scriptFormat = scriptFormat;
70 public Map<String, InputOutput> getInputs() {
75 * @param inputs the inputs to set
77 public void setInputs(Map<String, InputOutput> inputs) {
84 public Map<String, InputOutput> getOutputs() {
89 * @param outputs the outputs to set
91 public void setOutputs(Map<String, InputOutput> outputs) {
92 this.outputs = outputs;