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.apihandlerinfra.serviceinstancebeans;
23 import org.codehaus.jackson.map.annotate.JsonSerialize;
24 import org.codehaus.jackson.map.annotate.JsonSerialize.Inclusion;
26 @JsonSerialize(include=JsonSerialize.Inclusion.NON_DEFAULT)
27 public class RequestInfo {
29 protected String billingAccountNumber;
30 protected String callbackUrl;
31 protected String correlator;
32 protected String orderNumber;
33 protected String productFamilyId;
34 protected Integer orderVersion;
35 protected String source;
36 protected String instanceName;
37 @JsonSerialize(include=Inclusion.ALWAYS)
38 protected boolean suppressRollback;
39 protected String requestorId;
42 * Gets the value of the callbackUrl property.
49 public String getCallbackUrl() {
54 * Sets the value of the callbackUrl property.
61 public void setCallbackUrl(String value) {
62 this.callbackUrl = value;
66 * Gets the value of the correlator property.
73 public String getCorrelator() {
78 * Sets the value of the correlator property.
85 public void setCorrelator(String value) {
86 this.correlator = value;
90 * Gets the value of the orderNumber property.
97 public String getOrderNumber() {
102 * Sets the value of the orderNumber property.
109 public void setOrderNumber(String value) {
110 this.orderNumber = value;
114 * Gets the value of the orderVersion property.
121 public Integer getOrderVersion() {
126 * Sets the value of the orderVersion property.
133 public void setOrderVersion(Integer value) {
134 this.orderVersion = value;
138 * Gets the value of the source property.
145 public String getSource() {
146 if(null == source || source.isEmpty()){
153 * Sets the value of the source property.
160 public void setSource(String value) {
164 public String getInstanceName() {
168 public void setInstanceName(String instanceName) {
169 this.instanceName = instanceName;
172 public String getBillingAccountNumber() {
173 return billingAccountNumber;
176 public void setBillingAccountNumber(String billingAccountNumber) {
177 this.billingAccountNumber = billingAccountNumber;
180 public String getProductFamilyId() {
181 return productFamilyId;
184 public void setProductFamilyId(String productFamilyId) {
185 this.productFamilyId = productFamilyId;
189 * Required for Marshalers to send the fields.
192 public boolean getSuppressRollback() {
193 return suppressRollback;
196 public void setSuppressRollback(boolean suppressRollback) {
197 this.suppressRollback = suppressRollback;
200 public String getRequestorId() {
204 public void setRequestorId(String requestorId) {
205 this.requestorId = requestorId;
209 public String toString() {
210 return "RequestInfo [billingAccountNumber=" + billingAccountNumber
211 + ", callbackUrl=" + callbackUrl + ", correlator=" + correlator
212 + ", orderNumber=" + orderNumber + ", productFamilyId="
213 + productFamilyId + ", orderVersion=" + orderVersion
214 + ", source=" + source + ", instanceName=" + instanceName
215 + ", suppressRollback=" + suppressRollback + ", requestorId="