com.vmware.ovsdb.protocol.methods.MonitorRequests Maven / Gradle / Ivy
The newest version!
/*
* Copyright (c) 2018 VMware, Inc. All Rights Reserved.
*
* This product is licensed to you under the BSD-2 license (the "License").
* You may not use this product except in compliance with the BSD-2 License.
*
* This product may include a number of subcomponents with separate copyright
* notices and license terms. Your use of these subcomponents is subject to the
* terms and conditions of the subcomponent's license, as noted in the LICENSE
* file.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
package com.vmware.ovsdb.protocol.methods;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.vmware.ovsdb.protocol.methods.serializer.MonitorRequestsSerializer;
import java.util.Map;
import java.util.Objects;
/**
* The {@literal } object maps the name of the table to be monitored to an array
* of {@literal } objects.
*/
@JsonSerialize(using = MonitorRequestsSerializer.class)
public class MonitorRequests {
private final Map monitorRequests;
public MonitorRequests(Map monitorRequests) {
this.monitorRequests = monitorRequests;
}
public Map getMonitorRequests() {
return monitorRequests;
}
@Override
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof MonitorRequests)) {
return false;
}
MonitorRequests that = (MonitorRequests) other;
return Objects.equals(monitorRequests, that.getMonitorRequests());
}
@Override
public int hashCode() {
return Objects.hash(monitorRequests);
}
@Override
public String toString() {
return getClass().getSimpleName() + " ["
+ "monitorRequests=" + monitorRequests
+ "]";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy