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;
39 public String getConfig() {
42 public void setConfig(String config) {
45 public PolicyType getType() {
48 public void setType(PolicyType type) {
51 public PolicyConfigStatus getPolicyConfigStatus() {
52 return policyConfigStatus;
54 public void setPolicyConfigStatus(PolicyConfigStatus policyConfigStatus) {
55 this.policyConfigStatus = policyConfigStatus;
57 public String getPolicyConfigMessage() {
58 return policyConfigMessage;
60 public void setPolicyConfigMessage(String policyConfigMessage) {
61 this.policyConfigMessage = policyConfigMessage;
63 public Map<String, String> getProperty() {
66 public void setProperty(Map<String, String> property) {
67 this.property = property;
69 public String getPolicyName(){
72 public void setPolicyName(String policyName){
73 this.policyName = policyName;
75 public String getPolicyVersion(){
78 public void setPolicyVersion(String policyVersion){
79 this.policyVersion = policyVersion;
81 public Map<String, String> getMatchingConditions(){
82 return matchingConditions;
84 public void setMatchingConditions(Map<String, String> matchingConditions){
85 this.matchingConditions = matchingConditions;
87 public void setResponseAttributes(Map<String,String> responseAttributes){
88 this.responseAttributes = responseAttributes;
90 public Map<String,String> getResponseAttributes(){
91 return responseAttributes;
93 public PolicyConfigType getPolicyType() {
96 public void setPolicyType(PolicyConfigType policyType) {
97 this.policyType = policyType;