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.PolicyType;
27 public class APIPolicyConfigResponse implements APIConfigResponse {
28 private String policyConfigMessage;
29 private PolicyConfigStatus policyConfigStatus;
30 private PolicyType type;
31 private String config;
32 private String policyName;
33 private String policyVersion;
34 private Map<String, String> matchingConditions;
35 private Map<String, String> responseAttributes;
36 private Map<String, String> property;
37 public String getConfig() {
40 public void setConfig(String config) {
43 public PolicyType getType() {
46 public void setType(PolicyType type) {
49 public PolicyConfigStatus getPolicyConfigStatus() {
50 return policyConfigStatus;
52 public void setPolicyConfigStatus(PolicyConfigStatus policyConfigStatus) {
53 this.policyConfigStatus = policyConfigStatus;
55 public String getPolicyConfigMessage() {
56 return policyConfigMessage;
58 public void setPolicyConfigMessage(String policyConfigMessage) {
59 this.policyConfigMessage = policyConfigMessage;
61 public Map<String, String> getProperty() {
64 public void setProperty(Map<String, String> property) {
65 this.property = property;
67 public String getPolicyName(){
70 public void setPolicyName(String policyName){
71 this.policyName = policyName;
73 public String getPolicyVersion(){
76 public void setPolicyVersion(String policyVersion){
77 this.policyVersion = policyVersion;
79 public Map<String, String> getMatchingConditions(){
80 return matchingConditions;
82 public void setMatchingConditions(Map<String, String> matchingConditions){
83 this.matchingConditions = matchingConditions;
85 public void setResponseAttributes(Map<String,String> responseAttributes){
86 this.responseAttributes = responseAttributes;
88 public Map<String,String> getResponseAttributes(){
89 return responseAttributes;