fd7877822b02a305528f7a5348a411771f0e42f4
[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
25 import com.fasterxml.jackson.annotation.JsonInclude;
26 import com.fasterxml.jackson.annotation.JsonInclude.Include;
27 import com.fasterxml.jackson.annotation.JsonProperty;
28 import com.fasterxml.jackson.annotation.JsonRootName;
29 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
30 import com.fasterxml.jackson.databind.annotation.JsonSerialize.Inclusion;
31
32 @JsonRootName(value = "requestInfo")
33 @JsonInclude(Include.NON_DEFAULT)
34 public class RequestInfo implements Serializable {
35
36         private static final long serialVersionUID = -1370946827136030181L;
37         @JsonProperty("billingAccountNumber")
38         protected String billingAccountNumber;
39         @JsonProperty("callbackUrl")
40         protected String callbackUrl;
41         @JsonProperty("correlator")
42     protected String correlator;
43         @JsonProperty("orderNumber")
44     protected String orderNumber;
45         @JsonProperty("productFamilyId")
46     protected String productFamilyId;
47         @JsonProperty("orderVersion")
48     protected Integer orderVersion;
49     @JsonSerialize(include=Inclusion.ALWAYS)
50         @JsonProperty("source")
51     protected String source;
52         @JsonProperty("instanceName")
53     protected String instanceName;
54         @JsonProperty("suppressRollback")
55     @JsonSerialize(include=Inclusion.ALWAYS)
56     protected boolean suppressRollback;
57         @JsonProperty("requestorId")
58     protected String requestorId;
59
60     /**
61      * Gets the value of the callbackUrl property.
62      *
63      * @return
64      *     possible object is
65      *     {@link String }
66      *
67      */
68     public String getCallbackUrl() {
69         return callbackUrl;
70     }
71
72     /**
73      * Sets the value of the callbackUrl property.
74      *
75      * @param value
76      *     allowed object is
77      *     {@link String }
78      *
79      */
80     public void setCallbackUrl(String value) {
81         this.callbackUrl = value;
82     }
83
84     /**
85      * Gets the value of the correlator property.
86      *
87      * @return
88      *     possible object is
89      *     {@link String }
90      *
91      */
92     public String getCorrelator() {
93         return correlator;
94     }
95
96     /**
97      * Sets the value of the correlator property.
98      *
99      * @param value
100      *     allowed object is
101      *     {@link String }
102      *
103      */
104     public void setCorrelator(String value) {
105         this.correlator = value;
106     }
107
108     /**
109      * Gets the value of the orderNumber property.
110      *
111      * @return
112      *     possible object is
113      *     {@link String }
114      *
115      */
116     public String getOrderNumber() {
117         return orderNumber;
118     }
119
120     /**
121      * Sets the value of the orderNumber property.
122      *
123      * @param value
124      *     allowed object is
125      *     {@link String }
126      *
127      */
128     public void setOrderNumber(String value) {
129         this.orderNumber = value;
130     }
131
132     /**
133      * Gets the value of the orderVersion property.
134      *
135      * @return
136      *     possible object is
137      *     {@link Integer }
138      *
139      */
140     public Integer getOrderVersion() {
141         return orderVersion;
142     }
143
144     /**
145      * Sets the value of the orderVersion property.
146      *
147      * @param value
148      *     allowed object is
149      *     {@link Integer }
150      *
151      */
152     public void setOrderVersion(Integer value) {
153         this.orderVersion = value;
154     }
155
156     /**
157      * Gets the value of the source property.
158      *
159      * @return
160      *     possible object is
161      *     {@link String }
162      *
163      */
164     public String getSource() {
165         return source;
166     }
167
168     /**
169      * Sets the value of the source property.
170      *
171      * @param value
172      *     allowed object is
173      *     {@link String }
174      *
175      */
176     public void setSource(String value) {
177         this.source = value;
178     }
179
180         public String getInstanceName() {
181                 return instanceName;
182         }
183
184         public void setInstanceName(String instanceName) {
185                 this.instanceName = instanceName;
186         }
187
188         public String getBillingAccountNumber() {
189                 return billingAccountNumber;
190         }
191
192         public void setBillingAccountNumber(String billingAccountNumber) {
193                 this.billingAccountNumber = billingAccountNumber;
194         }
195
196         public String getProductFamilyId() {
197                 return productFamilyId;
198         }
199
200         public void setProductFamilyId(String productFamilyId) {
201                 this.productFamilyId = productFamilyId;
202         }
203
204         /**
205          * Required for Marshalers to send the fields.
206          * @return
207          */
208         public boolean getSuppressRollback() {
209                 return suppressRollback;
210         }
211
212         public void setSuppressRollback(boolean suppressRollback) {
213                 this.suppressRollback = suppressRollback;
214         }
215
216         public String getRequestorId() {
217                 return requestorId;
218         }
219
220         public void setRequestorId(String requestorId) {
221                 this.requestorId = requestorId;
222         }
223
224         @Override
225         public String toString() {
226                 return "RequestInfo [billingAccountNumber=" + billingAccountNumber
227                                 + ", callbackUrl=" + callbackUrl + ", correlator=" + correlator
228                                 + ", orderNumber=" + orderNumber + ", productFamilyId="
229                                 + productFamilyId + ", orderVersion=" + orderVersion
230                                 + ", source=" + source + ", instanceName=" + instanceName
231                                 + ", suppressRollback=" + suppressRollback + ", requestorId="
232                                 + requestorId + "]";
233         }
234
235
236 }