2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 - 2018 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=========================================================
21 package org.onap.so.client.policy.entities;
23 import java.util.HashMap;
26 import com.fasterxml.jackson.annotation.JsonInclude;
27 import com.fasterxml.jackson.annotation.JsonProperty;
28 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
30 @JsonInclude(JsonInclude.Include.NON_NULL)
32 "policyConfigMessage",
43 public class PolicyConfig {
45 @JsonProperty("policyConfigMessage")
46 private String policyConfigMessage;
47 @JsonProperty("policyConfigStatus")
48 private String policyConfigStatus;
51 @JsonProperty("config")
52 private String config;
53 @JsonProperty("policyName")
54 private String policyName;
55 @JsonProperty("policyType")
56 private String policyType;
57 @JsonProperty("policyVersion")
58 private String policyVersion;
59 @JsonProperty("matchingConditions")
60 private Map<String, String> matchingConditions = new HashMap<>();
61 @JsonProperty("responseAttributes")
62 private Map<String, String> responseAttributes = new HashMap<>();
63 @JsonProperty("property")
64 private Object property;
66 @JsonProperty("policyConfigMessage")
67 public String getPolicyConfigMessage() {
68 return policyConfigMessage;
71 @JsonProperty("policyConfigMessage")
72 public void setPolicyConfigMessage(String policyConfigMessage) {
73 this.policyConfigMessage = policyConfigMessage;
76 @JsonProperty("policyConfigStatus")
77 public String getPolicyConfigStatus() {
78 return policyConfigStatus;
81 @JsonProperty("policyConfigStatus")
82 public void setPolicyConfigStatus(String policyConfigStatus) {
83 this.policyConfigStatus = policyConfigStatus;
87 public String getType() {
92 public void setType(String type) {
96 @JsonProperty("config")
97 public String getConfig() {
101 @JsonProperty("config")
102 public void setConfig(String config) {
103 this.config = config;
106 @JsonProperty("policyName")
107 public String getPolicyName() {
111 @JsonProperty("policyName")
112 public void setPolicyName(String policyName) {
113 this.policyName = policyName;
116 @JsonProperty("policyType")
117 public String getPolicyType() {
121 @JsonProperty("policyType")
122 public void setPolicyType(String policyType) {
123 this.policyType = policyType;
126 @JsonProperty("policyVersion")
127 public String getPolicyVersion() {
128 return policyVersion;
131 @JsonProperty("policyVersion")
132 public void setPolicyVersion(String policyVersion) {
133 this.policyVersion = policyVersion;
136 @JsonProperty("matchingConditions")
137 public Map<String, String> getMatchingConditions() {
138 return matchingConditions;
141 @JsonProperty("matchingConditions")
142 public void setMatchingConditions(Map<String, String> matchingConditions) {
143 this.matchingConditions = matchingConditions;
146 @JsonProperty("responseAttributes")
147 public Map<String, String> getResponseAttributes() {
148 return responseAttributes;
151 @JsonProperty("responseAttributes")
152 public void setResponseAttributes(Map<String, String> responseAttributes) {
153 this.responseAttributes = responseAttributes;
156 @JsonProperty("property")
157 public Object getProperty() {
161 @JsonProperty("property")
162 public void setProperty(Object property) {
163 this.property = property;