
com.indeed.rabbitmq.admin.pojo.Description 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;
/**
* Description of a RabbitMQ authentication mechanism or exchange entity.
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"name",
"description",
"enabled"
})
public class Description {
/**
* The entity name.
*
*/
@JsonProperty("name")
@JsonPropertyDescription("The entity name.")
private String name;
/**
* The entity description.
*
*/
@JsonProperty("description")
@JsonPropertyDescription("The entity description.")
private String description;
/**
* Indicates whether this entity is enabled or not.
*
*/
@JsonProperty("enabled")
@JsonPropertyDescription("Indicates whether this entity is enabled or not.")
private Boolean enabled;
@JsonIgnore
private Map additionalProperties = new HashMap();
/**
* The entity name.
*
*/
@JsonProperty("name")
public String getName() {
return name;
}
/**
* The entity name.
*
*/
@JsonProperty("name")
public void setName(String name) {
this.name = name;
}
public Description withName(String name) {
this.name = name;
return this;
}
/**
* The entity description.
*
*/
@JsonProperty("description")
public String getDescription() {
return description;
}
/**
* The entity description.
*
*/
@JsonProperty("description")
public void setDescription(String description) {
this.description = description;
}
public Description withDescription(String description) {
this.description = description;
return this;
}
/**
* Indicates whether this entity is enabled or not.
*
*/
@JsonProperty("enabled")
public Boolean getEnabled() {
return enabled;
}
/**
* Indicates whether this entity is enabled or not.
*
*/
@JsonProperty("enabled")
public void setEnabled(Boolean enabled) {
this.enabled = enabled;
}
public Description withEnabled(Boolean enabled) {
this.enabled = enabled;
return this;
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
public Description withAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(Description.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
sb.append("name");
sb.append('=');
sb.append(((this.name == null)?"":this.name));
sb.append(',');
sb.append("description");
sb.append('=');
sb.append(((this.description == null)?"":this.description));
sb.append(',');
sb.append("enabled");
sb.append('=');
sb.append(((this.enabled == null)?"":this.enabled));
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.description == null)? 0 :this.description.hashCode()));
result = ((result* 31)+((this.additionalProperties == null)? 0 :this.additionalProperties.hashCode()));
result = ((result* 31)+((this.enabled == null)? 0 :this.enabled.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof Description) == false) {
return false;
}
Description rhs = ((Description) other);
return (((((this.name == rhs.name)||((this.name!= null)&&this.name.equals(rhs.name)))&&((this.description == rhs.description)||((this.description!= null)&&this.description.equals(rhs.description))))&&((this.additionalProperties == rhs.additionalProperties)||((this.additionalProperties!= null)&&this.additionalProperties.equals(rhs.additionalProperties))))&&((this.enabled == rhs.enabled)||((this.enabled!= null)&&this.enabled.equals(rhs.enabled))));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy