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 {
 
  31     private String service;
 
  32     private String policyName;
 
  33     private String description;
 
  34     private String templateVersion;
 
  35     private String version;
 
  36     private String priority;
 
  37     private String riskType;
 
  38     private String riskLevel;
 
  40     private Content content = new Content();
 
  43     public String getPolicyName() {
 
  48     public String getPolicyType() {
 
  49         return content.getPolicyType();
 
  52     public void setService(String service) {
 
  53         this.service = service;
 
  56     public String getService() {
 
  60     public void setPolicyName(String policyName) {
 
  61         this.policyName = policyName;
 
  64     public void setDescription(String description) {
 
  65         this.description = description;
 
  68     public String getDescription() {
 
  72     public void setTemplateVersion(String templateVersion) {
 
  73         this.templateVersion = templateVersion;
 
  76     public String getTemplateVersion() {
 
  77         return templateVersion;
 
  80     public String getVersion() {
 
  84     public void setVersion(String version) {
 
  85         this.version = version;
 
  88     public String getPriority() {
 
  92     public void setPriority(String priority) {
 
  93         this.priority = priority;
 
  96     public String getGuard() {
 
 100     public void setGuard(String guard) {
 
 104     public String getRiskLevel() {
 
 108     public void setRiskLevel(String riskLevel) {
 
 109         this.riskLevel = riskLevel;
 
 112     public String getRiskType() {
 
 116     public void setRiskType(String riskType) {
 
 117         this.riskType = riskType;
 
 120     public Content getContent(){
 
 124     public void setContent(Content content) {
 
 125         this.content = content;