
com.indeed.rabbitmq.admin.pojo.Shovel 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.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* Defines a dynamic shovel. See https://www.rabbitmq.com/shovel-dynamic.html.
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"vhost",
"component",
"name",
"value"
})
public class Shovel {
/**
* The virtual host that contains this dynamic shovel.
*
*/
@JsonProperty("vhost")
@JsonPropertyDescription("The virtual host that contains this dynamic shovel.")
private String vhost;
/**
* This field will always contain "shovel".
*
*/
@JsonProperty("component")
@JsonPropertyDescription("This field will always contain \"shovel\".")
private String component;
/**
* The name of the dynamic shovel.
*
*/
@JsonProperty("name")
@JsonPropertyDescription("The name of the dynamic shovel.")
private String name;
/**
* The shovel declaration.
*
*/
@JsonProperty("value")
@JsonPropertyDescription("The shovel declaration.")
private ShovelArguments value;
@JsonIgnore
private Map additionalProperties = new HashMap();
/**
* The virtual host that contains this dynamic shovel.
*
*/
@JsonProperty("vhost")
public String getVhost() {
return vhost;
}
/**
* The virtual host that contains this dynamic shovel.
*
*/
@JsonProperty("vhost")
public void setVhost(String vhost) {
this.vhost = vhost;
}
public Shovel withVhost(String vhost) {
this.vhost = vhost;
return this;
}
/**
* This field will always contain "shovel".
*
*/
@JsonProperty("component")
public String getComponent() {
return component;
}
/**
* This field will always contain "shovel".
*
*/
@JsonProperty("component")
public void setComponent(String component) {
this.component = component;
}
public Shovel withComponent(String component) {
this.component = component;
return this;
}
/**
* The name of the dynamic shovel.
*
*/
@JsonProperty("name")
public String getName() {
return name;
}
/**
* The name of the dynamic shovel.
*
*/
@JsonProperty("name")
public void setName(String name) {
this.name = name;
}
public Shovel withName(String name) {
this.name = name;
return this;
}
/**
* The shovel declaration.
*
*/
@JsonProperty("value")
public ShovelArguments getValue() {
return value;
}
/**
* The shovel declaration.
*
*/
@JsonProperty("value")
public void setValue(ShovelArguments value) {
this.value = value;
}
public Shovel withValue(ShovelArguments value) {
this.value = value;
return this;
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
public Shovel withAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(Shovel.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
sb.append("vhost");
sb.append('=');
sb.append(((this.vhost == null)?"":this.vhost));
sb.append(',');
sb.append("component");
sb.append('=');
sb.append(((this.component == null)?"":this.component));
sb.append(',');
sb.append("name");
sb.append('=');
sb.append(((this.name == null)?"":this.name));
sb.append(',');
sb.append("value");
sb.append('=');
sb.append(((this.value == null)?"":this.value));
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.name == null)? 0 :this.name.hashCode()));
result = ((result* 31)+((this.vhost == null)? 0 :this.vhost.hashCode()));
result = ((result* 31)+((this.component == null)? 0 :this.component.hashCode()));
result = ((result* 31)+((this.additionalProperties == null)? 0 :this.additionalProperties.hashCode()));
result = ((result* 31)+((this.value == null)? 0 :this.value.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof Shovel) == false) {
return false;
}
Shovel rhs = ((Shovel) other);
return ((((((this.name == rhs.name)||((this.name!= null)&&this.name.equals(rhs.name)))&&((this.vhost == rhs.vhost)||((this.vhost!= null)&&this.vhost.equals(rhs.vhost))))&&((this.component == rhs.component)||((this.component!= null)&&this.component.equals(rhs.component))))&&((this.additionalProperties == rhs.additionalProperties)||((this.additionalProperties!= null)&&this.additionalProperties.equals(rhs.additionalProperties))))&&((this.value == rhs.value)||((this.value!= null)&&this.value.equals(rhs.value))));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy