
com.hubspot.singularity.SingularityWebhookSummary Maven / Gradle / Ivy
The newest version!
package com.hubspot.singularity;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.Objects;
public class SingularityWebhookSummary {
private final SingularityWebhook webhook;
private final int queueSize;
@JsonCreator
public SingularityWebhookSummary(@JsonProperty("webhook") SingularityWebhook webhook, @JsonProperty("queueSize") int queueSize) {
this.webhook = webhook;
this.queueSize = queueSize;
}
public SingularityWebhook getWebhook() {
return webhook;
}
public int getQueueSize() {
return queueSize;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SingularityWebhookSummary that = (SingularityWebhookSummary) o;
return queueSize == that.queueSize &&
Objects.equal(webhook, that.webhook);
}
@Override
public int hashCode() {
return Objects.hashCode(webhook, queueSize);
}
@Override
public String toString() {
return Objects.toStringHelper(this)
.add("webhook", webhook)
.add("queueSize", queueSize)
.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy