2 package org.onap.vid.mso.model;
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;
9 import java.util.HashMap;
14 * fields providing general context information for the request
17 @JsonInclude(JsonInclude.Include.NON_NULL)
19 "billingAccountNumber",
31 public class RequestInfo {
34 * billing account associated with the model being operated on
37 @JsonProperty("billingAccountNumber")
38 private String billingAccountNumber;
40 * client URL to use for asynchronous responses
43 @JsonProperty("callbackUrl")
44 private String callbackUrl;
46 * Optional correlationId for async callback requests
49 @JsonProperty("correlator")
50 private String correlator;
52 * Client provided name for the instance being operated on by the operation (note: not guaranteed to be unique)
55 @JsonProperty("instanceName")
56 private String instanceName;
58 * reference to an order
61 @JsonProperty("orderNumber")
62 private String orderNumber;
64 * order version number
67 @JsonProperty("orderVersion")
68 private Double orderVersion;
70 * UUID for the product family associated with the model being operated on
73 @JsonProperty("productFamilyId")
74 private String productFamilyId;
76 * source of the request--not authoritative--actual source revealed via authentication
79 @JsonProperty("source")
80 private String source;
82 * true or false boolean indicating whether rollbacks should be suppressed on failures
85 @JsonProperty("suppressRollback")
86 private Boolean suppressRollback;
88 * Is the user selected value based on the validResponses list provided to complete the manual task
91 @JsonProperty("responseValue")
92 private String responseValue;
94 * The id of the person who initiated the completion request
97 @JsonProperty("requestorId")
98 private String requestorId;
100 private Map<String, Object> additionalProperties = new HashMap<>();
103 * billing account associated with the model being operated on
106 * The billingAccountNumber
108 @JsonProperty("billingAccountNumber")
109 public String getBillingAccountNumber() {
110 return billingAccountNumber;
114 * billing account associated with the model being operated on
116 * @param billingAccountNumber
117 * The billingAccountNumber
119 @JsonProperty("billingAccountNumber")
120 public void setBillingAccountNumber(String billingAccountNumber) {
121 this.billingAccountNumber = billingAccountNumber;
125 * client URL to use for asynchronous responses
130 @JsonProperty("callbackUrl")
131 public String getCallbackUrl() {
136 * client URL to use for asynchronous responses
141 @JsonProperty("callbackUrl")
142 public void setCallbackUrl(String callbackUrl) {
143 this.callbackUrl = callbackUrl;
147 * Optional correlationId for async callback requests
152 @JsonProperty("correlator")
153 public String getCorrelator() {
158 * Optional correlationId for async callback requests
163 @JsonProperty("correlator")
164 public void setCorrelator(String correlator) {
165 this.correlator = correlator;
169 * Client provided name for the instance being operated on by the operation (note: not guaranteed to be unique)
174 @JsonProperty("instanceName")
175 public String getInstanceName() {
180 * Client provided name for the instance being operated on by the operation (note: not guaranteed to be unique)
182 * @param instanceName
185 @JsonProperty("instanceName")
186 public void setInstanceName(String instanceName) {
187 this.instanceName = instanceName;
191 * reference to an order
196 @JsonProperty("orderNumber")
197 public String getOrderNumber() {
202 * reference to an order
207 @JsonProperty("orderNumber")
208 public void setOrderNumber(String orderNumber) {
209 this.orderNumber = orderNumber;
213 * order version number
218 @JsonProperty("orderVersion")
219 public Double getOrderVersion() {
224 * order version number
226 * @param orderVersion
229 @JsonProperty("orderVersion")
230 public void setOrderVersion(Double orderVersion) {
231 this.orderVersion = orderVersion;
235 * UUID for the product family associated with the model being operated on
238 * The productFamilyId
240 @JsonProperty("productFamilyId")
241 public String getProductFamilyId() {
242 return productFamilyId;
246 * UUID for the product family associated with the model being operated on
248 * @param productFamilyId
249 * The productFamilyId
251 @JsonProperty("productFamilyId")
252 public void setProductFamilyId(String productFamilyId) {
253 this.productFamilyId = productFamilyId;
257 * source of the request--not authoritative--actual source revealed via authentication
262 @JsonProperty("source")
263 public String getSource() {
268 * source of the request--not authoritative--actual source revealed via authentication
273 @JsonProperty("source")
274 public void setSource(String source) {
275 this.source = source;
279 * true or false boolean indicating whether rollbacks should be suppressed on failures
282 * The suppressRollback
284 @JsonProperty("suppressRollback")
285 public Boolean getSuppressRollback() {
286 return suppressRollback;
290 * true or false boolean indicating whether rollbacks should be suppressed on failures
292 * @param suppressRollback
293 * The suppressRollback
295 @JsonProperty("suppressRollback")
296 public void setSuppressRollback(Boolean suppressRollback) {
297 this.suppressRollback = suppressRollback;
301 * Is the user selected value based on the validResponses list provided to complete the manual task
306 @JsonProperty("responseValue")
307 public String getResponseValue() {
308 return responseValue;
312 * Is the user selected value based on the validResponses list provided to complete the manual task
314 * @param responseValue
317 @JsonProperty("responseValue")
318 public void setResponseValue(String responseValue) {
319 this.responseValue = responseValue;
323 * The id of the person who initiated the completion request
328 @JsonProperty("requestorId")
329 public String getRequestorId() {
334 * The id of the person who initiated the completion request
339 @JsonProperty("requestorId")
340 public void setRequestorId(String requestorId) {
341 this.requestorId = requestorId;
345 public String toString() {
346 return ToStringBuilder.reflectionToString(this);
350 public Map<String, Object> getAdditionalProperties() {
351 return this.additionalProperties;
355 public void setAdditionalProperty(String name, Object value) {
356 this.additionalProperties.put(name, value);
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();
365 public boolean equals(Object other) {
369 if (!(other instanceof RequestInfo)) {
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();