Controller Blueprints MS
[ccsdk/cds.git] / ms / controllerblueprints / modules / resource-dict / src / main / java / org / onap / ccsdk / apps / controllerblueprints / resource / dict / data / SourceDb.java
1 /*\r
2  * Copyright © 2017-2018 AT&T Intellectual Property.\r
3  *\r
4  * Licensed under the Apache License, Version 2.0 (the "License");\r
5  * you may not use this file except in compliance with the License.\r
6  * You may obtain a copy of the License at\r
7  *\r
8  *     http://www.apache.org/licenses/LICENSE-2.0\r
9  *\r
10  * Unless required by applicable law or agreed to in writing, software\r
11  * distributed under the License is distributed on an "AS IS" BASIS,\r
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
13  * See the License for the specific language governing permissions and\r
14  * limitations under the License.\r
15  */\r
16 \r
17 package org.onap.ccsdk.apps.controllerblueprints.resource.dict.data;\r
18 \r
19 import com.fasterxml.jackson.annotation.JsonProperty;\r
20 \r
21 import java.util.Map;\r
22 /**\r
23  *\r
24  * SourceDb\r
25  * @author Brinda Santh\r
26  */\r
27 public class SourceDb {\r
28     @JsonProperty(value = "base", required = true)\r
29     private String base;\r
30     @JsonProperty(value = "type", required = true)\r
31     private String type; // SQL | PLSQL\r
32     @JsonProperty(value = "query", required = true)\r
33     private String query;\r
34 \r
35     @JsonProperty("input-key-mapping")\r
36     private Map<String, String> inputKeyMapping;\r
37 \r
38     @JsonProperty("output-key-mapping")\r
39     private Map<String, String> outputKeyMapping;\r
40 \r
41     public String getBase() {\r
42         return base;\r
43     }\r
44 \r
45     public void setBase(String base) {\r
46         this.base = base;\r
47     }\r
48 \r
49     public String getType() {\r
50         return type;\r
51     }\r
52 \r
53     public void setType(String type) {\r
54         this.type = type;\r
55     }\r
56 \r
57     public String getQuery() {\r
58         return query;\r
59     }\r
60 \r
61     public void setQuery(String query) {\r
62         this.query = query;\r
63     }\r
64 \r
65     public Map<String, String> getInputKeyMapping() {\r
66         return inputKeyMapping;\r
67     }\r
68 \r
69     public void setInputKeyMapping(Map<String, String> inputKeyMapping) {\r
70         this.inputKeyMapping = inputKeyMapping;\r
71     }\r
72 \r
73     public Map<String, String> getOutputKeyMapping() {\r
74         return outputKeyMapping;\r
75     }\r
76 \r
77     public void setOutputKeyMapping(Map<String, String> outputKeyMapping) {\r
78         this.outputKeyMapping = outputKeyMapping;\r
79     }\r
80 \r
81 \r
82 \r
83 }\r