com.dell.cpsd.hal.data.provider.api.RequestElementEndpointValidation 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.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;
/**
* RequestElementEndpointValidation
*
*
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@Message(value = "com.dell.cpsd.hal.data.provider.request.provider.endpoint.validation.work", version = "1.0")
@JsonPropertyOrder({
"timestamp",
"requestId",
"elementIdentity",
"elementEndpoints"
})
public class RequestElementEndpointValidation {
@JsonProperty("timestamp")
private Date timestamp;
@JsonProperty("requestId")
private String requestId;
/**
* ElementIdentity
*
*
*
*/
@JsonProperty("elementIdentity")
private ElementIdentity elementIdentity;
@JsonProperty("elementEndpoints")
private List elementEndpoints = new ArrayList();
/**
* No args constructor for use in serialization
*
*/
public RequestElementEndpointValidation() {
}
/**
*
* @param requestId
* @param elementEndpoints
* @param timestamp
* @param elementIdentity
*/
public RequestElementEndpointValidation(Date timestamp, String requestId, ElementIdentity elementIdentity, List elementEndpoints) {
super();
this.timestamp = timestamp;
this.requestId = requestId;
this.elementIdentity = elementIdentity;
this.elementEndpoints = elementEndpoints;
}
/**
*
* @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;
}
/**
* 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 elementEndpoints
*/
@JsonProperty("elementEndpoints")
public List getElementEndpoints() {
return elementEndpoints;
}
/**
*
* @param elementEndpoints
* The elementEndpoints
*/
@JsonProperty("elementEndpoints")
public void setElementEndpoints(List elementEndpoints) {
this.elementEndpoints = elementEndpoints;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(timestamp).append(requestId).append(elementIdentity).append(elementEndpoints).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof RequestElementEndpointValidation) == false) {
return false;
}
RequestElementEndpointValidation rhs = ((RequestElementEndpointValidation) other);
return new EqualsBuilder().append(timestamp, rhs.timestamp).append(requestId, rhs.requestId).append(elementIdentity, rhs.elementIdentity).append(elementEndpoints, rhs.elementEndpoints).isEquals();
}
}