Replaced all tabs with spaces in java and pom.xml
[so.git] / mso-api-handlers / mso-api-handler-common / src / main / java / org / onap / so / apihandler / camundabeans / CamundaRequest.java
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
24
25 import org.onap.so.apihandler.common.CommonConstants;
26 import com.fasterxml.jackson.annotation.JsonProperty;
27 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
28 import com.fasterxml.jackson.annotation.JsonRootName;
29
30 /**
31  * JavaBean JSON class for a "variables" which contains the xml payload that will be passed to the Camunda process
32  * 
33  */
34 @JsonPropertyOrder({CommonConstants.CAMUNDA_SERVICE_INPUT, CommonConstants.CAMUNDA_HOST,
35         CommonConstants.SCHEMA_VERSION_HEADER, CommonConstants.REQUEST_ID_HEADER,
36         CommonConstants.SERVICE_INSTANCE_ID_HEADER, CommonConstants.REQUEST_TIMEOUT_HEADER,
37         CommonConstants.CAMUNDA_SERVICE_INPUT})
38 @JsonRootName(CommonConstants.CAMUNDA_ROOT_INPUT)
39 public class CamundaRequest {
40
41     @JsonProperty(CommonConstants.CAMUNDA_SERVICE_INPUT)
42     private CamundaInput serviceInput;
43
44     @JsonProperty(CommonConstants.CAMUNDA_HOST)
45     private CamundaInput host;
46
47     @JsonProperty(CommonConstants.SCHEMA_VERSION_HEADER)
48     private CamundaInput schema;
49
50     @JsonProperty(CommonConstants.REQUEST_ID_HEADER)
51     private CamundaInput reqid;
52
53     @JsonProperty(CommonConstants.SERVICE_INSTANCE_ID_HEADER)
54     private CamundaInput svcid;
55
56     @JsonProperty(CommonConstants.REQUEST_TIMEOUT_HEADER)
57     private CamundaInput timeout;
58
59     public CamundaRequest() {}
60
61     @JsonProperty(CommonConstants.CAMUNDA_SERVICE_INPUT)
62     public CamundaInput getServiceInput() {
63         return serviceInput;
64     }
65
66     @JsonProperty(CommonConstants.CAMUNDA_SERVICE_INPUT)
67     public void setServiceInput(CamundaInput serviceInput) {
68         this.serviceInput = serviceInput;
69     }
70
71     @JsonProperty(CommonConstants.CAMUNDA_HOST)
72     public CamundaInput getHost() {
73         return host;
74     }
75
76     @JsonProperty(CommonConstants.CAMUNDA_HOST)
77     public void setHost(CamundaInput host) {
78         this.host = host;
79     }
80
81     @JsonProperty(CommonConstants.SCHEMA_VERSION_HEADER)
82     public CamundaInput getSchema() {
83         return schema;
84     }
85
86     @JsonProperty(CommonConstants.SCHEMA_VERSION_HEADER)
87     public void setSchema(CamundaInput schema) {
88         this.schema = schema;
89     }
90
91     @JsonProperty(CommonConstants.REQUEST_ID_HEADER)
92     public CamundaInput getReqid() {
93         return reqid;
94     }
95
96     @JsonProperty(CommonConstants.REQUEST_ID_HEADER)
97     public void setReqid(CamundaInput reqid) {
98         this.reqid = reqid;
99     }
100
101     @JsonProperty(CommonConstants.SERVICE_INSTANCE_ID_HEADER)
102     public CamundaInput getSvcid() {
103         return svcid;
104     }
105
106     @JsonProperty(CommonConstants.SERVICE_INSTANCE_ID_HEADER)
107     public void setSvcid(CamundaInput svcid) {
108         this.svcid = svcid;
109     }
110
111
112     @JsonProperty(CommonConstants.REQUEST_TIMEOUT_HEADER)
113     public CamundaInput getTimeout() {
114         return timeout;
115     }
116
117     @JsonProperty(CommonConstants.REQUEST_TIMEOUT_HEADER)
118     public void setTimeout(CamundaInput timeout) {
119         this.timeout = timeout;
120     }
121
122
123
124     @Override
125     public String toString() {
126         return "CamundaRequest [serviceInput=" + serviceInput + ", host=" + host + ", schema=" + schema + ", reqid="
127                 + reqid + ", svcid=" + svcid + ", timeout=" + timeout + "]";
128     }
129
130 }