CLAMP Model policy creation support
[policy/engine.git] / ONAP-PDP-REST / src / main / java / org / onap / policy / pdp / rest / api / models / PolicyConfig.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP-PDP-REST
4  * ================================================================================
5  * Copyright (C) 2017 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
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
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=========================================================
19  */
20 package org.onap.policy.pdp.rest.api.models;
21
22 import io.swagger.annotations.ApiModel;
23
24 import java.util.Map;
25
26 import org.onap.policy.api.PolicyConfigStatus;
27 import org.onap.policy.api.PolicyConfigType;
28 import org.onap.policy.api.PolicyType;
29 import org.onap.policy.models.APIConfigResponse;
30
31 @ApiModel
32 public class PolicyConfig implements APIConfigResponse{
33     private String policyConfigMessage;
34     private PolicyConfigStatus policyConfigStatus;
35     private PolicyType type;
36     private String config;
37     private String policyName;
38     private PolicyConfigType policyType;
39     private String policyVersion;
40     private Map<String, String> matchingConditions;
41     private Map<String, String> responseAttributes;
42     private Map<String, String> property;
43     public String getConfig() {
44         return config;
45     }
46     public void setConfig(String config) {
47         this.config = config;
48     }
49     public PolicyType getType() {
50         return type;
51     }
52     public void setType(PolicyType type) {
53         this.type = type;
54     }
55     public PolicyConfigStatus getPolicyConfigStatus() {
56         return policyConfigStatus;
57     }
58     public void setPolicyConfigStatus(PolicyConfigStatus policyConfigStatus) {
59         this.policyConfigStatus = policyConfigStatus;
60     }
61     public String getPolicyConfigMessage() {
62         return policyConfigMessage;
63     }
64     public void setPolicyConfigMessage(String policyConfigMessage) {
65         this.policyConfigMessage = policyConfigMessage;
66     }
67     public Map<String, String> getProperty() {
68         return property;
69     }
70     public void setProperty(Map<String, String> property) {
71         this.property = property;
72     }
73     public String getPolicyName(){
74         return policyName;
75     }
76     public void setPolicyName(String policyName){
77         this.policyName = policyName;
78     }
79     public String getPolicyVersion(){
80         return policyVersion;
81     }
82     public void setPolicyVersion(String policyVersion){
83         this.policyVersion = policyVersion;
84     }
85     public Map<String, String> getMatchingConditions(){
86         return matchingConditions;
87     }
88     public void setMatchingConditions(Map<String, String> matchingConditions){
89         this.matchingConditions = matchingConditions;
90     }
91     public void setResponseAttributes(Map<String,String> responseAttributes){
92         this.responseAttributes = responseAttributes;
93     }
94     public Map<String,String> getResponseAttributes(){
95         return responseAttributes;
96     }
97     public PolicyConfigType getPolicyType() {
98         return policyType;
99     }
100     public void setPolicyType(PolicyConfigType policyType) {
101         this.policyType = policyType;
102     }
103 }