2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
20 package org.onap.policy.models;
24 import org.onap.policy.api.PolicyConfigStatus;
25 import org.onap.policy.api.PolicyConfigType;
26 import org.onap.policy.api.PolicyType;
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;
41 public String getConfig() {
44 public void setConfig(String config) {
48 public PolicyType getType() {
51 public void setType(PolicyType type) {
55 public PolicyConfigStatus getPolicyConfigStatus() {
56 return policyConfigStatus;
58 public void setPolicyConfigStatus(PolicyConfigStatus policyConfigStatus) {
59 this.policyConfigStatus = policyConfigStatus;
62 public String getPolicyConfigMessage() {
63 return policyConfigMessage;
65 public void setPolicyConfigMessage(String policyConfigMessage) {
66 this.policyConfigMessage = policyConfigMessage;
69 public Map<String, String> getProperty() {
72 public void setProperty(Map<String, String> property) {
73 this.property = property;
76 public String getPolicyName(){
79 public void setPolicyName(String policyName){
80 this.policyName = policyName;
83 public String getPolicyVersion(){
86 public void setPolicyVersion(String policyVersion){
87 this.policyVersion = policyVersion;
90 public Map<String, String> getMatchingConditions(){
91 return matchingConditions;
93 public void setMatchingConditions(Map<String, String> matchingConditions){
94 this.matchingConditions = matchingConditions;
96 public void setResponseAttributes(Map<String,String> responseAttributes){
97 this.responseAttributes = responseAttributes;
99 public Map<String,String> getResponseAttributes(){
100 return responseAttributes;
102 public PolicyConfigType getPolicyType() {
105 public void setPolicyType(PolicyConfigType policyType) {
106 this.policyType = policyType;