0707cd34c2d5c8251d441eda0037cbe543b65d7a
[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.io.Serializable;\r
19 import java.util.HashMap;\r
20 \r
21 import com.fasterxml.jackson.annotation.JsonProperty;\r
22 \r
23 /**\r
24  * PolicyEngineResponse.java Purpose: POJO representing policy manager get-config response\r
25  *\r
26  * @author Saurav Paira\r
27  * @version 1.0\r
28  */\r
29 public class PolicyEngineResponse implements Serializable {\r
30 \r
31         /**\r
32          * \r
33          */\r
34         private static final long serialVersionUID = 1L;\r
35 \r
36         @JsonProperty("policyConfigMessage")\r
37         private String policyConfigMessage;\r
38 \r
39         @JsonProperty("policyConfigStatus")\r
40         private String policyConfigStatus;\r
41 \r
42         @JsonProperty("type")\r
43         private String type;\r
44 \r
45         @JsonProperty("config")\r
46         private String config;\r
47 \r
48         @JsonProperty("policyName")\r
49         private String policyName;\r
50 \r
51         @JsonProperty("policyType")\r
52         private String policyType;\r
53         \r
54         @JsonProperty("policyVersion")\r
55         private String policyVersion;\r
56 \r
57         @JsonProperty("matchingConditions")\r
58         private HashMap<String, String> matchingConditions;\r
59 \r
60         @JsonProperty("responseAttributes")\r
61         private HashMap<String, String> responseAttributes;\r
62 \r
63         @JsonProperty("property")\r
64         private String property;\r
65         \r
66         public PolicyEngineResponse() {\r
67                 \r
68         }\r
69 \r
70         public String getPolicyConfigMessage() {\r
71                 return policyConfigMessage;\r
72         }\r
73         public void setPolicyConfigMessage(String policyConfigMessage) {\r
74                 this.policyConfigMessage = policyConfigMessage;\r
75         }\r
76         public String getPolicyConfigStatus() {\r
77                 return policyConfigStatus;\r
78         }\r
79         public void setPolicyConfigStatus(String policyConfigStatus) {\r
80                 this.policyConfigStatus = policyConfigStatus;\r
81         }\r
82         public String getType() {\r
83                 return type;\r
84         }\r
85         public void setType(String type) {\r
86                 this.type = type;\r
87         }\r
88         public String getConfig() {\r
89                 return config;\r
90         }\r
91         @JsonProperty("config")\r
92         public void setConfig(String config) {\r
93                 this.config = config;\r
94         }\r
95         public String getPolicyName() {\r
96                 return policyName;\r
97         }\r
98         public void setPolicyName(String policyName) {\r
99                 this.policyName = policyName;\r
100         }\r
101         public String getPolicyType() {\r
102                 return policyType;\r
103         }\r
104         public void setPolicyType(String type) {\r
105                 this.policyType = type;\r
106         }\r
107         public String getPolicyVersion() {\r
108                 return policyVersion;\r
109         }\r
110         public void setPolicyVersion(String policyVersion) {\r
111                 this.policyVersion = policyVersion;\r
112         }\r
113         public HashMap<String, String> getMatchingConditions() {\r
114                 return matchingConditions;\r
115         }\r
116         @JsonProperty("matchingConditions")\r
117         public void setMatchingConditions(HashMap<String, String> matchingConditions) {\r
118                 this.matchingConditions = matchingConditions;\r
119         }\r
120         public HashMap<String, String> getResponseAttributes() {\r
121                 return responseAttributes;\r
122         }\r
123         public void setResponseAttributes(HashMap<String, String> responseAttributes) {\r
124                 this.responseAttributes = responseAttributes;\r
125         }\r
126         public String getProperty() {\r
127                 return property;\r
128         }\r
129         public void setProperty(String property) {\r
130                 this.property = property;\r
131         }\r
132 \r
133         @Override\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
139         }\r
140 \r
141 }\r