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

com.dell.cpsd.OrderAckMessage Maven / Gradle / Ivy

The newest version!

package com.dell.cpsd;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import com.dell.cpsd.common.rabbitmq.annotation.Message;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
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;


/**
 * This message comes from the adapter and gets sent to fru-paqx
 * 
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@Message(value = "com.dell.cpsd.coprhd.order.ack", version = "1.0")
@JsonPropertyOrder({
    "messageProperties",
    "orderId",
    "ipAddress"
})
public class OrderAckMessage implements Serializable
{

    /**
     * AMQP properties properties
     * 

* * Corresponds to the "messageProperties" property.AMQP properties. * */ @JsonProperty("messageProperties") @JsonPropertyDescription("AMQP properties.") private MessageProperties messageProperties; @JsonProperty("orderId") private String orderId; @JsonProperty("ipAddress") private String ipAddress; @JsonIgnore private Map additionalProperties = new HashMap(); private final static long serialVersionUID = 1697445610178499271L; /** * No args constructor for use in serialization * */ public OrderAckMessage() { } /** * * @param messageProperties * @param orderId * @param ipAddress */ public OrderAckMessage(MessageProperties messageProperties, String orderId, String ipAddress) { super(); this.messageProperties = messageProperties; this.orderId = orderId; this.ipAddress = ipAddress; } /** * AMQP properties properties *

* * Corresponds to the "messageProperties" property.AMQP properties. * */ @JsonProperty("messageProperties") public MessageProperties getMessageProperties() { return messageProperties; } /** * AMQP properties properties *

* * Corresponds to the "messageProperties" property.AMQP properties. * */ @JsonProperty("messageProperties") public void setMessageProperties(MessageProperties messageProperties) { this.messageProperties = messageProperties; } @JsonProperty("orderId") public String getOrderId() { return orderId; } @JsonProperty("orderId") public void setOrderId(String orderId) { this.orderId = orderId; } @JsonProperty("ipAddress") public String getIpAddress() { return ipAddress; } @JsonProperty("ipAddress") public void setIpAddress(String ipAddress) { this.ipAddress = ipAddress; } @Override public String toString() { return ToStringBuilder.reflectionToString(this); } @JsonAnyGetter public Map getAdditionalProperties() { return this.additionalProperties; } @JsonAnySetter public void setAdditionalProperty(String name, Object value) { this.additionalProperties.put(name, value); } @Override public int hashCode() { return new HashCodeBuilder().append(messageProperties).append(orderId).append(ipAddress).append(additionalProperties).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof OrderAckMessage) == false) { return false; } OrderAckMessage rhs = ((OrderAckMessage) other); return new EqualsBuilder().append(messageProperties, rhs.messageProperties).append(orderId, rhs.orderId).append(ipAddress, rhs.ipAddress).append(additionalProperties, rhs.additionalProperties).isEquals(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy