807829e32316822d52131bc15cd119ba8dde1d71
[so.git] / common / src / main / java / org / onap / so / client / policy / entities / PolicyConfig.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2017 - 2018 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.so.client.policy.entities;
22
23 import java.util.HashMap;
24 import java.util.Map;
25
26 import com.fasterxml.jackson.annotation.JsonInclude;
27 import com.fasterxml.jackson.annotation.JsonProperty;
28 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
29
30 @JsonInclude(JsonInclude.Include.NON_NULL)
31 @JsonPropertyOrder({
32     "policyConfigMessage",
33     "policyConfigStatus",
34     "type",
35     "config",
36     "policyName",
37     "policyType",
38     "policyVersion",
39     "matchingConditions",
40     "responseAttributes",
41     "property"
42 })
43 public class PolicyConfig {
44
45     @JsonProperty("policyConfigMessage")
46     private String policyConfigMessage;
47     @JsonProperty("policyConfigStatus")
48     private String policyConfigStatus;
49     @JsonProperty("type")
50     private String type;
51     @JsonProperty("config")
52     private String config;
53     @JsonProperty("policyName")
54     private String policyName;
55     @JsonProperty("policyType")
56     private String policyType;
57     @JsonProperty("policyVersion")
58     private String policyVersion;
59     @JsonProperty("matchingConditions")
60     private Map<String, String> matchingConditions = new HashMap<>();
61     @JsonProperty("responseAttributes")
62     private Map<String, String> responseAttributes = new HashMap<>();
63     @JsonProperty("property")
64     private Object property;
65
66     @JsonProperty("policyConfigMessage")
67     public String getPolicyConfigMessage() {
68         return policyConfigMessage;
69     }
70
71     @JsonProperty("policyConfigMessage")
72     public void setPolicyConfigMessage(String policyConfigMessage) {
73         this.policyConfigMessage = policyConfigMessage;
74     }
75
76     @JsonProperty("policyConfigStatus")
77     public String getPolicyConfigStatus() {
78         return policyConfigStatus;
79     }
80
81     @JsonProperty("policyConfigStatus")
82     public void setPolicyConfigStatus(String policyConfigStatus) {
83         this.policyConfigStatus = policyConfigStatus;
84     }
85
86     @JsonProperty("type")
87     public String getType() {
88         return type;
89     }
90
91     @JsonProperty("type")
92     public void setType(String type) {
93         this.type = type;
94     }
95
96     @JsonProperty("config")
97     public String getConfig() {
98         return config;
99     }
100
101     @JsonProperty("config")
102     public void setConfig(String config) {
103         this.config = config;
104     }
105
106     @JsonProperty("policyName")
107     public String getPolicyName() {
108         return policyName;
109     }
110
111     @JsonProperty("policyName")
112     public void setPolicyName(String policyName) {
113         this.policyName = policyName;
114     }
115
116     @JsonProperty("policyType")
117     public String getPolicyType() {
118         return policyType;
119     }
120
121     @JsonProperty("policyType")
122     public void setPolicyType(String policyType) {
123         this.policyType = policyType;
124     }
125
126     @JsonProperty("policyVersion")
127     public String getPolicyVersion() {
128         return policyVersion;
129     }
130
131     @JsonProperty("policyVersion")
132     public void setPolicyVersion(String policyVersion) {
133         this.policyVersion = policyVersion;
134     }
135
136     @JsonProperty("matchingConditions")
137     public Map<String, String> getMatchingConditions() {
138         return matchingConditions;
139     }
140
141     @JsonProperty("matchingConditions")
142     public void setMatchingConditions(Map<String, String> matchingConditions) {
143         this.matchingConditions = matchingConditions;
144     }
145
146     @JsonProperty("responseAttributes")
147     public Map<String, String> getResponseAttributes() {
148         return responseAttributes;
149     }
150
151     @JsonProperty("responseAttributes")
152     public void setResponseAttributes(Map<String, String> responseAttributes) {
153         this.responseAttributes = responseAttributes;
154     }
155
156     @JsonProperty("property")
157     public Object getProperty() {
158         return property;
159     }
160
161     @JsonProperty("property")
162     public void setProperty(Object property) {
163         this.property = property;
164     }
165
166 }