com.dell.cpsd.hal.data.provider.api.DeviceDataDiscoveryCompleted Maven / Gradle / Ivy
package com.dell.cpsd.hal.data.provider.api;
import java.util.Date;
import com.dell.cpsd.common.rabbitmq.annotation.Message;
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;
/**
* DeviceDiscoveryWorkCompleted
*
*
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@Message(value = "com.dell.cpsd.hal.data.provider.device.data.discovery.work.completed", version = "1.0")
@JsonPropertyOrder({
"timestamp",
"requestId",
"trackingId",
"deviceData"
})
public class DeviceDataDiscoveryCompleted {
/**
*
* (Required)
*
*/
@JsonProperty("timestamp")
private Date timestamp;
/**
*
* (Required)
*
*/
@JsonProperty("requestId")
private String requestId;
/**
*
* (Required)
*
*/
@JsonProperty("trackingId")
private String trackingId;
/**
* DeviceData
*
*
*
*/
@JsonProperty("deviceData")
private DeviceData deviceData;
/**
* No args constructor for use in serialization
*
*/
public DeviceDataDiscoveryCompleted() {
}
/**
*
* @param requestId
* @param deviceData
* @param timestamp
* @param trackingId
*/
public DeviceDataDiscoveryCompleted(Date timestamp, String requestId, String trackingId, DeviceData deviceData) {
super();
this.timestamp = timestamp;
this.requestId = requestId;
this.trackingId = trackingId;
this.deviceData = deviceData;
}
/**
*
* (Required)
*
* @return
* The timestamp
*/
@JsonProperty("timestamp")
public Date getTimestamp() {
return timestamp;
}
/**
*
* (Required)
*
* @param timestamp
* The timestamp
*/
@JsonProperty("timestamp")
public void setTimestamp(Date timestamp) {
this.timestamp = timestamp;
}
/**
*
* (Required)
*
* @return
* The requestId
*/
@JsonProperty("requestId")
public String getRequestId() {
return requestId;
}
/**
*
* (Required)
*
* @param requestId
* The requestId
*/
@JsonProperty("requestId")
public void setRequestId(String requestId) {
this.requestId = requestId;
}
/**
*
* (Required)
*
* @return
* The trackingId
*/
@JsonProperty("trackingId")
public String getTrackingId() {
return trackingId;
}
/**
*
* (Required)
*
* @param trackingId
* The trackingId
*/
@JsonProperty("trackingId")
public void setTrackingId(String trackingId) {
this.trackingId = trackingId;
}
/**
* DeviceData
*
*
*
* @return
* The deviceData
*/
@JsonProperty("deviceData")
public DeviceData getDeviceData() {
return deviceData;
}
/**
* DeviceData
*
*
*
* @param deviceData
* The deviceData
*/
@JsonProperty("deviceData")
public void setDeviceData(DeviceData deviceData) {
this.deviceData = deviceData;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(timestamp).append(requestId).append(trackingId).append(deviceData).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof DeviceDataDiscoveryCompleted) == false) {
return false;
}
DeviceDataDiscoveryCompleted rhs = ((DeviceDataDiscoveryCompleted) other);
return new EqualsBuilder().append(timestamp, rhs.timestamp).append(requestId, rhs.requestId).append(trackingId, rhs.trackingId).append(deviceData, rhs.deviceData).isEquals();
}
}