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