3c980b44faae052be9e9038b3e2226f0fc49300e
[appc.git] / appc-inbound / appc-design-services / provider / src / main / java / org / openecomp / appc / design / data / DesignRequest.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : APPC
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
12  * 
13  *      http://www.apache.org/licenses/LICENSE-2.0
14  * 
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.
20  * 
21  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22  * ============LICENSE_END=========================================================
23  */
24
25 package org.openecomp.appc.design.data;
26
27 import java.io.File;
28 import java.net.URL;
29 import java.sql.SQLException;
30 import java.util.ArrayList;
31 import java.util.List;
32 import java.util.Properties;
33
34 import javax.sql.rowset.CachedRowSet;
35
36 import org.slf4j.Logger;
37 import org.slf4j.LoggerFactory;
38
39 import com.fasterxml.jackson.annotation.JsonProperty;
40
41 import org.openecomp.appc.design.services.util.DesignServiceConstants;
42 import org.openecomp.sdnc.sli.resource.dblib.DBResourceManager;
43 import org.openecomp.sdnc.sli.resource.dblib.DbLibService;
44
45 public class DesignRequest{
46
47
48     @JsonProperty("userID")
49     String userId ;
50
51     @JsonProperty("vnf-type")
52     String vnf_type;
53     
54     @JsonProperty("vnfc-type")
55     String vnfc_type;
56     
57     @JsonProperty("protocol")
58     String protocol;
59     
60     @JsonProperty("action")
61     String action;
62     
63     @JsonProperty("artifact-name")
64     String artifact_name;
65     
66     @JsonProperty("artifact-contents")
67     String artifact_contents ;
68
69     public String getUserId() {
70         return userId;
71     }
72
73     public void setUserId(String userId) {
74         this.userId = userId;
75     }
76
77     public String getVnf_type() {
78         return vnf_type;
79     }
80
81     public void setVnf_type(String vnf_type) {
82         this.vnf_type = vnf_type;
83     }
84
85     public String getVnfc_type() {
86         return vnfc_type;
87     }
88
89     public void setVnfc_type(String vnfc_type) {
90         this.vnfc_type = vnfc_type;
91     }
92
93     public String getProtocol() {
94         return protocol;
95     }
96
97     public void setProtocol(String protocol) {
98         this.protocol = protocol;
99     }
100
101     public String getAction() {
102         return action;
103     }
104
105     public void setAction(String action) {
106         this.action = action;
107     }
108
109     public String getArtifact_name() {
110         return artifact_name;
111     }
112
113     public void setArtifact_name(String artifact_name) {
114         this.artifact_name = artifact_name;
115     }
116
117     public String getArtifact_contents() {
118         return artifact_contents;
119     }
120
121     public void setArtifact_contents(String artifact_contents) {
122         this.artifact_contents = artifact_contents;
123     }
124
125     @Override
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 + "]";
130     }
131
132 }