2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.onap.vid.mso.rest;
23 import com.fasterxml.jackson.annotation.*;
24 import org.apache.commons.lang.builder.EqualsBuilder;
25 import org.apache.commons.lang.builder.HashCodeBuilder;
26 import org.apache.commons.lang.builder.ToStringBuilder;
28 import java.util.HashMap;
29 import java.util.List;
33 * List of relatedModel structures that are related to a modelInfo being operated on.
35 @JsonInclude(JsonInclude.Include.NON_NULL)
47 public class RequestList {
49 /** The request list. */
50 private List<RequestWrapper> requestList;
52 /** The additional properties. */
54 private Map<String, Object> additionalProperties = new HashMap<>();
59 * @return The RelatedModel List
61 public List<RequestWrapper> getRequestList() {
66 * Sets the request list.
68 * @param l the new request list
70 public void setRequestList(List<RequestWrapper> l) {
75 * @see java.lang.Object#toString()
78 public String toString() {
79 return ToStringBuilder.reflectionToString(this);
83 * Gets the additional properties.
85 * @return the additional properties
88 public Map<String, Object> getAdditionalProperties() {
89 return this.additionalProperties;
93 * Sets the additional property.
95 * @param name the name
96 * @param value the value
99 public void setAdditionalProperty(String name, Object value) {
100 this.additionalProperties.put(name, value);
104 * @see java.lang.Object#hashCode()
107 public int hashCode() {
108 return new HashCodeBuilder().append(getRequestList()).append(additionalProperties).toHashCode();
112 * @see java.lang.Object#equals(java.lang.Object)
115 public boolean equals(Object other) {
119 if (!(other instanceof RequestList)) {
122 RequestList rhs = ((RequestList) other);
123 return new EqualsBuilder().append(getRequestList(), rhs.getRequestList()).append(additionalProperties, rhs.additionalProperties).isEquals();