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.pdp.rest.api.models;
22 import io.swagger.annotations.ApiModel;
26 import org.onap.policy.api.PolicyConfigStatus;
27 import org.onap.policy.api.PolicyConfigType;
28 import org.onap.policy.api.PolicyType;
29 import org.onap.policy.models.APIConfigResponse;
32 public class PolicyConfig implements APIConfigResponse{
33 private String policyConfigMessage;
34 private PolicyConfigStatus policyConfigStatus;
35 private PolicyType type;
36 private String config;
37 private String policyName;
38 private PolicyConfigType policyType;
39 private String policyVersion;
40 private Map<String, String> matchingConditions;
41 private Map<String, String> responseAttributes;
42 private Map<String, String> property;
43 public String getConfig() {
46 public void setConfig(String config) {
49 public PolicyType getType() {
52 public void setType(PolicyType type) {
55 public PolicyConfigStatus getPolicyConfigStatus() {
56 return policyConfigStatus;
58 public void setPolicyConfigStatus(PolicyConfigStatus policyConfigStatus) {
59 this.policyConfigStatus = policyConfigStatus;
61 public String getPolicyConfigMessage() {
62 return policyConfigMessage;
64 public void setPolicyConfigMessage(String policyConfigMessage) {
65 this.policyConfigMessage = policyConfigMessage;
67 public Map<String, String> getProperty() {
70 public void setProperty(Map<String, String> property) {
71 this.property = property;
73 public String getPolicyName(){
76 public void setPolicyName(String policyName){
77 this.policyName = policyName;
79 public String getPolicyVersion(){
82 public void setPolicyVersion(String policyVersion){
83 this.policyVersion = policyVersion;
85 public Map<String, String> getMatchingConditions(){
86 return matchingConditions;
88 public void setMatchingConditions(Map<String, String> matchingConditions){
89 this.matchingConditions = matchingConditions;
91 public void setResponseAttributes(Map<String,String> responseAttributes){
92 this.responseAttributes = responseAttributes;
94 public Map<String,String> getResponseAttributes(){
95 return responseAttributes;
97 public PolicyConfigType getPolicyType() {
100 public void setPolicyType(PolicyConfigType policyType) {
101 this.policyType = policyType;