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 @JsonSerialize(include=Inclusion.ALWAYS)
36 protected String source;
37 protected String instanceName;
38 @JsonSerialize(include=Inclusion.ALWAYS)
39 protected boolean suppressRollback;
40 protected String requestorId;
43 * Gets the value of the callbackUrl property.
50 public String getCallbackUrl() {
55 * Sets the value of the callbackUrl property.
62 public void setCallbackUrl(String value) {
63 this.callbackUrl = value;
67 * Gets the value of the correlator property.
74 public String getCorrelator() {
79 * Sets the value of the correlator property.
86 public void setCorrelator(String value) {
87 this.correlator = value;
91 * Gets the value of the orderNumber property.
98 public String getOrderNumber() {
103 * Sets the value of the orderNumber property.
110 public void setOrderNumber(String value) {
111 this.orderNumber = value;
115 * Gets the value of the orderVersion property.
122 public Integer getOrderVersion() {
127 * Sets the value of the orderVersion property.
134 public void setOrderVersion(Integer value) {
135 this.orderVersion = value;
139 * Gets the value of the source property.
146 public String getSource() {
147 if(null == source || source.isEmpty()){
154 * Sets the value of the source property.
161 public void setSource(String value) {
165 public String getInstanceName() {
169 public void setInstanceName(String instanceName) {
170 this.instanceName = instanceName;
173 public String getBillingAccountNumber() {
174 return billingAccountNumber;
177 public void setBillingAccountNumber(String billingAccountNumber) {
178 this.billingAccountNumber = billingAccountNumber;
181 public String getProductFamilyId() {
182 return productFamilyId;
185 public void setProductFamilyId(String productFamilyId) {
186 this.productFamilyId = productFamilyId;
190 * Required for Marshalers to send the fields.
193 public boolean getSuppressRollback() {
194 return suppressRollback;
197 public void setSuppressRollback(boolean suppressRollback) {
198 this.suppressRollback = suppressRollback;
201 public String getRequestorId() {
205 public void setRequestorId(String requestorId) {
206 this.requestorId = requestorId;
210 public String toString() {
211 return "RequestInfo [billingAccountNumber=" + billingAccountNumber
212 + ", callbackUrl=" + callbackUrl + ", correlator=" + correlator
213 + ", orderNumber=" + orderNumber + ", productFamilyId="
214 + productFamilyId + ", orderVersion=" + orderVersion
215 + ", source=" + source + ", instanceName=" + instanceName
216 + ", suppressRollback=" + suppressRollback + ", requestorId="