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
9 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 * SPDX-License-Identifier: Apache-2.0
18 * ============LICENSE_END=========================================================
20 package org.onap.so.monitoring.camunda.model;
22 import static org.onap.so.monitoring.utils.ObjectEqualsUtils.isEqual;
24 import com.fasterxml.jackson.annotation.JsonIgnore;
25 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
28 * @author waqas.ikram@ericsson.com
31 @JsonIgnoreProperties(ignoreUnknown = true)
32 public class SoActiveInfraRequests {
34 private String requestId;
35 private String serviceInstanceId;
36 private String networkId;
37 private String startTime;
38 private String endTime;
39 private String requestStatus;
40 private String serviceInstanceName;
41 private String serviceType;
44 * @return the requestId
46 public String getRequestId() {
51 * @param requestId the requestId to set
53 public void setRequestId(final String requestId) {
54 this.requestId = requestId;
58 * @return the serviceInstanceId
60 public String getServiceInstanceId() {
61 return serviceInstanceId;
65 * @param serviceInstanceId the serviceInstanceId to set
67 public void setServiceInstanceId(final String serviceInstanceId) {
68 this.serviceInstanceId = serviceInstanceId;
72 * @return the networkId
74 public String getNetworkId() {
79 * @param networkId the networkId to set
81 public void setNetworkId(final String networkId) {
82 this.networkId = networkId;
86 * @return the startTime
88 public String getStartTime() {
93 * @param startTime the startTime to set
95 public void setStartTime(final String startTime) {
96 this.startTime = startTime;
100 * @return the endTime
102 public String getEndTime() {
107 * @param endTime the endTime to set
109 public void setEndTime(final String endTime) {
110 this.endTime = endTime;
114 * @return the requestStatus
116 public String getRequestStatus() {
117 return requestStatus;
121 * @param requestStatus the requestStatus to set
123 public void setRequestStatus(final String requestStatus) {
124 this.requestStatus = requestStatus;
128 * @return the serviceInstanceName
130 public String getServiceInstanceName() {
131 return serviceInstanceName;
135 * @param serviceInstanceName the serviceInstanceName to set
137 public void setServiceInstanceName(final String serviceInstanceName) {
138 this.serviceInstanceName = serviceInstanceName;
142 * @return the serviceType
144 public String getServiceType() {
149 * @param serviceType the serviceType to set
151 public void setServiceType(final String serviceType) {
152 this.serviceType = serviceType;
157 public int hashCode() {
158 final int prime = 31;
160 result = prime * result + ((endTime == null) ? 0 : endTime.hashCode());
161 result = prime * result + ((networkId == null) ? 0 : networkId.hashCode());
162 result = prime * result + ((requestId == null) ? 0 : requestId.hashCode());
163 result = prime * result + ((requestStatus == null) ? 0 : requestStatus.hashCode());
164 result = prime * result + ((serviceInstanceId == null) ? 0 : serviceInstanceId.hashCode());
165 result = prime * result + ((serviceInstanceName == null) ? 0 : serviceInstanceName.hashCode());
166 result = prime * result + ((serviceType == null) ? 0 : serviceType.hashCode());
167 result = prime * result + ((startTime == null) ? 0 : startTime.hashCode());
173 public boolean equals(final Object obj) {
174 if (obj instanceof SoActiveInfraRequests) {
175 SoActiveInfraRequests other = (SoActiveInfraRequests) obj;
176 return isEqual(requestId, other.requestId) && isEqual(serviceInstanceId, other.serviceInstanceId)
177 && isEqual(networkId, other.networkId) && isEqual(startTime, other.startTime)
178 && isEqual(endTime, other.endTime) && isEqual(requestStatus, other.requestStatus)
179 && isEqual(serviceInstanceName, other.serviceInstanceName)
180 && isEqual(serviceType, other.serviceType);
188 public String toString() {
189 return "SoActiveInfraRequests [requestId=" + requestId + ", serviceInstanceId=" + serviceInstanceId
190 + ", networkId=" + networkId + ", startTime=" + startTime + ", endTime=" + endTime + ", requestStatus="
191 + requestStatus + ", serviceInstanceName=" + serviceInstanceName + ", serviceType=" + serviceType + "]";