2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 - 2018 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=========================================================
21 package org.onap.so.client.policy.entities;
23 import com.fasterxml.jackson.annotation.JsonInclude;
24 import com.fasterxml.jackson.annotation.JsonProperty;
25 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
26 import com.fasterxml.jackson.annotation.JsonRootName;
28 @JsonInclude(JsonInclude.Include.NON_NULL)
45 @JsonRootName(value = "config")
48 @JsonProperty("configName")
49 private String configName;
50 @JsonProperty("riskLevel")
51 private String riskLevel;
52 @JsonProperty("policyName")
53 private String policyName;
54 @JsonProperty("policyScope")
55 private String policyScope;
56 @JsonProperty("guard")
58 @JsonProperty("description")
59 private String description;
60 @JsonProperty("priority")
61 private String priority;
64 @JsonProperty("version")
65 private String version;
66 @JsonProperty("content")
67 private Content content;
68 @JsonProperty("riskType")
69 private String riskType;
70 @JsonProperty("service")
71 private String service;
72 @JsonProperty("location")
73 private String location;
74 @JsonProperty("templateVersion")
75 private String templateVersion;
77 @JsonProperty("configName")
78 public String getConfigName() {
82 @JsonProperty("configName")
83 public void setConfigName(String configName) {
84 this.configName = configName;
87 @JsonProperty("riskLevel")
88 public String getRiskLevel() {
92 @JsonProperty("riskLevel")
93 public void setRiskLevel(String riskLevel) {
94 this.riskLevel = riskLevel;
97 @JsonProperty("policyName")
98 public String getPolicyName() {
102 @JsonProperty("policyName")
103 public void setPolicyName(String policyName) {
104 this.policyName = policyName;
107 @JsonProperty("policyScope")
108 public String getPolicyScope() {
112 @JsonProperty("policyScope")
113 public void setPolicyScope(String policyScope) {
114 this.policyScope = policyScope;
117 @JsonProperty("guard")
118 public String getGuard() {
122 @JsonProperty("guard")
123 public void setGuard(String guard) {
127 @JsonProperty("description")
128 public String getDescription() {
132 @JsonProperty("description")
133 public void setDescription(String description) {
134 this.description = description;
137 @JsonProperty("priority")
138 public String getPriority() {
142 @JsonProperty("priority")
143 public void setPriority(String priority) {
144 this.priority = priority;
147 @JsonProperty("uuid")
148 public String getUuid() {
152 @JsonProperty("uuid")
153 public void setUuid(String uuid) {
157 @JsonProperty("version")
158 public String getVersion() {
162 @JsonProperty("version")
163 public void setVersion(String version) {
164 this.version = version;
167 @JsonProperty("content")
168 public Content getContent() {
172 @JsonProperty("content")
173 public void setContent(Content content) {
174 this.content = content;
177 @JsonProperty("riskType")
178 public String getRiskType() {
182 @JsonProperty("riskType")
183 public void setRiskType(String riskType) {
184 this.riskType = riskType;
187 @JsonProperty("service")
188 public String getService() {
192 @JsonProperty("service")
193 public void setService(String service) {
194 this.service = service;
197 @JsonProperty("location")
198 public String getLocation() {
202 @JsonProperty("location")
203 public void setLocation(String location) {
204 this.location = location;
207 @JsonProperty("templateVersion")
208 public String getTemplateVersion() {
209 return templateVersion;
212 @JsonProperty("templateVersion")
213 public void setTemplateVersion(String templateVersion) {
214 this.templateVersion = templateVersion;