179024a8f00fc4fc1ed021b6ae0404684ebd91a3
[policy/distribution.git] /
1 /*-
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
8  *
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  *
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.
16  *
17  * SPDX-License-Identifier: Apache-2.0
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.policy.distribution.reception.decoding.pdpx;
22
23 import org.onap.policy.distribution.model.Policy;
24 import org.onap.policy.distribution.reception.decoding.PolicyDecoder;
25
26 /**
27  * A PDP-X Policy, decoded by a {@link PolicyDecoder}.
28  */
29 public class PdpxPolicy implements Policy {
30
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;
39     private String guard;
40     private Content content = new Content();
41
42     @Override
43     public String getPolicyName() {
44         return policyName;
45     }
46
47     @Override
48     public String getPolicyType() {
49         return content.getPolicyType();
50     }
51
52     public void setService(String service) {
53         this.service = service;
54     }
55
56     public String getService() {
57         return service;
58     }    
59
60     public void setPolicyName(String policyName) {
61         this.policyName = policyName;
62     }
63
64     public void setDescription(String description) {
65         this.description = description;
66     }
67
68     public String getDescription() {
69         return description;
70     }
71
72     public void setTemplateVersion(String templateVersion) {
73         this.templateVersion = templateVersion;
74     }
75
76     public String getTemplateVersion() {
77         return templateVersion;
78     }
79
80     public String getVersion() {
81         return version;
82     }
83
84     public void setVersion(String version) {
85         this.version = version;
86     }
87
88     public String getPriority() {
89         return priority;
90     }
91
92     public void setPriority(String priority) {
93         this.priority = priority;
94     }
95
96     public String getGuard() {
97         return guard;
98     }
99
100     public void setGuard(String guard) {
101         this.guard = guard;
102     }
103
104     public String getRiskLevel() {
105         return riskLevel;
106     }
107
108     public void setRiskLevel(String riskLevel) {
109         this.riskLevel = riskLevel;
110     }
111
112     public String getRiskType() {
113         return riskType;
114     }
115
116     public void setRiskType(String riskType) {
117         this.riskType = riskType;
118     }
119
120     public Content getContent(){
121         return content;
122     }
123
124     public void setContent(Content content) {
125         this.content = content;
126     }    
127
128 }