blob: 79f7055b1784b99a470871afb9d7aba7af21b0d9 [file] [log] [blame]
Aharoni, Pavel (pa0916)ca3cb012018-10-22 15:29:57 +03001/*-
2 * ============LICENSE_START=======================================================
3 * OSAM
4 * ================================================================================
5 * Copyright (C) 2018 AT&T
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
22
23package org.onap.osam.mso.rest;
24
25import java.util.HashMap;
26import java.util.Map;
27
28import javax.annotation.Generated;
29
30import com.fasterxml.jackson.annotation.JsonAnyGetter;
31import com.fasterxml.jackson.annotation.JsonAnySetter;
32import com.fasterxml.jackson.annotation.JsonIgnore;
33import com.fasterxml.jackson.annotation.JsonInclude;
34import com.fasterxml.jackson.annotation.JsonPropertyOrder;
35
36//import com.fasterxml.jackson.annotation.JsonInclude;
37//import com.fasterxml.jackson.annotation.JsonProperty;
38//import com.fasterxml.jackson.annotation.JsonPropertyOrder;
39import org.apache.commons.lang.builder.EqualsBuilder;
40import org.apache.commons.lang.builder.HashCodeBuilder;
41import org.apache.commons.lang.builder.ToStringBuilder;
42import java.util.List;
43
44@JsonInclude(JsonInclude.Include.NON_NULL)
45@Generated("org.jsonschema2pojo")
46@JsonPropertyOrder({
47 "finishTime",
48 "instanceIds",
49 "requestDetails",
50 "requestId",
51 "requestScope",
52 "requestStatus",
53 "requestType",
54 "startTime"
55})
56
57public class RequestList {
58
59 private List<RequestWrapper> requestList;
60
61 /** The additional properties. */
62 @JsonIgnore
63 private Map<String, Object> additionalProperties = new HashMap<String, Object>();
64
65 /**
66 * (Required).
67 *
68 * @return The RelatedModel List
69 */
70 public List<RequestWrapper> getRequestList() {
71 return requestList;
72 }
73
74 /**
75 * Sets the request list.
76 *
77 * @param l the new request list
78 */
79 public void setRequestList(List<RequestWrapper> l) {
80 this.requestList = l;
81 }
82
83 /* (non-Javadoc)
84 * @see java.lang.Object#toString()
85 */
86 @Override
87 public String toString() {
88 return ToStringBuilder.reflectionToString(this);
89 }
90
91 /**
92 * Gets the additional properties.
93 *
94 * @return the additional properties
95 */
96 @JsonAnyGetter
97 public Map<String, Object> getAdditionalProperties() {
98 return this.additionalProperties;
99 }
100
101 /**
102 * Sets the additional property.
103 *
104 * @param name the name
105 * @param value the value
106 */
107 @JsonAnySetter
108 public void setAdditionalProperty(String name, Object value) {
109 this.additionalProperties.put(name, value);
110 }
111
112 /* (non-Javadoc)
113 * @see java.lang.Object#hashCode()
114 */
115 @Override
116 public int hashCode() {
117 return new HashCodeBuilder().append(getRequestList()).append(additionalProperties).toHashCode();
118 }
119
120 /* (non-Javadoc)
121 * @see java.lang.Object#equals(java.lang.Object)
122 */
123 @Override
124 public boolean equals(Object other) {
125 if (other == this) {
126 return true;
127 }
128 if ((other instanceof RequestList) == false) {
129 return false;
130 }
131 RequestList rhs = ((RequestList) other);
132 return new EqualsBuilder().append(getRequestList(), rhs.getRequestList()).append(additionalProperties, rhs.additionalProperties).isEquals();
133 }
134
135}