
com.indeed.rabbitmq.admin.pojo.ChannelDetails 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({
"name",
"connection_name",
"peer_host",
"peer_port",
"user",
"number"
})
public class ChannelDetails {
@JsonProperty("name")
private String name;
@JsonProperty("connection_name")
private String connectionName;
@JsonProperty("peer_host")
private String peerHost;
@JsonProperty("peer_port")
private Long peerPort;
@JsonProperty("user")
private String user;
@JsonProperty("number")
private Long number;
@JsonIgnore
private Map additionalProperties = new HashMap();
@JsonProperty("name")
public String getName() {
return name;
}
@JsonProperty("name")
public void setName(String name) {
this.name = name;
}
public ChannelDetails withName(String name) {
this.name = name;
return this;
}
@JsonProperty("connection_name")
public String getConnectionName() {
return connectionName;
}
@JsonProperty("connection_name")
public void setConnectionName(String connectionName) {
this.connectionName = connectionName;
}
public ChannelDetails withConnectionName(String connectionName) {
this.connectionName = connectionName;
return this;
}
@JsonProperty("peer_host")
public String getPeerHost() {
return peerHost;
}
@JsonProperty("peer_host")
public void setPeerHost(String peerHost) {
this.peerHost = peerHost;
}
public ChannelDetails withPeerHost(String peerHost) {
this.peerHost = peerHost;
return this;
}
@JsonProperty("peer_port")
public Long getPeerPort() {
return peerPort;
}
@JsonProperty("peer_port")
public void setPeerPort(Long peerPort) {
this.peerPort = peerPort;
}
public ChannelDetails withPeerPort(Long peerPort) {
this.peerPort = peerPort;
return this;
}
@JsonProperty("user")
public String getUser() {
return user;
}
@JsonProperty("user")
public void setUser(String user) {
this.user = user;
}
public ChannelDetails withUser(String user) {
this.user = user;
return this;
}
@JsonProperty("number")
public Long getNumber() {
return number;
}
@JsonProperty("number")
public void setNumber(Long number) {
this.number = number;
}
public ChannelDetails withNumber(Long number) {
this.number = number;
return this;
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
public ChannelDetails withAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(ChannelDetails.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("connectionName");
sb.append('=');
sb.append(((this.connectionName == null)?"":this.connectionName));
sb.append(',');
sb.append("peerHost");
sb.append('=');
sb.append(((this.peerHost == null)?"":this.peerHost));
sb.append(',');
sb.append("peerPort");
sb.append('=');
sb.append(((this.peerPort == null)?"":this.peerPort));
sb.append(',');
sb.append("user");
sb.append('=');
sb.append(((this.user == null)?"":this.user));
sb.append(',');
sb.append("number");
sb.append('=');
sb.append(((this.number == null)?"":this.number));
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.peerHost == null)? 0 :this.peerHost.hashCode()));
result = ((result* 31)+((this.number == null)? 0 :this.number.hashCode()));
result = ((result* 31)+((this.name == null)? 0 :this.name.hashCode()));
result = ((result* 31)+((this.connectionName == null)? 0 :this.connectionName.hashCode()));
result = ((result* 31)+((this.additionalProperties == null)? 0 :this.additionalProperties.hashCode()));
result = ((result* 31)+((this.peerPort == null)? 0 :this.peerPort.hashCode()));
result = ((result* 31)+((this.user == null)? 0 :this.user.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof ChannelDetails) == false) {
return false;
}
ChannelDetails rhs = ((ChannelDetails) other);
return ((((((((this.peerHost == rhs.peerHost)||((this.peerHost!= null)&&this.peerHost.equals(rhs.peerHost)))&&((this.number == rhs.number)||((this.number!= null)&&this.number.equals(rhs.number))))&&((this.name == rhs.name)||((this.name!= null)&&this.name.equals(rhs.name))))&&((this.connectionName == rhs.connectionName)||((this.connectionName!= null)&&this.connectionName.equals(rhs.connectionName))))&&((this.additionalProperties == rhs.additionalProperties)||((this.additionalProperties!= null)&&this.additionalProperties.equals(rhs.additionalProperties))))&&((this.peerPort == rhs.peerPort)||((this.peerPort!= null)&&this.peerPort.equals(rhs.peerPort))))&&((this.user == rhs.user)||((this.user!= null)&&this.user.equals(rhs.user))));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy