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)
31 @JsonPropertyOrder({"transactionId", "requestId", "callbackUrl", "sourceId", "requestType", "numSolutions",
32 "optimizers", "timeout"})
33 @JsonRootName("requestInfo")
34 public class RequestInfo implements Serializable {
36 private static final long serialVersionUID = -759180997599143791L;
38 @JsonProperty("transactionId")
39 private String transactionId;
40 @JsonProperty("requestId")
41 private String requestId;
42 @JsonProperty("callbackUrl")
43 private String callbackUrl;
44 @JsonProperty("sourceId")
45 private String sourceId;
46 @JsonProperty("requestType")
47 private String requestType;
48 @JsonProperty("numSolutions")
49 private Integer numSolutions;
50 @JsonProperty("optimizers")
51 private List<String> optimizers = null;
52 @JsonProperty("timeout")
55 @JsonProperty("transactionId")
56 public String getTransactionId() {
60 @JsonProperty("transactionId")
61 public void setTransactionId(String transactionId) {
62 this.transactionId = transactionId;
65 @JsonProperty("requestId")
66 public String getRequestId() {
70 @JsonProperty("requestId")
71 public void setRequestId(String requestId) {
72 this.requestId = requestId;
75 @JsonProperty("callbackUrl")
76 public String getCallbackUrl() {
80 @JsonProperty("callbackUrl")
81 public void setCallbackUrl(String callbackUrl) {
82 this.callbackUrl = callbackUrl;
85 @JsonProperty("sourceId")
86 public String getSourceId() {
90 @JsonProperty("sourceId")
91 public void setSourceId(String sourceId) {
92 this.sourceId = sourceId;
95 @JsonProperty("requestType")
96 public String getRequestType() {
100 @JsonProperty("requestType")
101 public void setRequestType(String requestType) {
102 this.requestType = requestType;
105 @JsonProperty("numSolutions")
106 public Integer getNumSolutions() {
110 @JsonProperty("numSolutions")
111 public void setNumSolutions(Integer numSolutions) {
112 this.numSolutions = numSolutions;
115 @JsonProperty("optimizers")
116 public List<String> getOptimizers() {
120 @JsonProperty("optimizers")
121 public void setOptimizers(List<String> optimizers) {
122 this.optimizers = optimizers;
125 @JsonProperty("timeout")
126 public Long getTimeout() {
130 @JsonProperty("timeout")
131 public void setTimeout(Long timeout) {
132 this.timeout = timeout;