[VID-3] Setting docker image tag
[vid.git] / vid / src / main / java / org / openecomp / vid / mso / rest / RequestList.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * VID
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
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 package org.openecomp.vid.mso.rest;
22
23 import java.util.HashMap;
24 import java.util.Map;
25
26 import javax.annotation.Generated;
27
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;
33
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;
41
42 /**
43  * List of relatedModel structures that are related to a modelInfo being operated on
44  */
45 @JsonInclude(JsonInclude.Include.NON_NULL)
46 @Generated("org.jsonschema2pojo")
47 @JsonPropertyOrder({
48     "finishTime",
49     "instanceIds",
50     "requestDetails",
51     "requestId",
52     "requestScope",
53     "requestStatus",
54     "requestType",
55     "startTime"
56 })
57
58 public class RequestList {
59     
60     private List<Request> requestList;
61     @JsonIgnore
62     private Map<String, Object> additionalProperties = new HashMap<String, Object>();
63
64     /**
65      * 
66      * (Required)
67      * 
68      * @return
69      *     The RelatedModel List
70      */
71     public List<Request> getRequestList() {
72         return requestList;
73     }
74
75     /**
76      */
77     public void setRequestList(List<Request> l) {
78         this.requestList = l;
79     }
80
81     @Override
82     public String toString() {
83         return ToStringBuilder.reflectionToString(this);
84     }
85
86     @JsonAnyGetter
87     public Map<String, Object> getAdditionalProperties() {
88         return this.additionalProperties;
89     }
90
91     @JsonAnySetter
92     public void setAdditionalProperty(String name, Object value) {
93         this.additionalProperties.put(name, value);
94     }
95
96     @Override
97     public int hashCode() {
98         return new HashCodeBuilder().append(getRequestList()).append(additionalProperties).toHashCode();
99     }
100
101     @Override
102     public boolean equals(Object other) {
103         if (other == this) {
104             return true;
105         }
106         if ((other instanceof RequestList) == false) {
107             return false;
108         }
109         RequestList rhs = ((RequestList) other);
110         return new EqualsBuilder().append(getRequestList(), rhs.getRequestList()).append(additionalProperties, rhs.additionalProperties).isEquals();
111     }
112
113 }