com.dell.cpsd.includes.SIONodeData Maven / Gradle / Ivy
package com.dell.cpsd.includes;
import java.io.Serializable;
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;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"ip",
"user",
"pass"
})
public class SIONodeData implements Serializable
{
@JsonProperty("ip")
private String ip;
@JsonProperty("user")
private String user;
@JsonProperty("pass")
private String pass;
@JsonIgnore
private Map additionalProperties = new HashMap();
private final static long serialVersionUID = 5480741375658489669L;
/**
* No args constructor for use in serialization
*
*/
public SIONodeData() {
}
/**
*
* @param pass
* @param ip
* @param user
*/
public SIONodeData(String ip, String user, String pass) {
super();
this.ip = ip;
this.user = user;
this.pass = pass;
}
@JsonProperty("ip")
public String getIp() {
return ip;
}
@JsonProperty("ip")
public void setIp(String ip) {
this.ip = ip;
}
@JsonProperty("user")
public String getUser() {
return user;
}
@JsonProperty("user")
public void setUser(String user) {
this.user = user;
}
@JsonProperty("pass")
public String getPass() {
return pass;
}
@JsonProperty("pass")
public void setPass(String pass) {
this.pass = pass;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(ip).append(user).append(pass).append(additionalProperties).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof SIONodeData) == false) {
return false;
}
SIONodeData rhs = ((SIONodeData) other);
return new EqualsBuilder().append(ip, rhs.ip).append(user, rhs.user).append(pass, rhs.pass).append(additionalProperties, rhs.additionalProperties).isEquals();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy