Convert tabs to spaces
[ccsdk/sli/adaptors.git] / aai-service / provider / src / main / java / org / onap / sli / adaptors / aai / data / ServiceException.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * openECOMP : SDN-C
4  * ================================================================================
5  * Copyright (C) 2017 ONAP Intellectual Property. All rights
6  *                                              reserved.
7  * ================================================================================
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  * 
12  *      http://www.apache.org/licenses/LICENSE-2.0
13  * 
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  * ============LICENSE_END=========================================================
20  */
21
22 package org.onap.ccsdk.sli.adaptors.aai.data;
23
24 import java.util.ArrayList;
25 import java.util.HashMap;
26 import java.util.List;
27 import java.util.Map;
28
29 import javax.annotation.Generated;
30
31 import com.fasterxml.jackson.annotation.JsonAnyGetter;
32 import com.fasterxml.jackson.annotation.JsonAnySetter;
33 import com.fasterxml.jackson.annotation.JsonIgnore;
34 import com.fasterxml.jackson.annotation.JsonInclude;
35 import com.fasterxml.jackson.annotation.JsonProperty;
36 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
37
38 @JsonInclude(JsonInclude.Include.NON_NULL)
39 @Generated("org.jsonschema2pojo")
40 @JsonPropertyOrder({
41     "messageId",
42     "text",
43     "variables"
44 })
45 public class ServiceException {
46
47     @JsonProperty("messageId")
48     private String messageId;
49     @JsonProperty("text")
50     private String text;
51     @JsonProperty("variables")
52     private List<String> variables = new ArrayList<String>();
53     @JsonIgnore
54     private Map<String, Object> additionalProperties = new HashMap<String, Object>();
55
56     /**
57      * 
58      * @return
59      *     The messageId
60      */
61     @JsonProperty("messageId")
62     public String getMessageId() {
63         return messageId;
64     }
65
66     /**
67      * 
68      * @param messageId
69      *     The messageId
70      */
71     @JsonProperty("messageId")
72     public void setMessageId(String messageId) {
73         this.messageId = messageId;
74     }
75
76     /**
77      * 
78      * @return
79      *     The text
80      */
81     @JsonProperty("text")
82     public String getText() {
83         return text;
84     }
85
86     /**
87      * 
88      * @param text
89      *     The text
90      */
91     @JsonProperty("text")
92     public void setText(String text) {
93         this.text = text;
94     }
95
96     /**
97      * 
98      * @return
99      *     The variables
100      */
101     @JsonProperty("variables")
102     public List<String> getVariables() {
103         return variables;
104     }
105
106     /**
107      * 
108      * @param variables
109      *     The variables
110      */
111     @JsonProperty("variables")
112     public void setVariables(List<String> variables) {
113         this.variables = variables;
114     }
115
116     @JsonAnyGetter
117     public Map<String, Object> getAdditionalProperties() {
118         return this.additionalProperties;
119     }
120
121     @JsonAnySetter
122     public void setAdditionalProperty(String name, Object value) {
123         this.additionalProperties.put(name, value);
124     }
125
126 }