Merge from ECOMP's repository
[vid.git] / vid-app-common / src / main / java / org / onap / vid / mso / model / RequestInfo.java
1
2 package org.onap.vid.mso.model;
3
4 import com.fasterxml.jackson.annotation.*;
5 import org.apache.commons.lang.builder.EqualsBuilder;
6 import org.apache.commons.lang.builder.HashCodeBuilder;
7 import org.apache.commons.lang.builder.ToStringBuilder;
8
9 import java.util.HashMap;
10 import java.util.Map;
11
12
13 /**
14  * fields providing general context information for the request
15  * 
16  */
17 @JsonInclude(JsonInclude.Include.NON_NULL)
18 @JsonPropertyOrder({
19     "billingAccountNumber",
20     "callbackUrl",
21     "correlator",
22     "instanceName",
23     "orderNumber",
24     "orderVersion",
25     "productFamilyId",
26     "source",
27     "suppressRollback",
28     "responseValue",
29     "requestorId"
30 })
31 public class RequestInfo {
32
33     /**
34      * billing account associated with the model being operated on
35      * 
36      */
37     @JsonProperty("billingAccountNumber")
38     private String billingAccountNumber;
39     /**
40      * client URL to use for asynchronous responses
41      * 
42      */
43     @JsonProperty("callbackUrl")
44     private String callbackUrl;
45     /**
46      * Optional correlationId for async callback requests
47      * 
48      */
49     @JsonProperty("correlator")
50     private String correlator;
51     /**
52      * Client provided name for the instance being operated on by the operation (note: not guaranteed to be unique)
53      * 
54      */
55     @JsonProperty("instanceName")
56     private String instanceName;
57     /**
58      * reference to an order
59      * 
60      */
61     @JsonProperty("orderNumber")
62     private String orderNumber;
63     /**
64      * order version number
65      * 
66      */
67     @JsonProperty("orderVersion")
68     private Double orderVersion;
69     /**
70      * UUID for the product family associated with the model being operated on
71      * 
72      */
73     @JsonProperty("productFamilyId")
74     private String productFamilyId;
75     /**
76      * source of the request--not authoritative--actual source revealed via authentication
77      * 
78      */
79     @JsonProperty("source")
80     private String source;
81     /**
82      * true or false boolean indicating whether rollbacks should be suppressed on failures
83      * 
84      */
85     @JsonProperty("suppressRollback")
86     private Boolean suppressRollback;
87     /**
88      * Is the user selected value based on the validResponses list provided to complete the manual task
89      * 
90      */
91     @JsonProperty("responseValue")
92     private String responseValue;
93     /**
94      * The id of the person who initiated the completion request
95      * 
96      */
97     @JsonProperty("requestorId")
98     private String requestorId;
99     @JsonIgnore
100     private Map<String, Object> additionalProperties = new HashMap<>();
101
102     /**
103      * billing account associated with the model being operated on
104      * 
105      * @return
106      *     The billingAccountNumber
107      */
108     @JsonProperty("billingAccountNumber")
109     public String getBillingAccountNumber() {
110         return billingAccountNumber;
111     }
112
113     /**
114      * billing account associated with the model being operated on
115      * 
116      * @param billingAccountNumber
117      *     The billingAccountNumber
118      */
119     @JsonProperty("billingAccountNumber")
120     public void setBillingAccountNumber(String billingAccountNumber) {
121         this.billingAccountNumber = billingAccountNumber;
122     }
123
124     /**
125      * client URL to use for asynchronous responses
126      * 
127      * @return
128      *     The callbackUrl
129      */
130     @JsonProperty("callbackUrl")
131     public String getCallbackUrl() {
132         return callbackUrl;
133     }
134
135     /**
136      * client URL to use for asynchronous responses
137      * 
138      * @param callbackUrl
139      *     The callbackUrl
140      */
141     @JsonProperty("callbackUrl")
142     public void setCallbackUrl(String callbackUrl) {
143         this.callbackUrl = callbackUrl;
144     }
145
146     /**
147      * Optional correlationId for async callback requests
148      * 
149      * @return
150      *     The correlator
151      */
152     @JsonProperty("correlator")
153     public String getCorrelator() {
154         return correlator;
155     }
156
157     /**
158      * Optional correlationId for async callback requests
159      * 
160      * @param correlator
161      *     The correlator
162      */
163     @JsonProperty("correlator")
164     public void setCorrelator(String correlator) {
165         this.correlator = correlator;
166     }
167
168     /**
169      * Client provided name for the instance being operated on by the operation (note: not guaranteed to be unique)
170      * 
171      * @return
172      *     The instanceName
173      */
174     @JsonProperty("instanceName")
175     public String getInstanceName() {
176         return instanceName;
177     }
178
179     /**
180      * Client provided name for the instance being operated on by the operation (note: not guaranteed to be unique)
181      * 
182      * @param instanceName
183      *     The instanceName
184      */
185     @JsonProperty("instanceName")
186     public void setInstanceName(String instanceName) {
187         this.instanceName = instanceName;
188     }
189
190     /**
191      * reference to an order
192      * 
193      * @return
194      *     The orderNumber
195      */
196     @JsonProperty("orderNumber")
197     public String getOrderNumber() {
198         return orderNumber;
199     }
200
201     /**
202      * reference to an order
203      * 
204      * @param orderNumber
205      *     The orderNumber
206      */
207     @JsonProperty("orderNumber")
208     public void setOrderNumber(String orderNumber) {
209         this.orderNumber = orderNumber;
210     }
211
212     /**
213      * order version number
214      * 
215      * @return
216      *     The orderVersion
217      */
218     @JsonProperty("orderVersion")
219     public Double getOrderVersion() {
220         return orderVersion;
221     }
222
223     /**
224      * order version number
225      * 
226      * @param orderVersion
227      *     The orderVersion
228      */
229     @JsonProperty("orderVersion")
230     public void setOrderVersion(Double orderVersion) {
231         this.orderVersion = orderVersion;
232     }
233
234     /**
235      * UUID for the product family associated with the model being operated on
236      * 
237      * @return
238      *     The productFamilyId
239      */
240     @JsonProperty("productFamilyId")
241     public String getProductFamilyId() {
242         return productFamilyId;
243     }
244
245     /**
246      * UUID for the product family associated with the model being operated on
247      * 
248      * @param productFamilyId
249      *     The productFamilyId
250      */
251     @JsonProperty("productFamilyId")
252     public void setProductFamilyId(String productFamilyId) {
253         this.productFamilyId = productFamilyId;
254     }
255
256     /**
257      * source of the request--not authoritative--actual source revealed via authentication
258      * 
259      * @return
260      *     The source
261      */
262     @JsonProperty("source")
263     public String getSource() {
264         return source;
265     }
266
267     /**
268      * source of the request--not authoritative--actual source revealed via authentication
269      * 
270      * @param source
271      *     The source
272      */
273     @JsonProperty("source")
274     public void setSource(String source) {
275         this.source = source;
276     }
277
278     /**
279      * true or false boolean indicating whether rollbacks should be suppressed on failures
280      * 
281      * @return
282      *     The suppressRollback
283      */
284     @JsonProperty("suppressRollback")
285     public Boolean getSuppressRollback() {
286         return suppressRollback;
287     }
288
289     /**
290      * true or false boolean indicating whether rollbacks should be suppressed on failures
291      * 
292      * @param suppressRollback
293      *     The suppressRollback
294      */
295     @JsonProperty("suppressRollback")
296     public void setSuppressRollback(Boolean suppressRollback) {
297         this.suppressRollback = suppressRollback;
298     }
299
300     /**
301      * Is the user selected value based on the validResponses list provided to complete the manual task
302      * 
303      * @return
304      *     The responseValue
305      */
306     @JsonProperty("responseValue")
307     public String getResponseValue() {
308         return responseValue;
309     }
310
311     /**
312      * Is the user selected value based on the validResponses list provided to complete the manual task
313      * 
314      * @param responseValue
315      *     The responseValue
316      */
317     @JsonProperty("responseValue")
318     public void setResponseValue(String responseValue) {
319         this.responseValue = responseValue;
320     }
321
322     /**
323      * The id of the person who initiated the completion request
324      * 
325      * @return
326      *     The requestorId
327      */
328     @JsonProperty("requestorId")
329     public String getRequestorId() {
330         return requestorId;
331     }
332
333     /**
334      * The id of the person who initiated the completion request
335      * 
336      * @param requestorId
337      *     The requestorId
338      */
339     @JsonProperty("requestorId")
340     public void setRequestorId(String requestorId) {
341         this.requestorId = requestorId;
342     }
343
344     @Override
345     public String toString() {
346         return ToStringBuilder.reflectionToString(this);
347     }
348
349     @JsonAnyGetter
350     public Map<String, Object> getAdditionalProperties() {
351         return this.additionalProperties;
352     }
353
354     @JsonAnySetter
355     public void setAdditionalProperty(String name, Object value) {
356         this.additionalProperties.put(name, value);
357     }
358
359     @Override
360     public int hashCode() {
361         return new HashCodeBuilder().append(billingAccountNumber).append(callbackUrl).append(correlator).append(instanceName).append(orderNumber).append(orderVersion).append(productFamilyId).append(source).append(suppressRollback).append(responseValue).append(requestorId).append(additionalProperties).toHashCode();
362     }
363
364     @Override
365     public boolean equals(Object other) {
366         if (other == this) {
367             return true;
368         }
369         if (!(other instanceof RequestInfo)) {
370             return false;
371         }
372         RequestInfo rhs = ((RequestInfo) other);
373         return new EqualsBuilder().append(billingAccountNumber, rhs.billingAccountNumber).append(callbackUrl, rhs.callbackUrl).append(correlator, rhs.correlator).append(instanceName, rhs.instanceName).append(orderNumber, rhs.orderNumber).append(orderVersion, rhs.orderVersion).append(productFamilyId, rhs.productFamilyId).append(source, rhs.source).append(suppressRollback, rhs.suppressRollback).append(responseValue, rhs.responseValue).append(requestorId, rhs.requestorId).append(additionalProperties, rhs.additionalProperties).isEquals();
374     }
375
376 }