e65413f503aaac33fb6550e2698314c7738d0489
[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     
40     @Override
41     public String getConfig() {
42         return config;
43     }
44     public void setConfig(String config) {
45         this.config = config;
46     }
47     @Override
48     public PolicyType getType() {
49         return type;
50     }
51     public void setType(PolicyType type) {
52         this.type = type;
53     }
54     @Override
55     public PolicyConfigStatus getPolicyConfigStatus() {
56         return policyConfigStatus;
57     }
58     public void setPolicyConfigStatus(PolicyConfigStatus policyConfigStatus) {
59         this.policyConfigStatus = policyConfigStatus;
60     }
61     @Override
62     public String getPolicyConfigMessage() {
63         return policyConfigMessage;
64     }
65     public void setPolicyConfigMessage(String policyConfigMessage) {
66         this.policyConfigMessage = policyConfigMessage;
67     }
68     @Override
69     public Map<String, String> getProperty() {
70         return property;
71     }
72     public void setProperty(Map<String, String> property) {
73         this.property = property;
74     }
75     @Override
76     public String getPolicyName(){
77         return policyName;
78     }
79     public void setPolicyName(String policyName){
80         this.policyName = policyName;
81     }
82     @Override
83     public String getPolicyVersion(){
84         return policyVersion;
85     }
86     public void setPolicyVersion(String policyVersion){
87         this.policyVersion = policyVersion;
88     }
89     @Override
90     public Map<String, String> getMatchingConditions(){
91         return matchingConditions;
92     }
93     public void setMatchingConditions(Map<String, String> matchingConditions){
94         this.matchingConditions = matchingConditions;
95     }
96     public void setResponseAttributes(Map<String,String> responseAttributes){
97         this.responseAttributes = responseAttributes;
98     }
99     public Map<String,String> getResponseAttributes(){
100         return responseAttributes;
101     }
102     public PolicyConfigType getPolicyType() {
103         return policyType;
104     }
105     public void setPolicyType(PolicyConfigType policyType) {
106         this.policyType = policyType;
107     }
108 }