4dc9c89a15fb51a5cd8fd3b0cc7031cfc48a4e51
[ccsdk/cds.git] /
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 import com.fasterxml.jackson.databind.JsonNode;\r
21 \r
22 import java.util.List;\r
23 import java.util.Map;\r
24 /**\r
25  *\r
26  * DictionaryDefinition.java Purpose:\r
27  * @author Brinda Santh\r
28  */\r
29 public class DictionaryDefinition {\r
30     @JsonProperty(value = "name", required = true)\r
31     private String name;\r
32     @JsonProperty(value = "description")\r
33     private String description;\r
34 \r
35     @JsonProperty(value = "valid-values")\r
36     private String validValues;\r
37 \r
38     @JsonProperty(value = "sample-value")\r
39     private String sampleValue;\r
40 \r
41     private String tags;\r
42     @JsonProperty(value = "updated-by")\r
43     private String updatedBy;\r
44 \r
45     @JsonProperty(value = "resource-type", required = true)\r
46     private String resourceType;\r
47 \r
48     @JsonProperty(value = "resource-path", required = true)\r
49     private String resourcePath;\r
50 \r
51     @JsonProperty(value = "data-type", required = true)\r
52     private String dataType;\r
53 \r
54     @JsonProperty("entry-schema")\r
55     private String entrySchema;\r
56 \r
57     @JsonProperty(value = "default")\r
58     private Object defaultValue;\r
59 \r
60     @JsonProperty(value = "source", required = true)\r
61     private Map<String, JsonNode> source;\r
62 \r
63     @JsonProperty("candidate-dependency")\r
64     private Map<String, DictionaryDependency> dependency;\r
65 \r
66     @JsonProperty("decryption-rules")\r
67     private List<DecryptionRule> decryptionRules;\r
68 \r
69     public String getName() {\r
70         return name;\r
71     }\r
72 \r
73     public void setName(String name) {\r
74         this.name = name;\r
75     }\r
76 \r
77     public String getDescription() {\r
78         return description;\r
79     }\r
80 \r
81     public void setDescription(String description) {\r
82         this.description = description;\r
83     }\r
84 \r
85     public String getValidValues() {\r
86         return validValues;\r
87     }\r
88 \r
89     public void setValidValues(String validValues) {\r
90         this.validValues = validValues;\r
91     }\r
92 \r
93     public String getSampleValue() {\r
94         return sampleValue;\r
95     }\r
96 \r
97     public void setSampleValue(String sampleValue) {\r
98         this.sampleValue = sampleValue;\r
99     }\r
100 \r
101     public String getTags() {\r
102         return tags;\r
103     }\r
104 \r
105     public void setTags(String tags) {\r
106         this.tags = tags;\r
107     }\r
108 \r
109     public String getUpdatedBy() {\r
110         return updatedBy;\r
111     }\r
112 \r
113     public void setUpdatedBy(String updatedBy) {\r
114         this.updatedBy = updatedBy;\r
115     }\r
116 \r
117     public String getResourceType() {\r
118         return resourceType;\r
119     }\r
120 \r
121     public void setResourceType(String resourceType) {\r
122         this.resourceType = resourceType;\r
123     }\r
124 \r
125     public String getResourcePath() {\r
126         return resourcePath;\r
127     }\r
128 \r
129     public void setResourcePath(String resourcePath) {\r
130         this.resourcePath = resourcePath;\r
131     }\r
132 \r
133     public String getDataType() {\r
134         return dataType;\r
135     }\r
136 \r
137     public void setDataType(String dataType) {\r
138         this.dataType = dataType;\r
139     }\r
140 \r
141     public String getEntrySchema() {\r
142         return entrySchema;\r
143     }\r
144 \r
145     public void setEntrySchema(String entrySchema) {\r
146         this.entrySchema = entrySchema;\r
147     }\r
148 \r
149     public Object getDefaultValue() {\r
150         return defaultValue;\r
151     }\r
152 \r
153     public void setDefaultValue(Object defaultValue) {\r
154         this.defaultValue = defaultValue;\r
155     }\r
156 \r
157     public Map<String, JsonNode> getSource() {\r
158         return source;\r
159     }\r
160 \r
161     public void setSource(Map<String, JsonNode> source) {\r
162         this.source = source;\r
163     }\r
164 \r
165     public Map<String, DictionaryDependency> getDependency() {\r
166         return dependency;\r
167     }\r
168 \r
169     public void setDependency(Map<String, DictionaryDependency> dependency) {\r
170         this.dependency = dependency;\r
171     }\r
172 \r
173     public List<DecryptionRule> getDecryptionRules() {\r
174         return decryptionRules;\r
175     }\r
176 \r
177     public void setDecryptionRules(List<DecryptionRule> decryptionRules) {\r
178         this.decryptionRules = decryptionRules;\r
179     }\r
180 \r
181 }\r