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.openecomp.policy.pdp.rest.api.models;
22 import io.swagger.annotations.ApiModel;
24 import java.io.Serializable;
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 ecompName = 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 ecompName
65 public String getEcompName() {
69 * @return the configName
71 public String getConfigName() {
75 * @return the configAttributes
77 public Map<String, String> getConfigAttributes() {
78 return configAttributes;
81 * @return the configType
83 public String getConfigType() {
89 public String getBody() {
93 * @param policyScope the policyScope to set
95 public void setPolicyScope(String policyScope) {
96 this.policyScope = policyScope;
99 * @param policyName the policyName to set
101 public void setPolicyName(String policyName) {
102 this.policyName = policyName;
105 * @param policyDescription the policyDescription to set
107 public void setPolicyDescription(String policyDescription) {
108 this.policyDescription = policyDescription;
111 * @param ecompName the ecompName to set
113 public void setEcompName(String ecompName) {
114 this.ecompName = ecompName;
117 * @param configName the configName to set
119 public void setConfigName(String configName) {
120 this.configName = configName;
123 * @param configAttributes the configAttributes to set
125 public void setConfigAttributes(Map<String, String> configAttributes) {
126 this.configAttributes = configAttributes;
129 * @param configType the configType to set
131 public void setConfigType(String configType) {
132 this.configType = configType;
135 * @param body the body to set
137 public void setBody(String body) {
143 public String getGuard() {
147 * @param guard the guard to set
149 public void setGuard(String guard) {
153 * @return the riskLevel
155 public String getRiskLevel() {
159 * @param riskLevel the riskLevel to set
161 public void setRiskLevel(String riskLevel) {
162 this.riskLevel = riskLevel;
165 * @return the ttlDate
167 public String getTtlDate() {
171 * @param ttlDate the ttlDate to set
173 public void setTtlDate(String ttlDate) {
174 this.ttlDate = ttlDate;
177 * @return the riskType
179 public String getRiskType() {
183 * @param riskType the riskType to set
185 public void setRiskType(String riskType) {
186 this.riskType = riskType;