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;
23 import com.fasterxml.jackson.annotation.JsonIgnore;
24 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
27 * @author waqas.ikram@ericsson.com
30 @JsonIgnoreProperties(ignoreUnknown = true)
31 public class SoActiveInfraRequests {
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;
43 * @return the requestId
45 public String getRequestId() {
50 * @param requestId the requestId to set
52 public void setRequestId(final String requestId) {
53 this.requestId = requestId;
57 * @return the serviceInstanceId
59 public String getServiceInstanceId() {
60 return serviceInstanceId;
64 * @param serviceInstanceId the serviceInstanceId to set
66 public void setServiceInstanceId(final String serviceInstanceId) {
67 this.serviceInstanceId = serviceInstanceId;
71 * @return the networkId
73 public String getNetworkId() {
78 * @param networkId the networkId to set
80 public void setNetworkId(final String networkId) {
81 this.networkId = networkId;
85 * @return the startTime
87 public String getStartTime() {
92 * @param startTime the startTime to set
94 public void setStartTime(final String startTime) {
95 this.startTime = startTime;
101 public String getEndTime() {
106 * @param endTime the endTime to set
108 public void setEndTime(final String endTime) {
109 this.endTime = endTime;
113 * @return the requestStatus
115 public String getRequestStatus() {
116 return requestStatus;
120 * @param requestStatus the requestStatus to set
122 public void setRequestStatus(final String requestStatus) {
123 this.requestStatus = requestStatus;
127 * @return the serviceInstanceName
129 public String getServiceInstanceName() {
130 return serviceInstanceName;
134 * @param serviceInstanceName the serviceInstanceName to set
136 public void setServiceInstanceName(final String serviceInstanceName) {
137 this.serviceInstanceName = serviceInstanceName;
141 * @return the serviceType
143 public String getServiceType() {
148 * @param serviceType the serviceType to set
150 public void setServiceType(final String serviceType) {
151 this.serviceType = serviceType;
156 public int hashCode() {
157 final int prime = 31;
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());
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);
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 + "]";