com.dell.cpsd.MasterDataRestRep 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({
"port",
"id",
"versionInfo",
"ips",
"name",
"role",
"managementIPs"
})
public class MasterDataRestRep implements Serializable
{
@JsonProperty("port")
private String port;
@JsonProperty("id")
private String id;
@JsonProperty("versionInfo")
private String versionInfo;
@JsonProperty("ips")
private List ips = new ArrayList();
@JsonProperty("name")
private String name;
@JsonProperty("role")
private String role;
@JsonProperty("managementIPs")
private List managementIPs = new ArrayList();
@JsonIgnore
private Map additionalProperties = new HashMap();
private final static long serialVersionUID = -7057000938556236501L;
/**
* No args constructor for use in serialization
*
*/
public MasterDataRestRep() {
}
/**
*
* @param role
* @param port
* @param name
* @param id
* @param versionInfo
* @param ips
* @param managementIPs
*/
public MasterDataRestRep(String port, String id, String versionInfo, List ips, String name, String role, List managementIPs) {
super();
this.port = port;
this.id = id;
this.versionInfo = versionInfo;
this.ips = ips;
this.name = name;
this.role = role;
this.managementIPs = managementIPs;
}
@JsonProperty("port")
public String getPort() {
return port;
}
@JsonProperty("port")
public void setPort(String port) {
this.port = port;
}
@JsonProperty("id")
public String getId() {
return id;
}
@JsonProperty("id")
public void setId(String id) {
this.id = id;
}
@JsonProperty("versionInfo")
public String getVersionInfo() {
return versionInfo;
}
@JsonProperty("versionInfo")
public void setVersionInfo(String versionInfo) {
this.versionInfo = versionInfo;
}
@JsonProperty("ips")
public List getIps() {
return ips;
}
@JsonProperty("ips")
public void setIps(List ips) {
this.ips = ips;
}
@JsonProperty("name")
public String getName() {
return name;
}
@JsonProperty("name")
public void setName(String name) {
this.name = name;
}
@JsonProperty("role")
public String getRole() {
return role;
}
@JsonProperty("role")
public void setRole(String role) {
this.role = role;
}
@JsonProperty("managementIPs")
public List getManagementIPs() {
return managementIPs;
}
@JsonProperty("managementIPs")
public void setManagementIPs(List managementIPs) {
this.managementIPs = managementIPs;
}
@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(port).append(id).append(versionInfo).append(ips).append(name).append(role).append(managementIPs).append(additionalProperties).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof MasterDataRestRep) == false) {
return false;
}
MasterDataRestRep rhs = ((MasterDataRestRep) other);
return new EqualsBuilder().append(port, rhs.port).append(id, rhs.id).append(versionInfo, rhs.versionInfo).append(ips, rhs.ips).append(name, rhs.name).append(role, rhs.role).append(managementIPs, rhs.managementIPs).append(additionalProperties, rhs.additionalProperties).isEquals();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy