Change the header to SO
[so.git] / mso-api-handlers / mso-api-handler-infra / src / main / java / org / openecomp / mso / apihandlerinfra / 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.openecomp.mso.apihandlerinfra.serviceinstancebeans;
22
23 import org.codehaus.jackson.map.annotate.JsonSerialize;
24 import org.codehaus.jackson.map.annotate.JsonSerialize.Inclusion;
25
26 @JsonSerialize(include=JsonSerialize.Inclusion.NON_DEFAULT)
27 public class RequestInfo {
28
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;
40
41     /**
42      * Gets the value of the callbackUrl property.
43      *
44      * @return
45      *     possible object is
46      *     {@link String }
47      *
48      */
49     public String getCallbackUrl() {
50         return callbackUrl;
51     }
52
53     /**
54      * Sets the value of the callbackUrl property.
55      *
56      * @param value
57      *     allowed object is
58      *     {@link String }
59      *
60      */
61     public void setCallbackUrl(String value) {
62         this.callbackUrl = value;
63     }
64
65     /**
66      * Gets the value of the correlator property.
67      *
68      * @return
69      *     possible object is
70      *     {@link String }
71      *
72      */
73     public String getCorrelator() {
74         return correlator;
75     }
76
77     /**
78      * Sets the value of the correlator property.
79      *
80      * @param value
81      *     allowed object is
82      *     {@link String }
83      *
84      */
85     public void setCorrelator(String value) {
86         this.correlator = value;
87     }
88
89     /**
90      * Gets the value of the orderNumber property.
91      *
92      * @return
93      *     possible object is
94      *     {@link String }
95      *
96      */
97     public String getOrderNumber() {
98         return orderNumber;
99     }
100
101     /**
102      * Sets the value of the orderNumber property.
103      *
104      * @param value
105      *     allowed object is
106      *     {@link String }
107      *
108      */
109     public void setOrderNumber(String value) {
110         this.orderNumber = value;
111     }
112
113     /**
114      * Gets the value of the orderVersion property.
115      *
116      * @return
117      *     possible object is
118      *     {@link Integer }
119      *
120      */
121     public Integer getOrderVersion() {
122         return orderVersion;
123     }
124
125     /**
126      * Sets the value of the orderVersion property.
127      *
128      * @param value
129      *     allowed object is
130      *     {@link Integer }
131      *
132      */
133     public void setOrderVersion(Integer value) {
134         this.orderVersion = value;
135     }
136
137     /**
138      * Gets the value of the source property.
139      *
140      * @return
141      *     possible object is
142      *     {@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
153      *     allowed object is
154      *     {@link String }
155      *
156      */
157     public void setSource(String value) {
158         this.source = value;
159     }
160
161         public String getInstanceName() {
162                 return instanceName;
163         }
164
165         public void setInstanceName(String instanceName) {
166                 this.instanceName = instanceName;
167         }
168
169         public String getBillingAccountNumber() {
170                 return billingAccountNumber;
171         }
172
173         public void setBillingAccountNumber(String billingAccountNumber) {
174                 this.billingAccountNumber = billingAccountNumber;
175         }
176
177         public String getProductFamilyId() {
178                 return productFamilyId;
179         }
180
181         public void setProductFamilyId(String productFamilyId) {
182                 this.productFamilyId = productFamilyId;
183         }
184
185         /**
186          * Required for Marshalers to send the fields.
187          * @return
188          */
189         public boolean getSuppressRollback() {
190                 return suppressRollback;
191         }
192
193         public void setSuppressRollback(boolean suppressRollback) {
194                 this.suppressRollback = suppressRollback;
195         }
196
197         public String getRequestorId() {
198                 return requestorId;
199         }
200
201         public void setRequestorId(String requestorId) {
202                 this.requestorId = requestorId;
203         }
204
205         @Override
206         public String toString() {
207                 return "RequestInfo [billingAccountNumber=" + billingAccountNumber
208                                 + ", callbackUrl=" + callbackUrl + ", correlator=" + correlator
209                                 + ", orderNumber=" + orderNumber + ", productFamilyId="
210                                 + productFamilyId + ", orderVersion=" + orderVersion
211                                 + ", source=" + source + ", instanceName=" + instanceName
212                                 + ", suppressRollback=" + suppressRollback + ", requestorId="
213                                 + requestorId + "]";
214         }
215
216
217 }