
com.indeed.rabbitmq.admin.pojo.Overview Maven / Gradle / Ivy
package com.indeed.rabbitmq.admin.pojo;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonValue;
/**
* Overview of the RabbitMQ cluster.
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"node",
"cluster_name",
"rabbitmq_version",
"management_version",
"rates_mode",
"exchange_types",
"erlang_version",
"erlang_full_version",
"message_stats",
"queue_totals",
"object_totals",
"statistics_db_event_queue",
"statistics_db_node",
"listeners",
"contexts"
})
public class Overview {
@JsonProperty("node")
private String node;
/**
* The name of the RabbitMQ cluster.
*
*/
@JsonProperty("cluster_name")
@JsonPropertyDescription("The name of the RabbitMQ cluster.")
private String clusterName;
/**
* The version of this RabbitMQ service.
*
*/
@JsonProperty("rabbitmq_version")
@JsonPropertyDescription("The version of this RabbitMQ service.")
private String rabbitmqVersion;
/**
* The version of the RabbitMQ management API.
*
*/
@JsonProperty("management_version")
@JsonPropertyDescription("The version of the RabbitMQ management API.")
private String managementVersion;
@JsonProperty("rates_mode")
private Overview.RatesMode ratesMode;
@JsonProperty("exchange_types")
private List exchangeTypes = new ArrayList();
/**
* The version of Erlang used to run this RabbitMQ service.
*
*/
@JsonProperty("erlang_version")
@JsonPropertyDescription("The version of Erlang used to run this RabbitMQ service.")
private String erlangVersion;
/**
* The full version of Erlang used to run this RabbitMQ service.
*
*/
@JsonProperty("erlang_full_version")
@JsonPropertyDescription("The full version of Erlang used to run this RabbitMQ service.")
private String erlangFullVersion;
/**
* Rates and counts of incoming, delivered and published messages.
*
*/
@JsonProperty("message_stats")
@JsonPropertyDescription("Rates and counts of incoming, delivered and published messages.")
private MessageStatistics messageStats;
/**
* Totals of how many messages can be found in each message state.
*
*/
@JsonProperty("queue_totals")
@JsonPropertyDescription("Totals of how many messages can be found in each message state.")
private QueueTotals queueTotals;
/**
* Totals of various RabbitMQ entities.
*
*/
@JsonProperty("object_totals")
@JsonPropertyDescription("Totals of various RabbitMQ entities.")
private ObjectTotals objectTotals;
@JsonProperty("statistics_db_event_queue")
private Long statisticsDbEventQueue;
@JsonProperty("statistics_db_node")
private String statisticsDbNode;
@JsonProperty("listeners")
private List listeners = new ArrayList();
@JsonProperty("contexts")
private List contexts = new ArrayList();
@JsonIgnore
private Map additionalProperties = new HashMap();
@JsonProperty("node")
public String getNode() {
return node;
}
@JsonProperty("node")
public void setNode(String node) {
this.node = node;
}
public Overview withNode(String node) {
this.node = node;
return this;
}
/**
* The name of the RabbitMQ cluster.
*
*/
@JsonProperty("cluster_name")
public String getClusterName() {
return clusterName;
}
/**
* The name of the RabbitMQ cluster.
*
*/
@JsonProperty("cluster_name")
public void setClusterName(String clusterName) {
this.clusterName = clusterName;
}
public Overview withClusterName(String clusterName) {
this.clusterName = clusterName;
return this;
}
/**
* The version of this RabbitMQ service.
*
*/
@JsonProperty("rabbitmq_version")
public String getRabbitmqVersion() {
return rabbitmqVersion;
}
/**
* The version of this RabbitMQ service.
*
*/
@JsonProperty("rabbitmq_version")
public void setRabbitmqVersion(String rabbitmqVersion) {
this.rabbitmqVersion = rabbitmqVersion;
}
public Overview withRabbitmqVersion(String rabbitmqVersion) {
this.rabbitmqVersion = rabbitmqVersion;
return this;
}
/**
* The version of the RabbitMQ management API.
*
*/
@JsonProperty("management_version")
public String getManagementVersion() {
return managementVersion;
}
/**
* The version of the RabbitMQ management API.
*
*/
@JsonProperty("management_version")
public void setManagementVersion(String managementVersion) {
this.managementVersion = managementVersion;
}
public Overview withManagementVersion(String managementVersion) {
this.managementVersion = managementVersion;
return this;
}
@JsonProperty("rates_mode")
public Overview.RatesMode getRatesMode() {
return ratesMode;
}
@JsonProperty("rates_mode")
public void setRatesMode(Overview.RatesMode ratesMode) {
this.ratesMode = ratesMode;
}
public Overview withRatesMode(Overview.RatesMode ratesMode) {
this.ratesMode = ratesMode;
return this;
}
@JsonProperty("exchange_types")
public List getExchangeTypes() {
return exchangeTypes;
}
@JsonProperty("exchange_types")
public void setExchangeTypes(List exchangeTypes) {
this.exchangeTypes = exchangeTypes;
}
public Overview withExchangeTypes(List exchangeTypes) {
this.exchangeTypes = exchangeTypes;
return this;
}
/**
* The version of Erlang used to run this RabbitMQ service.
*
*/
@JsonProperty("erlang_version")
public String getErlangVersion() {
return erlangVersion;
}
/**
* The version of Erlang used to run this RabbitMQ service.
*
*/
@JsonProperty("erlang_version")
public void setErlangVersion(String erlangVersion) {
this.erlangVersion = erlangVersion;
}
public Overview withErlangVersion(String erlangVersion) {
this.erlangVersion = erlangVersion;
return this;
}
/**
* The full version of Erlang used to run this RabbitMQ service.
*
*/
@JsonProperty("erlang_full_version")
public String getErlangFullVersion() {
return erlangFullVersion;
}
/**
* The full version of Erlang used to run this RabbitMQ service.
*
*/
@JsonProperty("erlang_full_version")
public void setErlangFullVersion(String erlangFullVersion) {
this.erlangFullVersion = erlangFullVersion;
}
public Overview withErlangFullVersion(String erlangFullVersion) {
this.erlangFullVersion = erlangFullVersion;
return this;
}
/**
* Rates and counts of incoming, delivered and published messages.
*
*/
@JsonProperty("message_stats")
public MessageStatistics getMessageStats() {
return messageStats;
}
/**
* Rates and counts of incoming, delivered and published messages.
*
*/
@JsonProperty("message_stats")
public void setMessageStats(MessageStatistics messageStats) {
this.messageStats = messageStats;
}
public Overview withMessageStats(MessageStatistics messageStats) {
this.messageStats = messageStats;
return this;
}
/**
* Totals of how many messages can be found in each message state.
*
*/
@JsonProperty("queue_totals")
public QueueTotals getQueueTotals() {
return queueTotals;
}
/**
* Totals of how many messages can be found in each message state.
*
*/
@JsonProperty("queue_totals")
public void setQueueTotals(QueueTotals queueTotals) {
this.queueTotals = queueTotals;
}
public Overview withQueueTotals(QueueTotals queueTotals) {
this.queueTotals = queueTotals;
return this;
}
/**
* Totals of various RabbitMQ entities.
*
*/
@JsonProperty("object_totals")
public ObjectTotals getObjectTotals() {
return objectTotals;
}
/**
* Totals of various RabbitMQ entities.
*
*/
@JsonProperty("object_totals")
public void setObjectTotals(ObjectTotals objectTotals) {
this.objectTotals = objectTotals;
}
public Overview withObjectTotals(ObjectTotals objectTotals) {
this.objectTotals = objectTotals;
return this;
}
@JsonProperty("statistics_db_event_queue")
public Long getStatisticsDbEventQueue() {
return statisticsDbEventQueue;
}
@JsonProperty("statistics_db_event_queue")
public void setStatisticsDbEventQueue(Long statisticsDbEventQueue) {
this.statisticsDbEventQueue = statisticsDbEventQueue;
}
public Overview withStatisticsDbEventQueue(Long statisticsDbEventQueue) {
this.statisticsDbEventQueue = statisticsDbEventQueue;
return this;
}
@JsonProperty("statistics_db_node")
public String getStatisticsDbNode() {
return statisticsDbNode;
}
@JsonProperty("statistics_db_node")
public void setStatisticsDbNode(String statisticsDbNode) {
this.statisticsDbNode = statisticsDbNode;
}
public Overview withStatisticsDbNode(String statisticsDbNode) {
this.statisticsDbNode = statisticsDbNode;
return this;
}
@JsonProperty("listeners")
public List getListeners() {
return listeners;
}
@JsonProperty("listeners")
public void setListeners(List listeners) {
this.listeners = listeners;
}
public Overview withListeners(List listeners) {
this.listeners = listeners;
return this;
}
@JsonProperty("contexts")
public List getContexts() {
return contexts;
}
@JsonProperty("contexts")
public void setContexts(List contexts) {
this.contexts = contexts;
}
public Overview withContexts(List contexts) {
this.contexts = contexts;
return this;
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
public Overview withAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(Overview.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
sb.append("node");
sb.append('=');
sb.append(((this.node == null)?"":this.node));
sb.append(',');
sb.append("clusterName");
sb.append('=');
sb.append(((this.clusterName == null)?"":this.clusterName));
sb.append(',');
sb.append("rabbitmqVersion");
sb.append('=');
sb.append(((this.rabbitmqVersion == null)?"":this.rabbitmqVersion));
sb.append(',');
sb.append("managementVersion");
sb.append('=');
sb.append(((this.managementVersion == null)?"":this.managementVersion));
sb.append(',');
sb.append("ratesMode");
sb.append('=');
sb.append(((this.ratesMode == null)?"":this.ratesMode));
sb.append(',');
sb.append("exchangeTypes");
sb.append('=');
sb.append(((this.exchangeTypes == null)?"":this.exchangeTypes));
sb.append(',');
sb.append("erlangVersion");
sb.append('=');
sb.append(((this.erlangVersion == null)?"":this.erlangVersion));
sb.append(',');
sb.append("erlangFullVersion");
sb.append('=');
sb.append(((this.erlangFullVersion == null)?"":this.erlangFullVersion));
sb.append(',');
sb.append("messageStats");
sb.append('=');
sb.append(((this.messageStats == null)?"":this.messageStats));
sb.append(',');
sb.append("queueTotals");
sb.append('=');
sb.append(((this.queueTotals == null)?"":this.queueTotals));
sb.append(',');
sb.append("objectTotals");
sb.append('=');
sb.append(((this.objectTotals == null)?"":this.objectTotals));
sb.append(',');
sb.append("statisticsDbEventQueue");
sb.append('=');
sb.append(((this.statisticsDbEventQueue == null)?"":this.statisticsDbEventQueue));
sb.append(',');
sb.append("statisticsDbNode");
sb.append('=');
sb.append(((this.statisticsDbNode == null)?"":this.statisticsDbNode));
sb.append(',');
sb.append("listeners");
sb.append('=');
sb.append(((this.listeners == null)?"":this.listeners));
sb.append(',');
sb.append("contexts");
sb.append('=');
sb.append(((this.contexts == null)?"":this.contexts));
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.objectTotals == null)? 0 :this.objectTotals.hashCode()));
result = ((result* 31)+((this.statisticsDbEventQueue == null)? 0 :this.statisticsDbEventQueue.hashCode()));
result = ((result* 31)+((this.statisticsDbNode == null)? 0 :this.statisticsDbNode.hashCode()));
result = ((result* 31)+((this.listeners == null)? 0 :this.listeners.hashCode()));
result = ((result* 31)+((this.ratesMode == null)? 0 :this.ratesMode.hashCode()));
result = ((result* 31)+((this.rabbitmqVersion == null)? 0 :this.rabbitmqVersion.hashCode()));
result = ((result* 31)+((this.queueTotals == null)? 0 :this.queueTotals.hashCode()));
result = ((result* 31)+((this.contexts == null)? 0 :this.contexts.hashCode()));
result = ((result* 31)+((this.erlangFullVersion == null)? 0 :this.erlangFullVersion.hashCode()));
result = ((result* 31)+((this.node == null)? 0 :this.node.hashCode()));
result = ((result* 31)+((this.messageStats == null)? 0 :this.messageStats.hashCode()));
result = ((result* 31)+((this.clusterName == null)? 0 :this.clusterName.hashCode()));
result = ((result* 31)+((this.exchangeTypes == null)? 0 :this.exchangeTypes.hashCode()));
result = ((result* 31)+((this.erlangVersion == null)? 0 :this.erlangVersion.hashCode()));
result = ((result* 31)+((this.managementVersion == null)? 0 :this.managementVersion.hashCode()));
result = ((result* 31)+((this.additionalProperties == null)? 0 :this.additionalProperties.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof Overview) == false) {
return false;
}
Overview rhs = ((Overview) other);
return (((((((((((((((((this.objectTotals == rhs.objectTotals)||((this.objectTotals!= null)&&this.objectTotals.equals(rhs.objectTotals)))&&((this.statisticsDbEventQueue == rhs.statisticsDbEventQueue)||((this.statisticsDbEventQueue!= null)&&this.statisticsDbEventQueue.equals(rhs.statisticsDbEventQueue))))&&((this.statisticsDbNode == rhs.statisticsDbNode)||((this.statisticsDbNode!= null)&&this.statisticsDbNode.equals(rhs.statisticsDbNode))))&&((this.listeners == rhs.listeners)||((this.listeners!= null)&&this.listeners.equals(rhs.listeners))))&&((this.ratesMode == rhs.ratesMode)||((this.ratesMode!= null)&&this.ratesMode.equals(rhs.ratesMode))))&&((this.rabbitmqVersion == rhs.rabbitmqVersion)||((this.rabbitmqVersion!= null)&&this.rabbitmqVersion.equals(rhs.rabbitmqVersion))))&&((this.queueTotals == rhs.queueTotals)||((this.queueTotals!= null)&&this.queueTotals.equals(rhs.queueTotals))))&&((this.contexts == rhs.contexts)||((this.contexts!= null)&&this.contexts.equals(rhs.contexts))))&&((this.erlangFullVersion == rhs.erlangFullVersion)||((this.erlangFullVersion!= null)&&this.erlangFullVersion.equals(rhs.erlangFullVersion))))&&((this.node == rhs.node)||((this.node!= null)&&this.node.equals(rhs.node))))&&((this.messageStats == rhs.messageStats)||((this.messageStats!= null)&&this.messageStats.equals(rhs.messageStats))))&&((this.clusterName == rhs.clusterName)||((this.clusterName!= null)&&this.clusterName.equals(rhs.clusterName))))&&((this.exchangeTypes == rhs.exchangeTypes)||((this.exchangeTypes!= null)&&this.exchangeTypes.equals(rhs.exchangeTypes))))&&((this.erlangVersion == rhs.erlangVersion)||((this.erlangVersion!= null)&&this.erlangVersion.equals(rhs.erlangVersion))))&&((this.managementVersion == rhs.managementVersion)||((this.managementVersion!= null)&&this.managementVersion.equals(rhs.managementVersion))))&&((this.additionalProperties == rhs.additionalProperties)||((this.additionalProperties!= null)&&this.additionalProperties.equals(rhs.additionalProperties))));
}
public enum RatesMode {
BASIC("basic"),
DETAILED("detailed"),
NONE("none");
private final String value;
private final static Map CONSTANTS = new HashMap();
static {
for (Overview.RatesMode c: values()) {
CONSTANTS.put(c.value, c);
}
}
private RatesMode(String value) {
this.value = value;
}
@Override
public String toString() {
return this.value;
}
@JsonValue
public String value() {
return this.value;
}
@JsonCreator
public static Overview.RatesMode fromValue(String value) {
Overview.RatesMode constant = CONSTANTS.get(value);
if (constant == null) {
throw new IllegalArgumentException(value);
} else {
return constant;
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy