Replaced all tabs with spaces in java and pom.xml
[so.git] / common / src / main / java / org / onap / so / serviceinstancebeans / RequestInfo.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
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
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
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=========================================================
19  */
20
21 package org.onap.so.serviceinstancebeans;
22
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;
30
31 @JsonRootName(value = "requestInfo")
32 @JsonInclude(Include.NON_DEFAULT)
33 public class RequestInfo implements Serializable {
34
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;
58
59     /**
60      * Gets the value of the callbackUrl property.
61      *
62      * @return possible object is {@link String }
63      *
64      */
65     public String getCallbackUrl() {
66         return callbackUrl;
67     }
68
69     /**
70      * Sets the value of the callbackUrl property.
71      *
72      * @param value allowed object is {@link String }
73      *
74      */
75     public void setCallbackUrl(String value) {
76         this.callbackUrl = value;
77     }
78
79     /**
80      * Gets the value of the correlator property.
81      *
82      * @return possible object is {@link String }
83      *
84      */
85     public String getCorrelator() {
86         return correlator;
87     }
88
89     /**
90      * Sets the value of the correlator property.
91      *
92      * @param value allowed object is {@link String }
93      *
94      */
95     public void setCorrelator(String value) {
96         this.correlator = value;
97     }
98
99     /**
100      * Gets the value of the orderNumber property.
101      *
102      * @return possible object is {@link String }
103      *
104      */
105     public String getOrderNumber() {
106         return orderNumber;
107     }
108
109     /**
110      * Sets the value of the orderNumber property.
111      *
112      * @param value allowed object is {@link String }
113      *
114      */
115     public void setOrderNumber(String value) {
116         this.orderNumber = value;
117     }
118
119     /**
120      * Gets the value of the orderVersion property.
121      *
122      * @return possible object is {@link Integer }
123      *
124      */
125     public Integer getOrderVersion() {
126         return orderVersion;
127     }
128
129     /**
130      * Sets the value of the orderVersion property.
131      *
132      * @param value allowed object is {@link Integer }
133      *
134      */
135     public void setOrderVersion(Integer value) {
136         this.orderVersion = value;
137     }
138
139     /**
140      * Gets the value of the source property.
141      *
142      * @return possible object is {@link String }
143      *
144      */
145     public String getSource() {
146         return source;
147     }
148
149     /**
150      * Sets the value of the source property.
151      *
152      * @param value allowed object is {@link String }
153      *
154      */
155     public void setSource(String value) {
156         this.source = value;
157     }
158
159     public String getInstanceName() {
160         return instanceName;
161     }
162
163     public void setInstanceName(String instanceName) {
164         this.instanceName = instanceName;
165     }
166
167     public String getBillingAccountNumber() {
168         return billingAccountNumber;
169     }
170
171     public void setBillingAccountNumber(String billingAccountNumber) {
172         this.billingAccountNumber = billingAccountNumber;
173     }
174
175     public String getProductFamilyId() {
176         return productFamilyId;
177     }
178
179     public void setProductFamilyId(String productFamilyId) {
180         this.productFamilyId = productFamilyId;
181     }
182
183     /**
184      * Required for Marshalers to send the fields.
185      * 
186      * @return
187      */
188     public boolean getSuppressRollback() {
189         return suppressRollback;
190     }
191
192     public void setSuppressRollback(boolean suppressRollback) {
193         this.suppressRollback = suppressRollback;
194     }
195
196     public String getRequestorId() {
197         return requestorId;
198     }
199
200     public void setRequestorId(String requestorId) {
201         this.requestorId = requestorId;
202     }
203
204     @Override
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 + "]";
210     }
211
212
213 }