2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
20 package org.onap.policy.pdp.rest.api.models;
22 import java.io.Serializable;
25 import io.swagger.annotations.ApiModel;
28 public class ConfigPolicyAPIRequest implements Serializable{
29 private static final long serialVersionUID = -4103391389984557025L;
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;
45 * @return the policyScope
47 public String getPolicyScope() {
51 * @return the policyName
53 public String getPolicyName() {
57 * @return the policyDescription
59 public String getPolicyDescription() {
60 return policyDescription;
63 * @return the onapName
65 public String getOnapName() {
69 * @return the onapName
72 public String getEcompName() {
76 * @return the configName
78 public String getConfigName() {
82 * @return the configAttributes
84 public Map<String, String> getConfigAttributes() {
85 return configAttributes;
88 * @return the configType
90 public String getConfigType() {
96 public String getBody() {
100 * @param policyScope the policyScope to set
102 public void setPolicyScope(String policyScope) {
103 this.policyScope = policyScope;
106 * @param policyName the policyName to set
108 public void setPolicyName(String policyName) {
109 this.policyName = policyName;
112 * @param policyDescription the policyDescription to set
114 public void setPolicyDescription(String policyDescription) {
115 this.policyDescription = policyDescription;
118 * @param onapName the onapName to set
120 public void setOnapName(String onapName) {
121 this.onapName = onapName;
124 * @param ecompName the onapName to set
127 public void setEcompName(String ecompName) {
128 this.onapName = ecompName;
131 * @param configName the configName to set
133 public void setConfigName(String configName) {
134 this.configName = configName;
137 * @param configAttributes the configAttributes to set
139 public void setConfigAttributes(Map<String, String> configAttributes) {
140 this.configAttributes = configAttributes;
143 * @param configType the configType to set
145 public void setConfigType(String configType) {
146 this.configType = configType;
149 * @param body the body to set
151 public void setBody(String body) {
157 public String getGuard() {
161 * @param guard the guard to set
163 public void setGuard(String guard) {
167 * @return the riskLevel
169 public String getRiskLevel() {
173 * @param riskLevel the riskLevel to set
175 public void setRiskLevel(String riskLevel) {
176 this.riskLevel = riskLevel;
179 * @return the ttlDate
181 public String getTtlDate() {
185 * @param ttlDate the ttlDate to set
187 public void setTtlDate(String ttlDate) {
188 this.ttlDate = ttlDate;
191 * @return the riskType
193 public String getRiskType() {
197 * @param riskType the riskType to set
199 public void setRiskType(String riskType) {
200 this.riskType = riskType;