2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Copyright (C) 2017 Amdocs
8 * =============================================================================
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
21 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22 * ============LICENSE_END=========================================================
25 package org.onap.appc.design.data;
29 import java.sql.SQLException;
30 import java.util.ArrayList;
31 import java.util.List;
32 import java.util.Properties;
34 import javax.sql.rowset.CachedRowSet;
36 import org.slf4j.Logger;
37 import org.slf4j.LoggerFactory;
39 import com.fasterxml.jackson.annotation.JsonProperty;
41 import org.onap.appc.design.services.util.DesignServiceConstants;
42 import org.onap.ccsdk.sli.core.dblib.DBResourceManager;
43 import org.onap.ccsdk.sli.core.dblib.DbLibService;
45 public class DesignRequest{
48 @JsonProperty("userID")
51 @JsonProperty("vnf-type")
54 @JsonProperty("vnfc-type")
57 @JsonProperty("protocol")
60 @JsonProperty("action")
63 @JsonProperty("artifact-name")
66 @JsonProperty("artifact-contents")
67 String artifact_contents ;
69 public String getUserId() {
73 public void setUserId(String userId) {
77 public String getVnf_type() {
81 public void setVnf_type(String vnf_type) {
82 this.vnf_type = vnf_type;
85 public String getVnfc_type() {
89 public void setVnfc_type(String vnfc_type) {
90 this.vnfc_type = vnfc_type;
93 public String getProtocol() {
97 public void setProtocol(String protocol) {
98 this.protocol = protocol;
101 public String getAction() {
105 public void setAction(String action) {
106 this.action = action;
109 public String getArtifact_name() {
110 return artifact_name;
113 public void setArtifact_name(String artifact_name) {
114 this.artifact_name = artifact_name;
117 public String getArtifact_contents() {
118 return artifact_contents;
121 public void setArtifact_contents(String artifact_contents) {
122 this.artifact_contents = artifact_contents;
126 public String toString() {
127 return "DesignRequest [userId=" + userId + ", vnf_type=" + vnf_type + ", vnfc_type=" + vnfc_type + ", protocol="
128 + protocol + ", action=" + action + ", artifact_name=" + artifact_name + ", artifact_contents="
129 + artifact_contents + "]";