be363c24f1f36abaf5f224aea2653a53355344e0
[policy/engine.git] / PolicyEngineAPI / src / main / java / org / onap / policy / models / APIPolicyConfigResponse.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * PolicyEngineAPI
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.models;
21
22 import java.util.Map;
23
24 import org.onap.policy.api.PolicyConfigStatus;
25 import org.onap.policy.api.PolicyConfigType;
26 import org.onap.policy.api.PolicyType;
27
28 public class APIPolicyConfigResponse implements APIConfigResponse {
29     private String policyConfigMessage;
30     private PolicyConfigStatus policyConfigStatus;
31     private PolicyType type;
32     private PolicyConfigType policyType;
33     private String config;
34     private String policyName;
35     private String policyVersion;
36     private Map<String, String> matchingConditions;
37     private Map<String, String> responseAttributes;
38     private Map<String, String> property;
39     public String getConfig() {
40         return config;
41     }
42     public void setConfig(String config) {
43         this.config = config;
44     }
45     public PolicyType getType() {
46         return type;
47     }
48     public void setType(PolicyType type) {
49         this.type = type;
50     }
51     public PolicyConfigStatus getPolicyConfigStatus() {
52         return policyConfigStatus;
53     }
54     public void setPolicyConfigStatus(PolicyConfigStatus policyConfigStatus) {
55         this.policyConfigStatus = policyConfigStatus;
56     }
57     public String getPolicyConfigMessage() {
58         return policyConfigMessage;
59     }
60     public void setPolicyConfigMessage(String policyConfigMessage) {
61         this.policyConfigMessage = policyConfigMessage;
62     }
63     public Map<String, String> getProperty() {
64         return property;
65     }
66     public void setProperty(Map<String, String> property) {
67         this.property = property;
68     }
69     public String getPolicyName(){
70         return policyName;
71     }
72     public void setPolicyName(String policyName){
73         this.policyName = policyName;
74     }
75     public String getPolicyVersion(){
76         return policyVersion;
77     }
78     public void setPolicyVersion(String policyVersion){
79         this.policyVersion = policyVersion;
80     }
81     public Map<String, String> getMatchingConditions(){
82         return matchingConditions;
83     }
84     public void setMatchingConditions(Map<String, String> matchingConditions){
85         this.matchingConditions = matchingConditions;
86     }
87     public void setResponseAttributes(Map<String,String> responseAttributes){
88         this.responseAttributes = responseAttributes;
89     }
90     public Map<String,String> getResponseAttributes(){
91         return responseAttributes;
92     }
93     public PolicyConfigType getPolicyType() {
94         return policyType;
95     }
96     public void setPolicyType(PolicyConfigType policyType) {
97         this.policyType = policyType;
98     }
99 }