[VID-6] Initial rebase push
[vid.git] / vid-app-common / src / main / java / org / openecomp / vid / mso / rest / RequestList.java
1 /*-\r
2  * ============LICENSE_START=======================================================\r
3  * VID\r
4  * ================================================================================\r
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.\r
6  * ================================================================================\r
7  * Licensed under the Apache License, Version 2.0 (the "License");\r
8  * you may not use this file except in compliance with the License.\r
9  * You may obtain a copy of the License at\r
10  * \r
11  *      http://www.apache.org/licenses/LICENSE-2.0\r
12  * \r
13  * Unless required by applicable law or agreed to in writing, software\r
14  * distributed under the License is distributed on an "AS IS" BASIS,\r
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
16  * See the License for the specific language governing permissions and\r
17  * limitations under the License.\r
18  * ============LICENSE_END=========================================================\r
19  */\r
20 \r
21 package org.openecomp.vid.mso.rest;\r
22 \r
23 import java.util.HashMap;\r
24 import java.util.Map;\r
25 \r
26 import javax.annotation.Generated;\r
27 \r
28 import com.fasterxml.jackson.annotation.JsonAnyGetter;\r
29 import com.fasterxml.jackson.annotation.JsonAnySetter;\r
30 import com.fasterxml.jackson.annotation.JsonIgnore;\r
31 import com.fasterxml.jackson.annotation.JsonInclude;\r
32 import com.fasterxml.jackson.annotation.JsonPropertyOrder;\r
33 \r
34 //import com.fasterxml.jackson.annotation.JsonInclude;\r
35 //import com.fasterxml.jackson.annotation.JsonProperty;\r
36 //import com.fasterxml.jackson.annotation.JsonPropertyOrder;\r
37 import org.apache.commons.lang.builder.EqualsBuilder;\r
38 import org.apache.commons.lang.builder.HashCodeBuilder;\r
39 import org.apache.commons.lang.builder.ToStringBuilder;\r
40 import java.util.List;\r
41 \r
42 /**\r
43  * List of relatedModel structures that are related to a modelInfo being operated on.\r
44  */\r
45 @JsonInclude(JsonInclude.Include.NON_NULL)\r
46 @Generated("org.jsonschema2pojo")\r
47 @JsonPropertyOrder({\r
48     "finishTime",\r
49     "instanceIds",\r
50     "requestDetails",\r
51     "requestId",\r
52     "requestScope",\r
53     "requestStatus",\r
54     "requestType",\r
55     "startTime"\r
56 })\r
57 \r
58 public class RequestList {\r
59     \r
60     /** The request list. */\r
61     private List<Request> requestList;\r
62     \r
63     /** The additional properties. */\r
64     @JsonIgnore\r
65     private Map<String, Object> additionalProperties = new HashMap<String, Object>();\r
66 \r
67     /**\r
68      * (Required).\r
69      *\r
70      * @return     The RelatedModel List\r
71      */\r
72     public List<Request> getRequestList() {\r
73         return requestList;\r
74     }\r
75 \r
76     /**\r
77      * Sets the request list.\r
78      *\r
79      * @param l the new request list\r
80      */\r
81     public void setRequestList(List<Request> l) {\r
82         this.requestList = l;\r
83     }\r
84 \r
85     /* (non-Javadoc)\r
86      * @see java.lang.Object#toString()\r
87      */\r
88     @Override\r
89     public String toString() {\r
90         return ToStringBuilder.reflectionToString(this);\r
91     }\r
92 \r
93     /**\r
94      * Gets the additional properties.\r
95      *\r
96      * @return the additional properties\r
97      */\r
98     @JsonAnyGetter\r
99     public Map<String, Object> getAdditionalProperties() {\r
100         return this.additionalProperties;\r
101     }\r
102 \r
103     /**\r
104      * Sets the additional property.\r
105      *\r
106      * @param name the name\r
107      * @param value the value\r
108      */\r
109     @JsonAnySetter\r
110     public void setAdditionalProperty(String name, Object value) {\r
111         this.additionalProperties.put(name, value);\r
112     }\r
113 \r
114     /* (non-Javadoc)\r
115      * @see java.lang.Object#hashCode()\r
116      */\r
117     @Override\r
118     public int hashCode() {\r
119         return new HashCodeBuilder().append(getRequestList()).append(additionalProperties).toHashCode();\r
120     }\r
121 \r
122     /* (non-Javadoc)\r
123      * @see java.lang.Object#equals(java.lang.Object)\r
124      */\r
125     @Override\r
126     public boolean equals(Object other) {\r
127         if (other == this) {\r
128             return true;\r
129         }\r
130         if ((other instanceof RequestList) == false) {\r
131             return false;\r
132         }\r
133         RequestList rhs = ((RequestList) other);\r
134         return new EqualsBuilder().append(getRequestList(), rhs.getRequestList()).append(additionalProperties, rhs.additionalProperties).isEquals();\r
135     }\r
136 \r
137 }\r