1 /*******************************************************************************
\r
2 * Copyright © 2017-2018 AT&T Intellectual Property.
\r
4 * Licensed under the Apache License, Version 2.0 (the "License");
\r
5 * you may not use this file except in compliance with the License.
\r
6 * You may obtain a copy of the License at
\r
8 * http://www.apache.org/licenses/LICENSE-2.0
\r
10 * Unless required by applicable law or agreed to in writing, software
\r
11 * distributed under the License is distributed on an "AS IS" BASIS,
\r
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
13 * See the License for the specific language governing permissions and
\r
14 * limitations under the License.
\r
15 ******************************************************************************/
\r
16 package org.onap.ccsdk.apps.ms.vlantagapi.core.extinf.pm.model;
\r
18 import java.io.Serializable;
\r
20 import com.fasterxml.jackson.annotation.JsonProperty;
\r
23 * PolicyConfig.java Purpose: POJO representing policy manager
\r
24 * get-config response
\r
26 * @author Saurav Paira
\r
29 public class PolicyConfig implements Serializable {
\r
34 private static final long serialVersionUID = 1L;
\r
36 @JsonProperty("configName")
\r
37 private String configName;
\r
39 @JsonProperty("riskLevel")
\r
40 private String riskLevel;
\r
42 @JsonProperty("policyName")
\r
43 private String policyName;
\r
45 @JsonProperty("policyScope")
\r
46 private String policyScope;
\r
48 @JsonProperty("guard")
\r
49 private String guard;
\r
51 @JsonProperty("description")
\r
52 private String description;
\r
54 @JsonProperty("priority")
\r
55 private String priority;
\r
57 @JsonProperty("uuid")
\r
58 private String uuid;
\r
60 @JsonProperty("version")
\r
61 private String version;
\r
63 @JsonProperty("content")
\r
64 private PolicyContent content;
\r
66 @JsonProperty("riskType")
\r
67 private String riskType;
\r
69 @JsonProperty("service")
\r
70 private String service;
\r
72 @JsonProperty("location")
\r
73 private String location;
\r
75 @JsonProperty("templateVersion")
\r
76 private String templateVersion;
\r
78 public String getConfigName() {
\r
81 public void setConfigName(String configName) {
\r
82 this.configName = configName;
\r
84 public String getRiskLevel() {
\r
87 public void setRiskLevel(String riskLevel) {
\r
88 this.riskLevel = riskLevel;
\r
90 public String getPolicyName() {
\r
93 public void setPolicyName(String policyName) {
\r
94 this.policyName = policyName;
\r
96 public String getPolicyScope() {
\r
99 public void setPolicyScope(String policyScope) {
\r
100 this.policyScope = policyScope;
\r
102 public String getGuard() {
\r
105 public void setGuard(String guard) {
\r
106 this.guard = guard;
\r
108 public String getDescription() {
\r
109 return description;
\r
111 public void setDescription(String description) {
\r
112 this.description = description;
\r
114 public String getPriority() {
\r
117 public void setPriority(String priority) {
\r
118 this.priority = priority;
\r
120 public String getUuid() {
\r
123 public void setUuid(String uuid) {
\r
126 public String getVersion() {
\r
129 public void setVersion(String version) {
\r
130 this.version = version;
\r
133 public PolicyContent getContent() {
\r
136 public void setContent(PolicyContent content) {
\r
137 this.content = content;
\r
139 public String getRiskType() {
\r
142 public void setRiskType(String riskType) {
\r
143 this.riskType = riskType;
\r
145 public String getService() {
\r
148 public void setService(String service) {
\r
149 this.service = service;
\r
151 public String getLocation() {
\r
154 public void setLocation(String location) {
\r
155 this.location = location;
\r
157 public String getTemplateVersion() {
\r
158 return templateVersion;
\r
160 public void setTemplateVersion(String templateVersion) {
\r
161 this.templateVersion = templateVersion;
\r
164 public String toString() {
\r
165 return "PolicyConfig [configName=" + configName + ", riskLevel=" + riskLevel + ", policyName=" + policyName
\r
166 + ", policyScope=" + policyScope + ", guard=" + guard + ", description=" + description + ", priority="
\r
167 + priority + ", uuid=" + uuid + ", version=" + version + ", content=" + content + ", riskType="
\r
168 + riskType + ", service=" + service + ", location=" + location + ", templateVersion=" + templateVersion
\r