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 java.util.HashMap;
26 import javax.annotation.Generated;
28 import com.fasterxml.jackson.annotation.JsonAnyGetter;
29 import com.fasterxml.jackson.annotation.JsonAnySetter;
30 import com.fasterxml.jackson.annotation.JsonIgnore;
31 import com.fasterxml.jackson.annotation.JsonInclude;
32 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
34 //import com.fasterxml.jackson.annotation.JsonInclude;
35 //import com.fasterxml.jackson.annotation.JsonProperty;
36 //import com.fasterxml.jackson.annotation.JsonPropertyOrder;
37 import org.apache.commons.lang.builder.EqualsBuilder;
38 import org.apache.commons.lang.builder.HashCodeBuilder;
39 import org.apache.commons.lang.builder.ToStringBuilder;
40 import java.util.List;
43 * List of relatedModel structures that are related to a modelInfo being operated on.
45 @JsonInclude(JsonInclude.Include.NON_NULL)
46 @Generated("org.jsonschema2pojo")
58 public class RequestList {
60 /** The request list. */
61 private List<RequestWrapper> requestList;
63 /** The additional properties. */
65 private Map<String, Object> additionalProperties = new HashMap<String, Object>();
70 * @return The RelatedModel List
72 public List<RequestWrapper> getRequestList() {
77 * Sets the request list.
79 * @param l the new request list
81 public void setRequestList(List<RequestWrapper> l) {
86 * @see java.lang.Object#toString()
89 public String toString() {
90 return ToStringBuilder.reflectionToString(this);
94 * Gets the additional properties.
96 * @return the additional properties
99 public Map<String, Object> getAdditionalProperties() {
100 return this.additionalProperties;
104 * Sets the additional property.
106 * @param name the name
107 * @param value the value
110 public void setAdditionalProperty(String name, Object value) {
111 this.additionalProperties.put(name, value);
115 * @see java.lang.Object#hashCode()
118 public int hashCode() {
119 return new HashCodeBuilder().append(getRequestList()).append(additionalProperties).toHashCode();
123 * @see java.lang.Object#equals(java.lang.Object)
126 public boolean equals(Object other) {
130 if ((other instanceof RequestList) == false) {
133 RequestList rhs = ((RequestList) other);
134 return new EqualsBuilder().append(getRequestList(), rhs.getRequestList()).append(additionalProperties, rhs.additionalProperties).isEquals();