2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.onap.so.apihandler.camundabeans;
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;
29 * POJO which encapsulates the fields required to create a JSON request to invoke generic macro BPEL.
31 @JsonPropertyOrder({CommonConstants.G_REQUEST_ID, CommonConstants.G_ACTION})
32 @JsonRootName(CommonConstants.CAMUNDA_ROOT_INPUT)
33 public class CamundaMacroRequest {
35 @JsonProperty(CommonConstants.G_REQUEST_ID)
36 private CamundaInput requestId;
38 @JsonProperty(CommonConstants.G_ACTION)
39 private CamundaInput action;
41 @JsonProperty(CommonConstants.G_SERVICEINSTANCEID)
42 private CamundaInput serviceInstanceId;
48 * @param requestId New value of requestId.
50 public void setRequestId(CamundaInput requestId) {
51 this.requestId = requestId;
57 * @return Value of action.
59 public CamundaInput getAction() {
66 * @param action New value of action.
68 public void setAction(CamundaInput action) {
75 * @return Value of requestId.
77 public CamundaInput getRequestId() {
82 * Sets new serviceInstanceId.
84 * @param serviceInstanceId New value of serviceInstanceId.
86 public void setServiceInstanceId(CamundaInput serviceInstanceId) {
87 this.serviceInstanceId = serviceInstanceId;
91 * Gets serviceInstanceId.
93 * @return Value of serviceInstanceId.
95 public CamundaInput getServiceInstanceId() {
96 return serviceInstanceId;
100 public String toString() {
101 return "CamundaMacroRequest{" +
102 "requestId=" + requestId +
103 ", action=" + action +
104 ", serviceInstanceId=" + serviceInstanceId +