8f865f9e78906617a2aa0c35a6a5f102483141dd
[ccsdk/apps.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 package org.onap.ccsdk.apps.ms.vlantagapi.core.extinf.pm.model;\r
17 \r
18 import java.util.List;\r
19 \r
20 import com.fasterxml.jackson.annotation.JsonProperty;\r
21 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;\r
22 \r
23 /**\r
24  * ResourceModel.java Purpose: POJO representing policy manager get-config response Resource Model\r
25  *\r
26  * @author Saurav Paira\r
27  * @version 1.0\r
28  */\r
29 @JsonDeserialize(as = ResourceModel.class)\r
30 public class ResourceModel implements PolicyData {\r
31         \r
32         @JsonProperty("key-type")\r
33         private String keyType;\r
34         \r
35         @JsonProperty("scope")\r
36         private String scope;\r
37         \r
38         @JsonProperty("resource-resolution-recipe")\r
39         private String resourceResolutionRecipe;\r
40         \r
41         @JsonProperty("resource-name")\r
42         private String resourceName;\r
43         \r
44         @JsonProperty("data-store-object")\r
45         private String dataStoreObject;\r
46         \r
47         @JsonProperty("data-store")\r
48         private String dataStore;\r
49         \r
50         @JsonProperty("elements")\r
51         private List<Elements> elements;\r
52         \r
53         @JsonProperty("resource-vlan-role")\r
54         private String resourceVlanRole;\r
55         \r
56         @JsonProperty("vlan-type")\r
57         private String vlanType;\r
58 \r
59 \r
60         public String getKeyType() {\r
61                 return keyType;\r
62         }\r
63 \r
64         public void setKeyType(String keyType) {\r
65                 this.keyType = keyType;\r
66         }\r
67 \r
68         public String getScope() {\r
69                 return scope;\r
70         }\r
71 \r
72         public void setScope(String scope) {\r
73                 this.scope = scope;\r
74         }\r
75 \r
76         public String getResourceResolutionRecipe() {\r
77                 return resourceResolutionRecipe;\r
78         }\r
79 \r
80         public void setResourceResolutionRecipe(String resourceResolutionRecipe) {\r
81                 this.resourceResolutionRecipe = resourceResolutionRecipe;\r
82         }\r
83 \r
84         public String getResourceName() {\r
85                 return resourceName;\r
86         }\r
87 \r
88         public void setResourceName(String resourceName) {\r
89                 this.resourceName = resourceName;\r
90         }\r
91 \r
92         public String getDataStoreObject() {\r
93                 return dataStoreObject;\r
94         }\r
95 \r
96         public void setDataStoreObject(String dataStoreObject) {\r
97                 this.dataStoreObject = dataStoreObject;\r
98         }\r
99 \r
100         public String getDataStore() {\r
101                 return dataStore;\r
102         }\r
103 \r
104         public void setDataStore(String dataStore) {\r
105                 this.dataStore = dataStore;\r
106         }\r
107 \r
108         public List<Elements> getElements() {\r
109                 return elements;\r
110         }\r
111 \r
112         public void setElements(List<Elements> elements) {\r
113                 this.elements = elements;\r
114         }\r
115 \r
116         public String getResourceVlanRole() {\r
117                 return resourceVlanRole;\r
118         }\r
119 \r
120         public void setResourceVlanRole(String resourceVlanRole) {\r
121                 this.resourceVlanRole = resourceVlanRole;\r
122         }\r
123 \r
124         \r
125         public String getVlanType() {\r
126                 return vlanType;\r
127         }\r
128 \r
129         public void setVlanType(String vlanType) {\r
130                 this.vlanType = vlanType;\r
131         }\r
132 \r
133         @Override\r
134         public String toString() {\r
135                 return "ResourceModel [keyType=" + keyType + ", scope=" + scope + ", resourceResolutionRecipe="\r
136                                 + resourceResolutionRecipe + ", resourceName=" + resourceName + ", dataStoreObject=" + dataStoreObject\r
137                                 + ", dataStore=" + dataStore + ", elements=" + elements + ", resourceVlanRole=" + resourceVlanRole\r
138                                 + ", vlanType=" + vlanType + "]";\r
139         }\r
140 \r
141         \r
142 \r
143         \r
144 \r
145 }\r