
com.indeed.rabbitmq.admin.pojo.QueueArguments 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;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"x-message-ttl",
"x-expires",
"x-max-length",
"x-max-length-bytes",
"x-dead-letter-exchange",
"x-dead-letter-routing-key"
})
public class QueueArguments {
@JsonProperty("x-message-ttl")
private Long xMessageTtl;
@JsonProperty("x-expires")
private Long xExpires;
@JsonProperty("x-max-length")
private Long xMaxLength;
@JsonProperty("x-max-length-bytes")
private Long xMaxLengthBytes;
@JsonProperty("x-dead-letter-exchange")
private String xDeadLetterExchange;
@JsonProperty("x-dead-letter-routing-key")
private String xDeadLetterRoutingKey;
@JsonIgnore
private Map additionalProperties = new HashMap();
@JsonProperty("x-message-ttl")
public Long getxMessageTtl() {
return xMessageTtl;
}
@JsonProperty("x-message-ttl")
public void setxMessageTtl(Long xMessageTtl) {
this.xMessageTtl = xMessageTtl;
}
public QueueArguments withxMessageTtl(Long xMessageTtl) {
this.xMessageTtl = xMessageTtl;
return this;
}
@JsonProperty("x-expires")
public Long getxExpires() {
return xExpires;
}
@JsonProperty("x-expires")
public void setxExpires(Long xExpires) {
this.xExpires = xExpires;
}
public QueueArguments withxExpires(Long xExpires) {
this.xExpires = xExpires;
return this;
}
@JsonProperty("x-max-length")
public Long getxMaxLength() {
return xMaxLength;
}
@JsonProperty("x-max-length")
public void setxMaxLength(Long xMaxLength) {
this.xMaxLength = xMaxLength;
}
public QueueArguments withxMaxLength(Long xMaxLength) {
this.xMaxLength = xMaxLength;
return this;
}
@JsonProperty("x-max-length-bytes")
public Long getxMaxLengthBytes() {
return xMaxLengthBytes;
}
@JsonProperty("x-max-length-bytes")
public void setxMaxLengthBytes(Long xMaxLengthBytes) {
this.xMaxLengthBytes = xMaxLengthBytes;
}
public QueueArguments withxMaxLengthBytes(Long xMaxLengthBytes) {
this.xMaxLengthBytes = xMaxLengthBytes;
return this;
}
@JsonProperty("x-dead-letter-exchange")
public String getxDeadLetterExchange() {
return xDeadLetterExchange;
}
@JsonProperty("x-dead-letter-exchange")
public void setxDeadLetterExchange(String xDeadLetterExchange) {
this.xDeadLetterExchange = xDeadLetterExchange;
}
public QueueArguments withxDeadLetterExchange(String xDeadLetterExchange) {
this.xDeadLetterExchange = xDeadLetterExchange;
return this;
}
@JsonProperty("x-dead-letter-routing-key")
public String getxDeadLetterRoutingKey() {
return xDeadLetterRoutingKey;
}
@JsonProperty("x-dead-letter-routing-key")
public void setxDeadLetterRoutingKey(String xDeadLetterRoutingKey) {
this.xDeadLetterRoutingKey = xDeadLetterRoutingKey;
}
public QueueArguments withxDeadLetterRoutingKey(String xDeadLetterRoutingKey) {
this.xDeadLetterRoutingKey = xDeadLetterRoutingKey;
return this;
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
public QueueArguments withAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(QueueArguments.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
sb.append("xMessageTtl");
sb.append('=');
sb.append(((this.xMessageTtl == null)?"":this.xMessageTtl));
sb.append(',');
sb.append("xExpires");
sb.append('=');
sb.append(((this.xExpires == null)?"":this.xExpires));
sb.append(',');
sb.append("xMaxLength");
sb.append('=');
sb.append(((this.xMaxLength == null)?"":this.xMaxLength));
sb.append(',');
sb.append("xMaxLengthBytes");
sb.append('=');
sb.append(((this.xMaxLengthBytes == null)?"":this.xMaxLengthBytes));
sb.append(',');
sb.append("xDeadLetterExchange");
sb.append('=');
sb.append(((this.xDeadLetterExchange == null)?"":this.xDeadLetterExchange));
sb.append(',');
sb.append("xDeadLetterRoutingKey");
sb.append('=');
sb.append(((this.xDeadLetterRoutingKey == null)?"":this.xDeadLetterRoutingKey));
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.xExpires == null)? 0 :this.xExpires.hashCode()));
result = ((result* 31)+((this.xMaxLength == null)? 0 :this.xMaxLength.hashCode()));
result = ((result* 31)+((this.xMessageTtl == null)? 0 :this.xMessageTtl.hashCode()));
result = ((result* 31)+((this.xDeadLetterRoutingKey == null)? 0 :this.xDeadLetterRoutingKey.hashCode()));
result = ((result* 31)+((this.xMaxLengthBytes == null)? 0 :this.xMaxLengthBytes.hashCode()));
result = ((result* 31)+((this.xDeadLetterExchange == null)? 0 :this.xDeadLetterExchange.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 QueueArguments) == false) {
return false;
}
QueueArguments rhs = ((QueueArguments) other);
return ((((((((this.xExpires == rhs.xExpires)||((this.xExpires!= null)&&this.xExpires.equals(rhs.xExpires)))&&((this.xMaxLength == rhs.xMaxLength)||((this.xMaxLength!= null)&&this.xMaxLength.equals(rhs.xMaxLength))))&&((this.xMessageTtl == rhs.xMessageTtl)||((this.xMessageTtl!= null)&&this.xMessageTtl.equals(rhs.xMessageTtl))))&&((this.xDeadLetterRoutingKey == rhs.xDeadLetterRoutingKey)||((this.xDeadLetterRoutingKey!= null)&&this.xDeadLetterRoutingKey.equals(rhs.xDeadLetterRoutingKey))))&&((this.xMaxLengthBytes == rhs.xMaxLengthBytes)||((this.xMaxLengthBytes!= null)&&this.xMaxLengthBytes.equals(rhs.xMaxLengthBytes))))&&((this.xDeadLetterExchange == rhs.xDeadLetterExchange)||((this.xDeadLetterExchange!= null)&&this.xDeadLetterExchange.equals(rhs.xDeadLetterExchange))))&&((this.additionalProperties == rhs.additionalProperties)||((this.additionalProperties!= null)&&this.additionalProperties.equals(rhs.additionalProperties))));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy