com.dell.cpsd.InstallationManagerNode Maven / Gradle / Ivy
The newest version!
package com.dell.cpsd;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
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({
"ostype",
"nodeName",
"nodeIPs",
"domain",
"userName",
"password",
"liaPassword"
})
public class InstallationManagerNode implements Serializable
{
@JsonProperty("ostype")
private String ostype;
@JsonProperty("nodeName")
private String nodeName;
@JsonProperty("nodeIPs")
private List nodeIPs = new ArrayList();
@JsonProperty("domain")
private String domain;
@JsonProperty("userName")
private String userName;
@JsonProperty("password")
private String password;
@JsonProperty("liaPassword")
private String liaPassword;
@JsonIgnore
private Map additionalProperties = new HashMap();
private final static long serialVersionUID = -413999128831136401L;
/**
* No args constructor for use in serialization
*
*/
public InstallationManagerNode() {
}
/**
*
* @param nodeName
* @param password
* @param liaPassword
* @param domain
* @param ostype
* @param userName
* @param nodeIPs
*/
public InstallationManagerNode(String ostype, String nodeName, List nodeIPs, String domain, String userName, String password, String liaPassword) {
super();
this.ostype = ostype;
this.nodeName = nodeName;
this.nodeIPs = nodeIPs;
this.domain = domain;
this.userName = userName;
this.password = password;
this.liaPassword = liaPassword;
}
@JsonProperty("ostype")
public String getOstype() {
return ostype;
}
@JsonProperty("ostype")
public void setOstype(String ostype) {
this.ostype = ostype;
}
@JsonProperty("nodeName")
public String getNodeName() {
return nodeName;
}
@JsonProperty("nodeName")
public void setNodeName(String nodeName) {
this.nodeName = nodeName;
}
@JsonProperty("nodeIPs")
public List getNodeIPs() {
return nodeIPs;
}
@JsonProperty("nodeIPs")
public void setNodeIPs(List nodeIPs) {
this.nodeIPs = nodeIPs;
}
@JsonProperty("domain")
public String getDomain() {
return domain;
}
@JsonProperty("domain")
public void setDomain(String domain) {
this.domain = domain;
}
@JsonProperty("userName")
public String getUserName() {
return userName;
}
@JsonProperty("userName")
public void setUserName(String userName) {
this.userName = userName;
}
@JsonProperty("password")
public String getPassword() {
return password;
}
@JsonProperty("password")
public void setPassword(String password) {
this.password = password;
}
@JsonProperty("liaPassword")
public String getLiaPassword() {
return liaPassword;
}
@JsonProperty("liaPassword")
public void setLiaPassword(String liaPassword) {
this.liaPassword = liaPassword;
}
@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(ostype).append(nodeName).append(nodeIPs).append(domain).append(userName).append(password).append(liaPassword).append(additionalProperties).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof InstallationManagerNode) == false) {
return false;
}
InstallationManagerNode rhs = ((InstallationManagerNode) other);
return new EqualsBuilder().append(ostype, rhs.ostype).append(nodeName, rhs.nodeName).append(nodeIPs, rhs.nodeIPs).append(domain, rhs.domain).append(userName, rhs.userName).append(password, rhs.password).append(liaPassword, rhs.liaPassword).append(additionalProperties, rhs.additionalProperties).isEquals();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy