com.dell.cpsd.hal.data.provider.api.RequestDeviceDataDiscovery 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;
/**
* RequestDeviceDataDiscovery
*
*
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@Message(value = "com.dell.cpsd.hal.data.provider.request.device.data.discovery.work", version = "1.0")
@JsonPropertyOrder({
"timestamp",
"requestId",
"deviceDiscoveryCriteria"
})
public class RequestDeviceDataDiscovery {
@JsonProperty("timestamp")
private Date timestamp;
@JsonProperty("requestId")
private String requestId;
/**
* DeviceDiscoveryCriteria
*
*
*
*/
@JsonProperty("deviceDiscoveryCriteria")
private DeviceDiscoveryCriteria deviceDiscoveryCriteria;
/**
* No args constructor for use in serialization
*
*/
public RequestDeviceDataDiscovery() {
}
/**
*
* @param deviceDiscoveryCriteria
* @param requestId
* @param timestamp
*/
public RequestDeviceDataDiscovery(Date timestamp, String requestId, DeviceDiscoveryCriteria deviceDiscoveryCriteria) {
super();
this.timestamp = timestamp;
this.requestId = requestId;
this.deviceDiscoveryCriteria = deviceDiscoveryCriteria;
}
/**
*
* @return
* The timestamp
*/
@JsonProperty("timestamp")
public Date getTimestamp() {
return timestamp;
}
/**
*
* @param timestamp
* The timestamp
*/
@JsonProperty("timestamp")
public void setTimestamp(Date timestamp) {
this.timestamp = timestamp;
}
/**
*
* @return
* The requestId
*/
@JsonProperty("requestId")
public String getRequestId() {
return requestId;
}
/**
*
* @param requestId
* The requestId
*/
@JsonProperty("requestId")
public void setRequestId(String requestId) {
this.requestId = requestId;
}
/**
* DeviceDiscoveryCriteria
*
*
*
* @return
* The deviceDiscoveryCriteria
*/
@JsonProperty("deviceDiscoveryCriteria")
public DeviceDiscoveryCriteria getDeviceDiscoveryCriteria() {
return deviceDiscoveryCriteria;
}
/**
* DeviceDiscoveryCriteria
*
*
*
* @param deviceDiscoveryCriteria
* The deviceDiscoveryCriteria
*/
@JsonProperty("deviceDiscoveryCriteria")
public void setDeviceDiscoveryCriteria(DeviceDiscoveryCriteria deviceDiscoveryCriteria) {
this.deviceDiscoveryCriteria = deviceDiscoveryCriteria;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(timestamp).append(requestId).append(deviceDiscoveryCriteria).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof RequestDeviceDataDiscovery) == false) {
return false;
}
RequestDeviceDataDiscovery rhs = ((RequestDeviceDataDiscovery) other);
return new EqualsBuilder().append(timestamp, rhs.timestamp).append(requestId, rhs.requestId).append(deviceDiscoveryCriteria, rhs.deviceDiscoveryCriteria).isEquals();
}
}