e7a0e8ab05950e3150649a207c9e9f6f324cd622
[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 guard;
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();
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 String getGuard() {
53         return guard;
54     }
55
56     public String getService() {
57         return service;
58     }
59
60     public String getDescription() {
61         return description;
62     }
63
64     public String getTemplateVersion() {
65         return templateVersion;
66     }
67
68     public String getVersion() {
69         return version;
70     }
71
72     public String getRiskType() {
73         return riskType;
74     }
75
76     public String getPriority() {
77         return priority;
78     }
79
80     public String getRiskLevel() {
81         return riskLevel;
82     }
83
84     public Content getContent() {
85         return content;
86     }
87
88     public void setGuard(final String guard) {
89         this.guard = guard;
90     }
91
92     public void setService(final String service) {
93         this.service = service;
94     }
95
96     public void setPolicyName(final String policyName) {
97         this.policyName = policyName;
98     }
99
100     public void setDescription(final String description) {
101         this.description = description;
102     }
103
104     public void setTemplateVersion(final String templateVersion) {
105         this.templateVersion = templateVersion;
106     }
107
108     public void setVersion(final String version) {
109         this.version = version;
110     }
111
112     public void setRiskType(final String riskType) {
113         this.riskType = riskType;
114     }
115
116     public void setPriority(final String priority) {
117         this.priority = priority;
118     }
119
120     public void setRiskLevel(final String riskLevel) {
121         this.riskLevel = riskLevel;
122     }
123
124     public void setContent(final Content content) {
125         this.content = content;
126     }
127 }