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

com.dell.cpsd.identity.service.api.ElementsIdentified Maven / Gradle / Ivy

The newest version!

package com.dell.cpsd.identity.service.api;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import com.dell.cpsd.common.rabbitmq.annotation.Message;
import com.dell.cpsd.common.rabbitmq.annotation.stereotypes.MessageReply;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

@JsonInclude(JsonInclude.Include.NON_NULL)
@Message(value = "dell.cpsd.core.identity.element.identified", version = "1.0")
@MessageReply
@JsonPropertyOrder({
    "timestamp",
    "correlationId",
    "elementIdentifications"
})
public class ElementsIdentified {

    /**
     * Message timestamp
     * 

* The creation time of the message. * (Required) * */ @JsonProperty("timestamp") @JsonPropertyDescription("") private Date timestamp; /** * Correlation identifier *

* The correlation identifier of the message. * (Required) * */ @JsonProperty("correlationId") @JsonPropertyDescription("") private String correlationId; @JsonProperty("elementIdentifications") private List elementIdentifications = new ArrayList(); /** * No args constructor for use in serialization * */ public ElementsIdentified() { } /** * * @param elementIdentifications * @param correlationId * @param timestamp */ public ElementsIdentified(Date timestamp, String correlationId, List elementIdentifications) { super(); this.timestamp = timestamp; this.correlationId = correlationId; this.elementIdentifications = elementIdentifications; } /** * Message timestamp *

* The creation time of the message. * (Required) * * @return * The timestamp */ @JsonProperty("timestamp") public Date getTimestamp() { return timestamp; } /** * Message timestamp *

* The creation time of the message. * (Required) * * @param timestamp * The timestamp */ @JsonProperty("timestamp") public void setTimestamp(Date timestamp) { this.timestamp = timestamp; } /** * Correlation identifier *

* The correlation identifier of the message. * (Required) * * @return * The correlationId */ @JsonProperty("correlationId") public String getCorrelationId() { return correlationId; } /** * Correlation identifier *

* The correlation identifier of the message. * (Required) * * @param correlationId * The correlationId */ @JsonProperty("correlationId") public void setCorrelationId(String correlationId) { this.correlationId = correlationId; } /** * * @return * The elementIdentifications */ @JsonProperty("elementIdentifications") public List getElementIdentifications() { return elementIdentifications; } /** * * @param elementIdentifications * The elementIdentifications */ @JsonProperty("elementIdentifications") public void setElementIdentifications(List elementIdentifications) { this.elementIdentifications = elementIdentifications; } @Override public String toString() { return ToStringBuilder.reflectionToString(this); } @Override public int hashCode() { return new HashCodeBuilder().append(timestamp).append(correlationId).append(elementIdentifications).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof ElementsIdentified) == false) { return false; } ElementsIdentified rhs = ((ElementsIdentified) other); return new EqualsBuilder().append(timestamp, rhs.timestamp).append(correlationId, rhs.correlationId).append(elementIdentifications, rhs.elementIdentifications).isEquals(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy