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.openecomp.mso.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() {
165 if(null == source || source.isEmpty()){
172 * Sets the value of the source property.
179 public void setSource(String value) {
183 public String getInstanceName() {
187 public void setInstanceName(String instanceName) {
188 this.instanceName = instanceName;
191 public String getBillingAccountNumber() {
192 return billingAccountNumber;
195 public void setBillingAccountNumber(String billingAccountNumber) {
196 this.billingAccountNumber = billingAccountNumber;
199 public String getProductFamilyId() {
200 return productFamilyId;
203 public void setProductFamilyId(String productFamilyId) {
204 this.productFamilyId = productFamilyId;
208 * Required for Marshalers to send the fields.
211 public boolean getSuppressRollback() {
212 return suppressRollback;
215 public void setSuppressRollback(boolean suppressRollback) {
216 this.suppressRollback = suppressRollback;
219 public String getRequestorId() {
223 public void setRequestorId(String requestorId) {
224 this.requestorId = requestorId;
228 public String toString() {
229 return "RequestInfo [billingAccountNumber=" + billingAccountNumber
230 + ", callbackUrl=" + callbackUrl + ", correlator=" + correlator
231 + ", orderNumber=" + orderNumber + ", productFamilyId="
232 + productFamilyId + ", orderVersion=" + orderVersion
233 + ", source=" + source + ", instanceName=" + instanceName
234 + ", suppressRollback=" + suppressRollback + ", requestorId="