All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dell.cpsd.hal.data.provider.api.DeviceData Maven / Gradle / Ivy


package com.dell.cpsd.hal.data.provider.api;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
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;


/**
 * DeviceData
 * 

* * */ @JsonInclude(JsonInclude.Include.NON_NULL) @JsonPropertyOrder({ "timestamp", "elementIdentity", "contextIdentity", "networkIdentity", "absoluteIdentity", "elementDefinition", "versionData", "subComponents" }) public class DeviceData { @JsonProperty("timestamp") private Date timestamp; /** * ElementIdentity *

* * */ @JsonProperty("elementIdentity") private ElementIdentity elementIdentity; /** * */ @JsonProperty("contextIdentity") private ContextIdentity contextIdentity; /** * */ @JsonProperty("networkIdentity") private NetworkIdentity networkIdentity; /** * AbsoluteIdentity *

* * */ @JsonProperty("absoluteIdentity") private AbsoluteIdentity absoluteIdentity; /** * ElementDefinition *

* * */ @JsonProperty("elementDefinition") private ElementDefinition elementDefinition; @JsonProperty("versionData") private List versionData = new ArrayList(); @JsonProperty("subComponents") private List subComponents = new ArrayList(); /** * No args constructor for use in serialization * */ public DeviceData() { } /** * * @param contextIdentity * @param absoluteIdentity * @param versionData * @param subComponents * @param networkIdentity * @param timestamp * @param elementIdentity * @param elementDefinition */ public DeviceData(Date timestamp, ElementIdentity elementIdentity, ContextIdentity contextIdentity, NetworkIdentity networkIdentity, AbsoluteIdentity absoluteIdentity, ElementDefinition elementDefinition, List versionData, List subComponents) { super(); this.timestamp = timestamp; this.elementIdentity = elementIdentity; this.contextIdentity = contextIdentity; this.networkIdentity = networkIdentity; this.absoluteIdentity = absoluteIdentity; this.elementDefinition = elementDefinition; this.versionData = versionData; this.subComponents = subComponents; } /** * * @return * The timestamp */ @JsonProperty("timestamp") public Date getTimestamp() { return timestamp; } /** * * @param timestamp * The timestamp */ @JsonProperty("timestamp") public void setTimestamp(Date timestamp) { this.timestamp = timestamp; } /** * ElementIdentity *

* * * @return * The elementIdentity */ @JsonProperty("elementIdentity") public ElementIdentity getElementIdentity() { return elementIdentity; } /** * ElementIdentity *

* * * @param elementIdentity * The elementIdentity */ @JsonProperty("elementIdentity") public void setElementIdentity(ElementIdentity elementIdentity) { this.elementIdentity = elementIdentity; } /** * * @return * The contextIdentity */ @JsonProperty("contextIdentity") public ContextIdentity getContextIdentity() { return contextIdentity; } /** * * @param contextIdentity * The contextIdentity */ @JsonProperty("contextIdentity") public void setContextIdentity(ContextIdentity contextIdentity) { this.contextIdentity = contextIdentity; } /** * * @return * The networkIdentity */ @JsonProperty("networkIdentity") public NetworkIdentity getNetworkIdentity() { return networkIdentity; } /** * * @param networkIdentity * The networkIdentity */ @JsonProperty("networkIdentity") public void setNetworkIdentity(NetworkIdentity networkIdentity) { this.networkIdentity = networkIdentity; } /** * AbsoluteIdentity *

* * * @return * The absoluteIdentity */ @JsonProperty("absoluteIdentity") public AbsoluteIdentity getAbsoluteIdentity() { return absoluteIdentity; } /** * AbsoluteIdentity *

* * * @param absoluteIdentity * The absoluteIdentity */ @JsonProperty("absoluteIdentity") public void setAbsoluteIdentity(AbsoluteIdentity absoluteIdentity) { this.absoluteIdentity = absoluteIdentity; } /** * ElementDefinition *

* * * @return * The elementDefinition */ @JsonProperty("elementDefinition") public ElementDefinition getElementDefinition() { return elementDefinition; } /** * ElementDefinition *

* * * @param elementDefinition * The elementDefinition */ @JsonProperty("elementDefinition") public void setElementDefinition(ElementDefinition elementDefinition) { this.elementDefinition = elementDefinition; } /** * * @return * The versionData */ @JsonProperty("versionData") public List getVersionData() { return versionData; } /** * * @param versionData * The versionData */ @JsonProperty("versionData") public void setVersionData(List versionData) { this.versionData = versionData; } /** * * @return * The subComponents */ @JsonProperty("subComponents") public List getSubComponents() { return subComponents; } /** * * @param subComponents * The subComponents */ @JsonProperty("subComponents") public void setSubComponents(List subComponents) { this.subComponents = subComponents; } @Override public String toString() { return ToStringBuilder.reflectionToString(this); } @Override public int hashCode() { return new HashCodeBuilder().append(timestamp).append(elementIdentity).append(contextIdentity).append(networkIdentity).append(absoluteIdentity).append(elementDefinition).append(versionData).append(subComponents).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof DeviceData) == false) { return false; } DeviceData rhs = ((DeviceData) other); return new EqualsBuilder().append(timestamp, rhs.timestamp).append(elementIdentity, rhs.elementIdentity).append(contextIdentity, rhs.contextIdentity).append(networkIdentity, rhs.networkIdentity).append(absoluteIdentity, rhs.absoluteIdentity).append(elementDefinition, rhs.elementDefinition).append(versionData, rhs.versionData).append(subComponents, rhs.subComponents).isEquals(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy