8977f11e36dd8bac89be00b77f5558dc4ad10c5d
[so.git] /
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 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
21 package org.onap.so.apihandler.camundabeans;
22
23 import com.fasterxml.jackson.annotation.JsonProperty;
24
25 /**
26  * JavaBean JSON class for a "variables" which contains the xml payload that will be passed to the Camunda process
27  * 
28  */
29
30 public class CamundaResponse {
31
32     @JsonProperty("response")
33     private String response;
34     @JsonProperty("messageCode")
35     private int messageCode;
36     @JsonProperty("message")
37     private String message;
38     @JsonProperty("processInstanceID")
39     private String processInstanceID;
40     @JsonProperty("variables")
41     private String variables;
42
43     public String getProcessInstanceID() {
44         return processInstanceID;
45     }
46
47     public void setProcessInstanceID(String processInstanceID) {
48         this.processInstanceID = processInstanceID;
49     }
50
51     public String getVariables() {
52         return variables;
53     }
54
55     public void setVariables(String variables) {
56         this.variables = variables;
57     }
58
59     public CamundaResponse() {}
60
61     public String getResponse() {
62         return response;
63     }
64
65     public void setResponse(String response) {
66         this.response = response;
67     }
68
69     public int getMessageCode() {
70         return messageCode;
71     }
72
73     public void setMessageCode(int messageCode) {
74         this.messageCode = messageCode;
75     }
76
77     public String getMessage() {
78         return message;
79     }
80
81     public void setMessage(String message) {
82         this.message = message;
83     }
84
85     @Override
86     public String toString() {
87         return "CamundaResponse [response=" + response + ", messageCode=" + messageCode + ", message=" + message + "]";
88     }
89
90
91
92 }