1 /*******************************************************************************
\r
2 * Copyright © 2017-2018 AT&T Intellectual Property.
\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
8 * http://www.apache.org/licenses/LICENSE-2.0
\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
18 import java.util.List;
\r
20 import com.fasterxml.jackson.annotation.JsonProperty;
\r
21 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
\r
24 * ResourceModel.java Purpose: POJO representing policy manager get-config response Resource Model
\r
26 * @author Saurav Paira
\r
29 @JsonDeserialize(as = ResourceModel.class)
\r
30 public class ResourceModel implements PolicyData {
\r
32 @JsonProperty("key-type")
\r
33 private String keyType;
\r
35 @JsonProperty("scope")
\r
36 private String scope;
\r
38 @JsonProperty("resource-resolution-recipe")
\r
39 private String resourceResolutionRecipe;
\r
41 @JsonProperty("resource-name")
\r
42 private String resourceName;
\r
44 @JsonProperty("data-store-object")
\r
45 private String dataStoreObject;
\r
47 @JsonProperty("data-store")
\r
48 private String dataStore;
\r
50 @JsonProperty("elements")
\r
51 private List<Elements> elements;
\r
53 @JsonProperty("resource-vlan-role")
\r
54 private String resourceVlanRole;
\r
56 @JsonProperty("vlan-type")
\r
57 private String vlanType;
\r
60 public String getKeyType() {
\r
64 public void setKeyType(String keyType) {
\r
65 this.keyType = keyType;
\r
68 public String getScope() {
\r
72 public void setScope(String scope) {
\r
76 public String getResourceResolutionRecipe() {
\r
77 return resourceResolutionRecipe;
\r
80 public void setResourceResolutionRecipe(String resourceResolutionRecipe) {
\r
81 this.resourceResolutionRecipe = resourceResolutionRecipe;
\r
84 public String getResourceName() {
\r
85 return resourceName;
\r
88 public void setResourceName(String resourceName) {
\r
89 this.resourceName = resourceName;
\r
92 public String getDataStoreObject() {
\r
93 return dataStoreObject;
\r
96 public void setDataStoreObject(String dataStoreObject) {
\r
97 this.dataStoreObject = dataStoreObject;
\r
100 public String getDataStore() {
\r
104 public void setDataStore(String dataStore) {
\r
105 this.dataStore = dataStore;
\r
108 public List<Elements> getElements() {
\r
112 public void setElements(List<Elements> elements) {
\r
113 this.elements = elements;
\r
116 public String getResourceVlanRole() {
\r
117 return resourceVlanRole;
\r
120 public void setResourceVlanRole(String resourceVlanRole) {
\r
121 this.resourceVlanRole = resourceVlanRole;
\r
125 public String getVlanType() {
\r
129 public void setVlanType(String vlanType) {
\r
130 this.vlanType = vlanType;
\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