Remove mso-oof-adapter from SO
[so.git] / so-monitoring / so-monitoring-handler / src / main / java / org / onap / so / monitoring / camunda / model / SoActiveInfraRequests.java
1 /*-
2  * ============LICENSE_START=======================================================
3  *  Copyright (C) 2018 Ericsson. All rights reserved.
4  * ================================================================================
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  * 
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  * 
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  * 
17  * SPDX-License-Identifier: Apache-2.0
18  * ============LICENSE_END=========================================================
19  */
20 package org.onap.so.monitoring.camunda.model;
21
22 import static org.onap.so.monitoring.utils.ObjectEqualsUtils.isEqual;
23 import com.fasterxml.jackson.annotation.JsonIgnore;
24 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
25
26 /**
27  * @author waqas.ikram@ericsson.com
28  *
29  */
30 @JsonIgnoreProperties(ignoreUnknown = true)
31 public class SoActiveInfraRequests {
32
33     private String requestId;
34     private String serviceInstanceId;
35     private String networkId;
36     private String startTime;
37     private String endTime;
38     private String requestStatus;
39     private String serviceInstanceName;
40     private String serviceType;
41
42     /**
43      * @return the requestId
44      */
45     public String getRequestId() {
46         return requestId;
47     }
48
49     /**
50      * @param requestId the requestId to set
51      */
52     public void setRequestId(final String requestId) {
53         this.requestId = requestId;
54     }
55
56     /**
57      * @return the serviceInstanceId
58      */
59     public String getServiceInstanceId() {
60         return serviceInstanceId;
61     }
62
63     /**
64      * @param serviceInstanceId the serviceInstanceId to set
65      */
66     public void setServiceInstanceId(final String serviceInstanceId) {
67         this.serviceInstanceId = serviceInstanceId;
68     }
69
70     /**
71      * @return the networkId
72      */
73     public String getNetworkId() {
74         return networkId;
75     }
76
77     /**
78      * @param networkId the networkId to set
79      */
80     public void setNetworkId(final String networkId) {
81         this.networkId = networkId;
82     }
83
84     /**
85      * @return the startTime
86      */
87     public String getStartTime() {
88         return startTime;
89     }
90
91     /**
92      * @param startTime the startTime to set
93      */
94     public void setStartTime(final String startTime) {
95         this.startTime = startTime;
96     }
97
98     /**
99      * @return the endTime
100      */
101     public String getEndTime() {
102         return endTime;
103     }
104
105     /**
106      * @param endTime the endTime to set
107      */
108     public void setEndTime(final String endTime) {
109         this.endTime = endTime;
110     }
111
112     /**
113      * @return the requestStatus
114      */
115     public String getRequestStatus() {
116         return requestStatus;
117     }
118
119     /**
120      * @param requestStatus the requestStatus to set
121      */
122     public void setRequestStatus(final String requestStatus) {
123         this.requestStatus = requestStatus;
124     }
125
126     /**
127      * @return the serviceInstanceName
128      */
129     public String getServiceInstanceName() {
130         return serviceInstanceName;
131     }
132
133     /**
134      * @param serviceInstanceName the serviceInstanceName to set
135      */
136     public void setServiceInstanceName(final String serviceInstanceName) {
137         this.serviceInstanceName = serviceInstanceName;
138     }
139
140     /**
141      * @return the serviceType
142      */
143     public String getServiceType() {
144         return serviceType;
145     }
146
147     /**
148      * @param serviceType the serviceType to set
149      */
150     public void setServiceType(final String serviceType) {
151         this.serviceType = serviceType;
152     }
153
154     @JsonIgnore
155     @Override
156     public int hashCode() {
157         final int prime = 31;
158         int result = 1;
159         result = prime * result + ((endTime == null) ? 0 : endTime.hashCode());
160         result = prime * result + ((networkId == null) ? 0 : networkId.hashCode());
161         result = prime * result + ((requestId == null) ? 0 : requestId.hashCode());
162         result = prime * result + ((requestStatus == null) ? 0 : requestStatus.hashCode());
163         result = prime * result + ((serviceInstanceId == null) ? 0 : serviceInstanceId.hashCode());
164         result = prime * result + ((serviceInstanceName == null) ? 0 : serviceInstanceName.hashCode());
165         result = prime * result + ((serviceType == null) ? 0 : serviceType.hashCode());
166         result = prime * result + ((startTime == null) ? 0 : startTime.hashCode());
167         return result;
168     }
169
170     @JsonIgnore
171     @Override
172     public boolean equals(final Object obj) {
173         if (obj instanceof SoActiveInfraRequests) {
174             SoActiveInfraRequests other = (SoActiveInfraRequests) obj;
175             return isEqual(requestId, other.requestId) && isEqual(serviceInstanceId, other.serviceInstanceId)
176                     && isEqual(networkId, other.networkId) && isEqual(startTime, other.startTime)
177                     && isEqual(endTime, other.endTime) && isEqual(requestStatus, other.requestStatus)
178                     && isEqual(serviceInstanceName, other.serviceInstanceName)
179                     && isEqual(serviceType, other.serviceType);
180         }
181
182         return false;
183     }
184
185     @JsonIgnore
186     @Override
187     public String toString() {
188         return "SoActiveInfraRequests [requestId=" + requestId + ", serviceInstanceId=" + serviceInstanceId
189                 + ", networkId=" + networkId + ", startTime=" + startTime + ", endTime=" + endTime + ", requestStatus="
190                 + requestStatus + ", serviceInstanceName=" + serviceInstanceName + ", serviceType=" + serviceType + "]";
191     }
192
193
194
195 }