2 * ============LICENSE_START=======================================================
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
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.client.oof.beans;
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;
30 @JsonInclude(JsonInclude.Include.NON_NULL)
41 @JsonRootName("requestInfo")
42 public class RequestInfo implements Serializable {
44 private static final long serialVersionUID = -759180997599143791L;
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")
63 @JsonProperty("transactionId")
64 public String getTransactionId() {
68 @JsonProperty("transactionId")
69 public void setTransactionId(String transactionId) {
70 this.transactionId = transactionId;
73 @JsonProperty("requestId")
74 public String getRequestId() {
78 @JsonProperty("requestId")
79 public void setRequestId(String requestId) {
80 this.requestId = requestId;
83 @JsonProperty("callbackUrl")
84 public String getCallbackUrl() {
88 @JsonProperty("callbackUrl")
89 public void setCallbackUrl(String callbackUrl) {
90 this.callbackUrl = callbackUrl;
93 @JsonProperty("sourceId")
94 public String getSourceId() {
98 @JsonProperty("sourceId")
99 public void setSourceId(String sourceId) {
100 this.sourceId = sourceId;
103 @JsonProperty("requestType")
104 public String getRequestType() {
108 @JsonProperty("requestType")
109 public void setRequestType(String requestType) {
110 this.requestType = requestType;
113 @JsonProperty("numSolutions")
114 public Integer getNumSolutions() {
118 @JsonProperty("numSolutions")
119 public void setNumSolutions(Integer numSolutions) {
120 this.numSolutions = numSolutions;
123 @JsonProperty("optimizers")
124 public List<String> getOptimizers() {
128 @JsonProperty("optimizers")
129 public void setOptimizers(List<String> optimizers) {
130 this.optimizers = optimizers;
133 @JsonProperty("timeout")
134 public Long getTimeout() {
138 @JsonProperty("timeout")
139 public void setTimeout(Long timeout) {
140 this.timeout = timeout;