c57c0965b9d0e73cee298c4321c47fc7107312b5
[so.git] / mso-api-handlers / mso-api-handler-common / src / main / java / org / onap / so / apihandler / camundabeans / CamundaMacroRequest.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 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.so.apihandler.camundabeans;
22
23 import com.fasterxml.jackson.annotation.JsonProperty;
24 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
25 import com.fasterxml.jackson.annotation.JsonRootName;
26 import org.onap.so.apihandler.common.CommonConstants;
27
28 /**
29  * POJO which encapsulates the fields required to create a JSON request to invoke generic macro BPEL.
30  */
31 @JsonPropertyOrder({CommonConstants.G_REQUEST_ID, CommonConstants.G_ACTION})
32 @JsonRootName(CommonConstants.CAMUNDA_ROOT_INPUT)
33 public class CamundaMacroRequest {
34
35     @JsonProperty(CommonConstants.G_REQUEST_ID)
36     private CamundaInput requestId;
37
38     @JsonProperty(CommonConstants.G_ACTION)
39     private CamundaInput action;
40
41     @JsonProperty(CommonConstants.G_SERVICEINSTANCEID)
42     private CamundaInput serviceInstanceId;
43
44
45     /**
46      * Sets new requestId.
47      *
48      * @param requestId New value of requestId.
49      */
50     public void setRequestId(CamundaInput requestId) {
51         this.requestId = requestId;
52     }
53
54     /**
55      * Gets action.
56      *
57      * @return Value of action.
58      */
59     public CamundaInput getAction() {
60         return action;
61     }
62
63     /**
64      * Sets new action.
65      *
66      * @param action New value of action.
67      */
68     public void setAction(CamundaInput action) {
69         this.action = action;
70     }
71
72     /**
73      * Gets requestId.
74      *
75      * @return Value of requestId.
76      */
77     public CamundaInput getRequestId() {
78         return requestId;
79     }
80
81     /**
82      * Sets new serviceInstanceId.
83      *
84      * @param serviceInstanceId New value of serviceInstanceId.
85      */
86     public void setServiceInstanceId(CamundaInput serviceInstanceId) {
87         this.serviceInstanceId = serviceInstanceId;
88     }
89
90     /**
91      * Gets serviceInstanceId.
92      *
93      * @return Value of serviceInstanceId.
94      */
95     public CamundaInput getServiceInstanceId() {
96         return serviceInstanceId;
97     }
98
99     @Override
100     public String toString() {
101         return "CamundaMacroRequest{" +
102                 "requestId=" + requestId +
103                 ", action=" + action +
104                 ", serviceInstanceId=" + serviceInstanceId +
105                 '}';
106     }
107 }