Fixes for Backward compatibility issues
[policy/engine.git] / ONAP-PDP-REST / src / main / java / org / onap / policy / pdp / rest / api / models / ConfigPolicyAPIRequest.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP-PDP-REST
4  * ================================================================================
5  * Copyright (C) 2017 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 package org.onap.policy.pdp.rest.api.models;
21
22 import java.io.Serializable;
23 import java.util.Map;
24
25 import io.swagger.annotations.ApiModel;
26
27 @ApiModel
28 public class ConfigPolicyAPIRequest implements Serializable{
29     private static final long serialVersionUID = -4103391389984557025L;
30     
31     private String policyScope = null;
32     private String policyName = null;
33     private String policyDescription = null;
34     private String onapName = null;
35     private String configName = null;
36     private Map<String,String> configAttributes = null;
37     private String configType = null;
38     private String body = null;
39     private String riskType = "default";
40     private String riskLevel = "5";
41     private String guard = "false";
42     private String ttlDate = null;
43     
44     /**
45      * @return the policyScope
46      */
47     public String getPolicyScope() {
48         return policyScope;
49     }
50     /**
51      * @return the policyName
52      */
53     public String getPolicyName() {
54         return policyName;
55     }
56     /**
57      * @return the policyDescription
58      */
59     public String getPolicyDescription() {
60         return policyDescription;
61     }
62     /**
63      * @return the onapName
64      */
65     public String getOnapName() {
66         return onapName;
67     }
68     /**
69      * @return the onapName
70      */
71     @Deprecated
72     public String getEcompName() {
73         return onapName;
74     }
75     /**
76      * @return the configName
77      */
78     public String getConfigName() {
79         return configName;
80     }
81     /**
82      * @return the configAttributes
83      */
84     public Map<String, String> getConfigAttributes() {
85         return configAttributes;
86     }
87     /**
88      * @return the configType
89      */
90     public String getConfigType() {
91         return configType;
92     }
93     /**
94      * @return the body
95      */
96     public String getBody() {
97         return body;
98     }
99     /**
100      * @param policyScope the policyScope to set
101      */
102     public void setPolicyScope(String policyScope) {
103         this.policyScope = policyScope;
104     }
105     /**
106      * @param policyName the policyName to set
107      */
108     public void setPolicyName(String policyName) {
109         this.policyName = policyName;
110     }
111     /**
112      * @param policyDescription the policyDescription to set
113      */
114     public void setPolicyDescription(String policyDescription) {
115         this.policyDescription = policyDescription;
116     }
117     /**
118      * @param onapName the onapName to set
119      */
120     public void setOnapName(String onapName) {
121         this.onapName = onapName;
122     }
123     /**
124      * @param ecompName the onapName to set
125      */
126     @Deprecated
127     public void setEcompName(String ecompName) {
128         this.onapName = ecompName;
129     }
130     /**
131      * @param configName the configName to set
132      */
133     public void setConfigName(String configName) {
134         this.configName = configName;
135     }
136     /**
137      * @param configAttributes the configAttributes to set
138      */
139     public void setConfigAttributes(Map<String, String> configAttributes) {
140         this.configAttributes = configAttributes;
141     }
142     /**
143      * @param configType the configType to set
144      */
145     public void setConfigType(String configType) {
146         this.configType = configType;
147     }
148     /**
149      * @param body the body to set
150      */
151     public void setBody(String body) {
152         this.body = body;
153     }
154     /**
155      * @return the guard
156      */
157     public String getGuard() {
158         return guard;
159     }
160     /**
161      * @param guard the guard to set
162      */
163     public void setGuard(String guard) {
164         this.guard = guard;
165     }
166     /**
167      * @return the riskLevel
168      */
169     public String getRiskLevel() {
170         return riskLevel;
171     }
172     /**
173      * @param riskLevel the riskLevel to set
174      */
175     public void setRiskLevel(String riskLevel) {
176         this.riskLevel = riskLevel;
177     }
178     /**
179      * @return the ttlDate
180      */
181     public String getTtlDate() {
182         return ttlDate;
183     }
184     /**
185      * @param ttlDate the ttlDate to set
186      */
187     public void setTtlDate(String ttlDate) {
188         this.ttlDate = ttlDate;
189     }
190     /**
191      * @return the riskType
192      */
193     public String getRiskType() {
194         return riskType;
195     }
196     /**
197      * @param riskType the riskType to set
198      */
199     public void setRiskType(String riskType) {
200         this.riskType = riskType;
201     }
202 }