
com.indeed.rabbitmq.admin.pojo.ObjectTotals Maven / Gradle / Ivy
package com.indeed.rabbitmq.admin.pojo;
import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* Totals of various RabbitMQ entities.
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"channels",
"connections",
"consumers",
"exchanges",
"queues"
})
public class ObjectTotals {
@JsonProperty("channels")
private Long channels;
@JsonProperty("connections")
private Long connections;
@JsonProperty("consumers")
private Long consumers;
@JsonProperty("exchanges")
private Long exchanges;
@JsonProperty("queues")
private Long queues;
@JsonIgnore
private Map additionalProperties = new HashMap();
@JsonProperty("channels")
public Long getChannels() {
return channels;
}
@JsonProperty("channels")
public void setChannels(Long channels) {
this.channels = channels;
}
public ObjectTotals withChannels(Long channels) {
this.channels = channels;
return this;
}
@JsonProperty("connections")
public Long getConnections() {
return connections;
}
@JsonProperty("connections")
public void setConnections(Long connections) {
this.connections = connections;
}
public ObjectTotals withConnections(Long connections) {
this.connections = connections;
return this;
}
@JsonProperty("consumers")
public Long getConsumers() {
return consumers;
}
@JsonProperty("consumers")
public void setConsumers(Long consumers) {
this.consumers = consumers;
}
public ObjectTotals withConsumers(Long consumers) {
this.consumers = consumers;
return this;
}
@JsonProperty("exchanges")
public Long getExchanges() {
return exchanges;
}
@JsonProperty("exchanges")
public void setExchanges(Long exchanges) {
this.exchanges = exchanges;
}
public ObjectTotals withExchanges(Long exchanges) {
this.exchanges = exchanges;
return this;
}
@JsonProperty("queues")
public Long getQueues() {
return queues;
}
@JsonProperty("queues")
public void setQueues(Long queues) {
this.queues = queues;
}
public ObjectTotals withQueues(Long queues) {
this.queues = queues;
return this;
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
public ObjectTotals withAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(ObjectTotals.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
sb.append("channels");
sb.append('=');
sb.append(((this.channels == null)?"":this.channels));
sb.append(',');
sb.append("connections");
sb.append('=');
sb.append(((this.connections == null)?"":this.connections));
sb.append(',');
sb.append("consumers");
sb.append('=');
sb.append(((this.consumers == null)?"":this.consumers));
sb.append(',');
sb.append("exchanges");
sb.append('=');
sb.append(((this.exchanges == null)?"":this.exchanges));
sb.append(',');
sb.append("queues");
sb.append('=');
sb.append(((this.queues == null)?"":this.queues));
sb.append(',');
sb.append("additionalProperties");
sb.append('=');
sb.append(((this.additionalProperties == null)?"":this.additionalProperties));
sb.append(',');
if (sb.charAt((sb.length()- 1)) == ',') {
sb.setCharAt((sb.length()- 1), ']');
} else {
sb.append(']');
}
return sb.toString();
}
@Override
public int hashCode() {
int result = 1;
result = ((result* 31)+((this.channels == null)? 0 :this.channels.hashCode()));
result = ((result* 31)+((this.queues == null)? 0 :this.queues.hashCode()));
result = ((result* 31)+((this.exchanges == null)? 0 :this.exchanges.hashCode()));
result = ((result* 31)+((this.consumers == null)? 0 :this.consumers.hashCode()));
result = ((result* 31)+((this.additionalProperties == null)? 0 :this.additionalProperties.hashCode()));
result = ((result* 31)+((this.connections == null)? 0 :this.connections.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof ObjectTotals) == false) {
return false;
}
ObjectTotals rhs = ((ObjectTotals) other);
return (((((((this.channels == rhs.channels)||((this.channels!= null)&&this.channels.equals(rhs.channels)))&&((this.queues == rhs.queues)||((this.queues!= null)&&this.queues.equals(rhs.queues))))&&((this.exchanges == rhs.exchanges)||((this.exchanges!= null)&&this.exchanges.equals(rhs.exchanges))))&&((this.consumers == rhs.consumers)||((this.consumers!= null)&&this.consumers.equals(rhs.consumers))))&&((this.additionalProperties == rhs.additionalProperties)||((this.additionalProperties!= null)&&this.additionalProperties.equals(rhs.additionalProperties))))&&((this.connections == rhs.connections)||((this.connections!= null)&&this.connections.equals(rhs.connections))));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy