2 * ============LICENSE_START=======================================================
3 * Copyright (C) 2018 Ericsson. All rights reserved.
4 * ================================================================================
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
17 * SPDX-License-Identifier: Apache-2.0
18 * ============LICENSE_END=========================================================
21 package org.onap.policy.distribution.reception.decoding.pdpx;
23 import org.onap.policy.distribution.model.Policy;
24 import org.onap.policy.distribution.reception.decoding.PolicyDecoder;
27 * A PDP-X Policy, decoded by a {@link PolicyDecoder}.
29 public class PdpxPolicy implements Policy {
32 private String service;
33 private String policyName;
34 private String description;
35 private String templateVersion;
36 private String version;
37 private String riskType;
38 private String priority;
39 private String riskLevel;
40 private Content content = new Content();
43 public String getPolicyName() {
48 public String getPolicyType() {
49 return content.getPolicyType();
52 public String getGuard() {
56 public String getService() {
60 public String getDescription() {
64 public String getTemplateVersion() {
65 return templateVersion;
68 public String getVersion() {
72 public String getRiskType() {
76 public String getPriority() {
80 public String getRiskLevel() {
84 public Content getContent() {
88 public void setGuard(final String guard) {
92 public void setService(final String service) {
93 this.service = service;
96 public void setPolicyName(final String policyName) {
97 this.policyName = policyName;
100 public void setDescription(final String description) {
101 this.description = description;
104 public void setTemplateVersion(final String templateVersion) {
105 this.templateVersion = templateVersion;
108 public void setVersion(final String version) {
109 this.version = version;
112 public void setRiskType(final String riskType) {
113 this.riskType = riskType;
116 public void setPriority(final String priority) {
117 this.priority = priority;
120 public void setRiskLevel(final String riskLevel) {
121 this.riskLevel = riskLevel;
124 public void setContent(final Content content) {
125 this.content = content;