com.dell.cpsd.rcm.evaluation.service.api.NetworkIdentity Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rcm-evaluation-service-api Show documentation
Show all versions of rcm-evaluation-service-api Show documentation
This repository contains the source code for the rcm evaluation service API.
Use this repository to share contracts between services so you can create POJOs using defined JSON schemas and to create message transformers for the RCM evaluation service.
The newest version!
package com.dell.cpsd.rcm.evaluation.service.api;
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.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"ipV4Address",
"ipV6Address",
"macAddress"
})
public class NetworkIdentity implements Serializable
{
@JsonProperty("ipV4Address")
private String ipV4Address;
@JsonProperty("ipV6Address")
private String ipV6Address;
@JsonProperty("macAddress")
private String macAddress;
@JsonIgnore
private Map additionalProperties = new HashMap();
private final static long serialVersionUID = -819660566348489994L;
/**
* No args constructor for use in serialization
*
*/
public NetworkIdentity() {
}
/**
*
* @param macAddress
* @param ipV4Address
* @param ipV6Address
*/
public NetworkIdentity(String ipV4Address, String ipV6Address, String macAddress) {
super();
this.ipV4Address = ipV4Address;
this.ipV6Address = ipV6Address;
this.macAddress = macAddress;
}
/**
*
* @return
* The ipV4Address
*/
@JsonProperty("ipV4Address")
public String getIpV4Address() {
return ipV4Address;
}
/**
*
* @param ipV4Address
* The ipV4Address
*/
@JsonProperty("ipV4Address")
public void setIpV4Address(String ipV4Address) {
this.ipV4Address = ipV4Address;
}
/**
*
* @return
* The ipV6Address
*/
@JsonProperty("ipV6Address")
public String getIpV6Address() {
return ipV6Address;
}
/**
*
* @param ipV6Address
* The ipV6Address
*/
@JsonProperty("ipV6Address")
public void setIpV6Address(String ipV6Address) {
this.ipV6Address = ipV6Address;
}
/**
*
* @return
* The macAddress
*/
@JsonProperty("macAddress")
public String getMacAddress() {
return macAddress;
}
/**
*
* @param macAddress
* The macAddress
*/
@JsonProperty("macAddress")
public void setMacAddress(String macAddress) {
this.macAddress = macAddress;
}
@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(ipV4Address).append(ipV6Address).append(macAddress).append(additionalProperties).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof NetworkIdentity) == false) {
return false;
}
NetworkIdentity rhs = ((NetworkIdentity) other);
return new EqualsBuilder().append(ipV4Address, rhs.ipV4Address).append(ipV6Address, rhs.ipV6Address).append(macAddress, rhs.macAddress).append(additionalProperties, rhs.additionalProperties).isEquals();
}
}