com.dell.cpsd.rcm.evaluation.service.api.ElementIdentity 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({
"elementType",
"identifier",
"serialNumber",
"networkIdentity"
})
public class ElementIdentity implements Serializable
{
/**
*
* (Required)
*
*/
@JsonProperty("elementType")
private String elementType;
@JsonProperty("identifier")
private String identifier;
@JsonProperty("serialNumber")
private String serialNumber;
/**
*
*/
@JsonProperty("networkIdentity")
private NetworkIdentity networkIdentity;
@JsonIgnore
private Map additionalProperties = new HashMap();
private final static long serialVersionUID = -2733567976584133698L;
/**
* No args constructor for use in serialization
*
*/
public ElementIdentity() {
}
/**
*
* @param identifier
* @param serialNumber
* @param networkIdentity
* @param elementType
*/
public ElementIdentity(String elementType, String identifier, String serialNumber, NetworkIdentity networkIdentity) {
super();
this.elementType = elementType;
this.identifier = identifier;
this.serialNumber = serialNumber;
this.networkIdentity = networkIdentity;
}
/**
*
* (Required)
*
* @return
* The elementType
*/
@JsonProperty("elementType")
public String getElementType() {
return elementType;
}
/**
*
* (Required)
*
* @param elementType
* The elementType
*/
@JsonProperty("elementType")
public void setElementType(String elementType) {
this.elementType = elementType;
}
/**
*
* @return
* The identifier
*/
@JsonProperty("identifier")
public String getIdentifier() {
return identifier;
}
/**
*
* @param identifier
* The identifier
*/
@JsonProperty("identifier")
public void setIdentifier(String identifier) {
this.identifier = identifier;
}
/**
*
* @return
* The serialNumber
*/
@JsonProperty("serialNumber")
public String getSerialNumber() {
return serialNumber;
}
/**
*
* @param serialNumber
* The serialNumber
*/
@JsonProperty("serialNumber")
public void setSerialNumber(String serialNumber) {
this.serialNumber = serialNumber;
}
/**
*
* @return
* The networkIdentity
*/
@JsonProperty("networkIdentity")
public NetworkIdentity getNetworkIdentity() {
return networkIdentity;
}
/**
*
* @param networkIdentity
* The networkIdentity
*/
@JsonProperty("networkIdentity")
public void setNetworkIdentity(NetworkIdentity networkIdentity) {
this.networkIdentity = networkIdentity;
}
@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(elementType).append(identifier).append(serialNumber).append(networkIdentity).append(additionalProperties).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof ElementIdentity) == false) {
return false;
}
ElementIdentity rhs = ((ElementIdentity) other);
return new EqualsBuilder().append(elementType, rhs.elementType).append(identifier, rhs.identifier).append(serialNumber, rhs.serialNumber).append(networkIdentity, rhs.networkIdentity).append(additionalProperties, rhs.additionalProperties).isEquals();
}
}