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