2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright © 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 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22 package org.onap.aai.domain.restPolicyException;
24 import java.util.ArrayList;
25 import java.util.HashMap;
26 import java.util.List;
28 import javax.annotation.Generated;
29 import com.fasterxml.jackson.annotation.JsonAnyGetter;
30 import com.fasterxml.jackson.annotation.JsonAnySetter;
31 import com.fasterxml.jackson.annotation.JsonIgnore;
32 import com.fasterxml.jackson.annotation.JsonInclude;
33 import com.fasterxml.jackson.annotation.JsonProperty;
34 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
36 @JsonInclude(JsonInclude.Include.NON_NULL)
37 @Generated("org.jsonschema2pojo")
43 public class PolicyException {
45 @JsonProperty("messageId")
46 private String messageId;
49 @JsonProperty("variables")
50 private List<String> variables = new ArrayList<String>();
52 private Map<String, Object> additionalProperties = new HashMap<String, Object>();
55 * Gets the message id.
57 * @return The messageId
59 @JsonProperty("messageId")
60 public String getMessageId() {
65 * Sets the message id.
67 * @param messageId The messageId
69 @JsonProperty("messageId")
70 public void setMessageId(String messageId) {
71 this.messageId = messageId;
80 public String getText() {
87 * @param text The text
90 public void setText(String text) {
97 * @return The variables
99 @JsonProperty("variables")
100 public List<String> getVariables() {
105 * Sets the variables.
107 * @param variables The variables
109 @JsonProperty("variables")
110 public void setVariables(List<String> variables) {
111 this.variables = variables;
115 * Gets the additional properties.
117 * @return the additional properties
120 public Map<String, Object> getAdditionalProperties() {
121 return this.additionalProperties;
125 * Sets the additional property.
127 * @param name the name
128 * @param value the value
131 public void setAdditionalProperty(String name, Object value) {
132 this.additionalProperties.put(name, value);