6831fe54e9106d256b7539773fd34dc3798d52e5
[so.git] / bpmn / so-bpmn-tasks / src / main / java / org / onap / so / client / oof / beans / RequestInfo.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2018 Intel Corp.  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.client.oof.beans;
22
23 import java.io.Serializable;
24 import java.util.List;
25 import com.fasterxml.jackson.annotation.JsonInclude;
26 import com.fasterxml.jackson.annotation.JsonProperty;
27 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
28 import com.fasterxml.jackson.annotation.JsonRootName;
29
30 @JsonInclude(JsonInclude.Include.NON_NULL)
31 @JsonPropertyOrder({
32     "transactionId",
33     "requestId",
34     "callbackUrl",
35     "sourceId",
36     "requestType",
37     "numSolutions",
38     "optimizers",
39     "timeout"
40 })
41 @JsonRootName("requestInfo")
42 public class RequestInfo implements Serializable {
43
44     private static final long serialVersionUID = -759180997599143791L;
45
46     @JsonProperty("transactionId")
47     private String transactionId;
48     @JsonProperty("requestId")
49     private String requestId;
50     @JsonProperty("callbackUrl")
51     private String callbackUrl;
52     @JsonProperty("sourceId")
53     private String sourceId;
54     @JsonProperty("requestType")
55     private String requestType;
56     @JsonProperty("numSolutions")
57     private Integer numSolutions;
58     @JsonProperty("optimizers")
59     private List<String> optimizers = null;
60     @JsonProperty("timeout")
61     private Long timeout;
62
63     @JsonProperty("transactionId")
64     public String getTransactionId() {
65         return transactionId;
66     }
67
68     @JsonProperty("transactionId")
69     public void setTransactionId(String transactionId) {
70         this.transactionId = transactionId;
71     }
72
73     @JsonProperty("requestId")
74     public String getRequestId() {
75         return requestId;
76     }
77
78     @JsonProperty("requestId")
79     public void setRequestId(String requestId) {
80         this.requestId = requestId;
81     }
82
83     @JsonProperty("callbackUrl")
84     public String getCallbackUrl() {
85         return callbackUrl;
86     }
87
88     @JsonProperty("callbackUrl")
89     public void setCallbackUrl(String callbackUrl) {
90         this.callbackUrl = callbackUrl;
91     }
92
93     @JsonProperty("sourceId")
94     public String getSourceId() {
95         return sourceId;
96     }
97
98     @JsonProperty("sourceId")
99     public void setSourceId(String sourceId) {
100         this.sourceId = sourceId;
101     }
102
103     @JsonProperty("requestType")
104     public String getRequestType() {
105         return requestType;
106     }
107
108     @JsonProperty("requestType")
109     public void setRequestType(String requestType) {
110         this.requestType = requestType;
111     }
112
113     @JsonProperty("numSolutions")
114     public Integer getNumSolutions() {
115         return numSolutions;
116     }
117
118     @JsonProperty("numSolutions")
119     public void setNumSolutions(Integer numSolutions) {
120         this.numSolutions = numSolutions;
121     }
122
123     @JsonProperty("optimizers")
124     public List<String> getOptimizers() {
125         return optimizers;
126     }
127
128     @JsonProperty("optimizers")
129     public void setOptimizers(List<String> optimizers) {
130         this.optimizers = optimizers;
131     }
132
133     @JsonProperty("timeout")
134     public Long getTimeout() {
135         return timeout;
136     }
137
138     @JsonProperty("timeout")
139     public void setTimeout(Long timeout) {
140         this.timeout = timeout;
141     }
142
143 }