2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 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.serviceinstancebeans;
23 import java.io.Serializable;
25 import com.fasterxml.jackson.annotation.JsonInclude;
26 import com.fasterxml.jackson.annotation.JsonInclude.Include;
27 import com.fasterxml.jackson.annotation.JsonProperty;
28 import com.fasterxml.jackson.annotation.JsonRootName;
29 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
30 import com.fasterxml.jackson.databind.annotation.JsonSerialize.Inclusion;
32 @JsonRootName(value = "requestInfo")
33 @JsonInclude(Include.NON_DEFAULT)
34 public class RequestInfo implements Serializable {
36 private static final long serialVersionUID = -1370946827136030181L;
37 @JsonProperty("billingAccountNumber")
38 protected String billingAccountNumber;
39 @JsonProperty("callbackUrl")
40 protected String callbackUrl;
41 @JsonProperty("correlator")
42 protected String correlator;
43 @JsonProperty("orderNumber")
44 protected String orderNumber;
45 @JsonProperty("productFamilyId")
46 protected String productFamilyId;
47 @JsonProperty("orderVersion")
48 protected Integer orderVersion;
49 @JsonSerialize(include=Inclusion.ALWAYS)
50 @JsonProperty("source")
51 protected String source;
52 @JsonProperty("instanceName")
53 protected String instanceName;
54 @JsonProperty("suppressRollback")
55 @JsonSerialize(include=Inclusion.ALWAYS)
56 protected boolean suppressRollback;
57 @JsonProperty("requestorId")
58 protected String requestorId;
61 * Gets the value of the callbackUrl property.
68 public String getCallbackUrl() {
73 * Sets the value of the callbackUrl property.
80 public void setCallbackUrl(String value) {
81 this.callbackUrl = value;
85 * Gets the value of the correlator property.
92 public String getCorrelator() {
97 * Sets the value of the correlator property.
104 public void setCorrelator(String value) {
105 this.correlator = value;
109 * Gets the value of the orderNumber property.
116 public String getOrderNumber() {
121 * Sets the value of the orderNumber property.
128 public void setOrderNumber(String value) {
129 this.orderNumber = value;
133 * Gets the value of the orderVersion property.
140 public Integer getOrderVersion() {
145 * Sets the value of the orderVersion property.
152 public void setOrderVersion(Integer value) {
153 this.orderVersion = value;
157 * Gets the value of the source property.
164 public String getSource() {
169 * Sets the value of the source property.
176 public void setSource(String value) {
180 public String getInstanceName() {
184 public void setInstanceName(String instanceName) {
185 this.instanceName = instanceName;
188 public String getBillingAccountNumber() {
189 return billingAccountNumber;
192 public void setBillingAccountNumber(String billingAccountNumber) {
193 this.billingAccountNumber = billingAccountNumber;
196 public String getProductFamilyId() {
197 return productFamilyId;
200 public void setProductFamilyId(String productFamilyId) {
201 this.productFamilyId = productFamilyId;
205 * Required for Marshalers to send the fields.
208 public boolean getSuppressRollback() {
209 return suppressRollback;
212 public void setSuppressRollback(boolean suppressRollback) {
213 this.suppressRollback = suppressRollback;
216 public String getRequestorId() {
220 public void setRequestorId(String requestorId) {
221 this.requestorId = requestorId;
225 public String toString() {
226 return "RequestInfo [billingAccountNumber=" + billingAccountNumber
227 + ", callbackUrl=" + callbackUrl + ", correlator=" + correlator
228 + ", orderNumber=" + orderNumber + ", productFamilyId="
229 + productFamilyId + ", orderVersion=" + orderVersion
230 + ", source=" + source + ", instanceName=" + instanceName
231 + ", suppressRollback=" + suppressRollback + ", requestorId="