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.io.Serializable;
\r
19 import java.util.HashMap;
\r
21 import com.fasterxml.jackson.annotation.JsonProperty;
\r
24 * PolicyEngineResponse.java Purpose: POJO representing policy manager get-config response
\r
26 * @author Saurav Paira
\r
29 public class PolicyEngineResponse implements Serializable {
\r
34 private static final long serialVersionUID = 1L;
\r
36 @JsonProperty("policyConfigMessage")
\r
37 private String policyConfigMessage;
\r
39 @JsonProperty("policyConfigStatus")
\r
40 private String policyConfigStatus;
\r
42 @JsonProperty("type")
\r
43 private String type;
\r
45 @JsonProperty("config")
\r
46 private String config;
\r
48 @JsonProperty("policyName")
\r
49 private String policyName;
\r
51 @JsonProperty("policyType")
\r
52 private String policyType;
\r
54 @JsonProperty("policyVersion")
\r
55 private String policyVersion;
\r
57 @JsonProperty("matchingConditions")
\r
58 private HashMap<String, String> matchingConditions;
\r
60 @JsonProperty("responseAttributes")
\r
61 private HashMap<String, String> responseAttributes;
\r
63 @JsonProperty("property")
\r
64 private String property;
\r
66 public PolicyEngineResponse() {
\r
70 public String getPolicyConfigMessage() {
\r
71 return policyConfigMessage;
\r
73 public void setPolicyConfigMessage(String policyConfigMessage) {
\r
74 this.policyConfigMessage = policyConfigMessage;
\r
76 public String getPolicyConfigStatus() {
\r
77 return policyConfigStatus;
\r
79 public void setPolicyConfigStatus(String policyConfigStatus) {
\r
80 this.policyConfigStatus = policyConfigStatus;
\r
82 public String getType() {
\r
85 public void setType(String type) {
\r
88 public String getConfig() {
\r
91 @JsonProperty("config")
\r
92 public void setConfig(String config) {
\r
93 this.config = config;
\r
95 public String getPolicyName() {
\r
98 public void setPolicyName(String policyName) {
\r
99 this.policyName = policyName;
\r
101 public String getPolicyType() {
\r
104 public void setPolicyType(String type) {
\r
105 this.policyType = type;
\r
107 public String getPolicyVersion() {
\r
108 return policyVersion;
\r
110 public void setPolicyVersion(String policyVersion) {
\r
111 this.policyVersion = policyVersion;
\r
113 public HashMap<String, String> getMatchingConditions() {
\r
114 return matchingConditions;
\r
116 @JsonProperty("matchingConditions")
\r
117 public void setMatchingConditions(HashMap<String, String> matchingConditions) {
\r
118 this.matchingConditions = matchingConditions;
\r
120 public HashMap<String, String> getResponseAttributes() {
\r
121 return responseAttributes;
\r
123 public void setResponseAttributes(HashMap<String, String> responseAttributes) {
\r
124 this.responseAttributes = responseAttributes;
\r
126 public String getProperty() {
\r
129 public void setProperty(String property) {
\r
130 this.property = property;
\r
134 public String toString() {
\r
135 return "PolicyEngineResponse [policyConfigMessage=" + policyConfigMessage + ", policyConfigStatus="
\r
136 + policyConfigStatus + ", type=" + type + ", config=" + config + ", policyName=" + policyName
\r
137 + ", policyType=" + policyType + ", policyVersion=" + policyVersion + ", matchingConditions="
\r
138 + matchingConditions + ", responseAttributes=" + responseAttributes + ", property=" + property + "]";
\r