Update the license for 2017-2018 license
[aai/aai-common.git] / aai-core / src / main / java / org / onap / aai / domain / restPolicyException / PolicyException.java
1 /**
2  * ============LICENSE_START=======================================================
3  * org.onap.aai
4  * ================================================================================
5  * Copyright © 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
10  *
11  *    http://www.apache.org/licenses/LICENSE-2.0
12  *
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=========================================================
19  */
20 package org.onap.aai.domain.restPolicyException;
21
22 import java.util.ArrayList;
23 import java.util.HashMap;
24 import java.util.List;
25 import java.util.Map;
26 import javax.annotation.Generated;
27 import com.fasterxml.jackson.annotation.JsonAnyGetter;
28 import com.fasterxml.jackson.annotation.JsonAnySetter;
29 import com.fasterxml.jackson.annotation.JsonIgnore;
30 import com.fasterxml.jackson.annotation.JsonInclude;
31 import com.fasterxml.jackson.annotation.JsonProperty;
32 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
33
34 @JsonInclude(JsonInclude.Include.NON_NULL)
35 @Generated("org.jsonschema2pojo")
36 @JsonPropertyOrder({
37     "messageId",
38     "text",
39     "variables"
40 })
41 public class PolicyException {
42
43     @JsonProperty("messageId")
44     private String messageId;
45     @JsonProperty("text")
46     private String text;
47     @JsonProperty("variables")
48     private List<String> variables = new ArrayList<String>();
49     @JsonIgnore
50     private Map<String, Object> additionalProperties = new HashMap<String, Object>();
51
52     /**
53      * Gets the message id.
54      *
55      * @return     The messageId
56      */
57     @JsonProperty("messageId")
58     public String getMessageId() {
59         return messageId;
60     }
61
62     /**
63      * Sets the message id.
64      *
65      * @param messageId     The messageId
66      */
67     @JsonProperty("messageId")
68     public void setMessageId(String messageId) {
69         this.messageId = messageId;
70     }
71
72     /**
73      * Gets the text.
74      *
75      * @return     The text
76      */
77     @JsonProperty("text")
78     public String getText() {
79         return text;
80     }
81
82     /**
83      * Sets the text.
84      *
85      * @param text     The text
86      */
87     @JsonProperty("text")
88     public void setText(String text) {
89         this.text = text;
90     }
91
92     /**
93      * Gets the variables.
94      *
95      * @return     The variables
96      */
97     @JsonProperty("variables")
98     public List<String> getVariables() {
99         return variables;
100     }
101
102     /**
103      * Sets the variables.
104      *
105      * @param variables     The variables
106      */
107     @JsonProperty("variables")
108     public void setVariables(List<String> variables) {
109         this.variables = variables;
110     }
111
112     /**
113      * Gets the additional properties.
114      *
115      * @return the additional properties
116      */
117     @JsonAnyGetter
118     public Map<String, Object> getAdditionalProperties() {
119         return this.additionalProperties;
120     }
121
122     /**
123      * Sets the additional property.
124      *
125      * @param name the name
126      * @param value the value
127      */
128     @JsonAnySetter
129     public void setAdditionalProperty(String name, Object value) {
130         this.additionalProperties.put(name, value);
131     }
132
133 }