Merge "Add debugging of REST call"
[policy/drools-applications.git] / controlloop / common / model-impl / so / src / main / java / org / onap / policy / so / SoServiceExceptionHolder.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * so
4  * ================================================================================
5  * Copyright (C) 2017-2019 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.policy.so;
22
23 import com.google.gson.annotations.SerializedName;
24
25 import java.io.Serializable;
26 import java.util.LinkedList;
27 import java.util.List;
28
29 public class SoServiceExceptionHolder implements Serializable {
30
31     private static final long serialVersionUID = -3283942659786236032L;
32
33     @SerializedName("messageId")
34     private String messageId;
35
36     @SerializedName("text")
37     private String text;
38
39     @SerializedName("variables")
40     private List<String> variables = new LinkedList<>();
41
42     public SoServiceExceptionHolder() {
43         // required by author
44     }
45
46     public String getMessageId() {
47         return messageId;
48     }
49
50     public String getText() {
51         return text;
52     }
53
54     public List<String> getVariables() {
55         return variables;
56     }
57
58     public void setMessageId(String messageId) {
59         this.messageId = messageId;
60     }
61
62     public void setText(String text) {
63         this.text = text;
64     }
65
66 }