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;
24 import com.fasterxml.jackson.annotation.JsonInclude;
25 import com.fasterxml.jackson.annotation.JsonInclude.Include;
26 import com.fasterxml.jackson.annotation.JsonProperty;
27 import com.fasterxml.jackson.annotation.JsonRootName;
28 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
29 import com.fasterxml.jackson.databind.annotation.JsonSerialize.Inclusion;
31 @JsonRootName(value = "requestInfo")
32 @JsonInclude(Include.NON_DEFAULT)
33 public class RequestInfo implements Serializable {
35 private static final long serialVersionUID = -1370946827136030181L;
36 @JsonProperty("billingAccountNumber")
37 protected String billingAccountNumber;
38 @JsonProperty("callbackUrl")
39 protected String callbackUrl;
40 @JsonProperty("correlator")
41 protected String correlator;
42 @JsonProperty("orderNumber")
43 protected String orderNumber;
44 @JsonProperty("productFamilyId")
45 protected String productFamilyId;
46 @JsonProperty("orderVersion")
47 protected Integer orderVersion;
48 @JsonSerialize(include = Inclusion.ALWAYS)
49 @JsonProperty("source")
50 protected String source;
51 @JsonProperty("instanceName")
52 protected String instanceName;
53 @JsonProperty("suppressRollback")
54 @JsonSerialize(include = Inclusion.ALWAYS)
55 protected boolean suppressRollback;
56 @JsonProperty("requestorId")
57 protected String requestorId;
60 * Gets the value of the callbackUrl property.
62 * @return possible object is {@link String }
65 public String getCallbackUrl() {
70 * Sets the value of the callbackUrl property.
72 * @param value allowed object is {@link String }
75 public void setCallbackUrl(String value) {
76 this.callbackUrl = value;
80 * Gets the value of the correlator property.
82 * @return possible object is {@link String }
85 public String getCorrelator() {
90 * Sets the value of the correlator property.
92 * @param value allowed object is {@link String }
95 public void setCorrelator(String value) {
96 this.correlator = value;
100 * Gets the value of the orderNumber property.
102 * @return possible object is {@link String }
105 public String getOrderNumber() {
110 * Sets the value of the orderNumber property.
112 * @param value allowed object is {@link String }
115 public void setOrderNumber(String value) {
116 this.orderNumber = value;
120 * Gets the value of the orderVersion property.
122 * @return possible object is {@link Integer }
125 public Integer getOrderVersion() {
130 * Sets the value of the orderVersion property.
132 * @param value allowed object is {@link Integer }
135 public void setOrderVersion(Integer value) {
136 this.orderVersion = value;
140 * Gets the value of the source property.
142 * @return possible object is {@link String }
145 public String getSource() {
150 * Sets the value of the source property.
152 * @param value allowed object is {@link String }
155 public void setSource(String value) {
159 public String getInstanceName() {
163 public void setInstanceName(String instanceName) {
164 this.instanceName = instanceName;
167 public String getBillingAccountNumber() {
168 return billingAccountNumber;
171 public void setBillingAccountNumber(String billingAccountNumber) {
172 this.billingAccountNumber = billingAccountNumber;
175 public String getProductFamilyId() {
176 return productFamilyId;
179 public void setProductFamilyId(String productFamilyId) {
180 this.productFamilyId = productFamilyId;
184 * Required for Marshalers to send the fields.
188 public boolean getSuppressRollback() {
189 return suppressRollback;
192 public void setSuppressRollback(boolean suppressRollback) {
193 this.suppressRollback = suppressRollback;
196 public String getRequestorId() {
200 public void setRequestorId(String requestorId) {
201 this.requestorId = requestorId;
205 public String toString() {
206 return "RequestInfo [billingAccountNumber=" + billingAccountNumber + ", callbackUrl=" + callbackUrl
207 + ", correlator=" + correlator + ", orderNumber=" + orderNumber + ", productFamilyId=" + productFamilyId
208 + ", orderVersion=" + orderVersion + ", source=" + source + ", instanceName=" + instanceName
209 + ", suppressRollback=" + suppressRollback + ", requestorId=" + requestorId + "]";