[POLICY-73] replace openecomp for policy-engine
[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 io.swagger.annotations.ApiModel;
23
24 import java.io.Serializable;
25 import java.util.Map;
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 configName
70      */
71     public String getConfigName() {
72         return configName;
73     }
74     /**
75      * @return the configAttributes
76      */
77     public Map<String, String> getConfigAttributes() {
78         return configAttributes;
79     }
80     /**
81      * @return the configType
82      */
83     public String getConfigType() {
84         return configType;
85     }
86     /**
87      * @return the body
88      */
89     public String getBody() {
90         return body;
91     }
92     /**
93      * @param policyScope the policyScope to set
94      */
95     public void setPolicyScope(String policyScope) {
96         this.policyScope = policyScope;
97     }
98     /**
99      * @param policyName the policyName to set
100      */
101     public void setPolicyName(String policyName) {
102         this.policyName = policyName;
103     }
104     /**
105      * @param policyDescription the policyDescription to set
106      */
107     public void setPolicyDescription(String policyDescription) {
108         this.policyDescription = policyDescription;
109     }
110     /**
111      * @param onapName the onapName to set
112      */
113     public void setOnapName(String onapName) {
114         this.onapName = onapName;
115     }
116     /**
117      * @param configName the configName to set
118      */
119     public void setConfigName(String configName) {
120         this.configName = configName;
121     }
122     /**
123      * @param configAttributes the configAttributes to set
124      */
125     public void setConfigAttributes(Map<String, String> configAttributes) {
126         this.configAttributes = configAttributes;
127     }
128     /**
129      * @param configType the configType to set
130      */
131     public void setConfigType(String configType) {
132         this.configType = configType;
133     }
134     /**
135      * @param body the body to set
136      */
137     public void setBody(String body) {
138         this.body = body;
139     }
140     /**
141      * @return the guard
142      */
143     public String getGuard() {
144         return guard;
145     }
146     /**
147      * @param guard the guard to set
148      */
149     public void setGuard(String guard) {
150         this.guard = guard;
151     }
152     /**
153      * @return the riskLevel
154      */
155     public String getRiskLevel() {
156         return riskLevel;
157     }
158     /**
159      * @param riskLevel the riskLevel to set
160      */
161     public void setRiskLevel(String riskLevel) {
162         this.riskLevel = riskLevel;
163     }
164     /**
165      * @return the ttlDate
166      */
167     public String getTtlDate() {
168         return ttlDate;
169     }
170     /**
171      * @param ttlDate the ttlDate to set
172      */
173     public void setTtlDate(String ttlDate) {
174         this.ttlDate = ttlDate;
175     }
176     /**
177      * @return the riskType
178      */
179     public String getRiskType() {
180         return riskType;
181     }
182     /**
183      * @param riskType the riskType to set
184      */
185     public void setRiskType(String riskType) {
186         this.riskType = riskType;
187     }
188 }