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