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

com.dell.cpsd.sample.service.api.SampleConfigureNodeRequestMessage Maven / Gradle / Ivy

The newest version!

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

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 sample-paqx and gets translated into Southbound version of this message
 * 
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@Message(value = "com.dell.cpsd.sample.configure.node.request", version = "1.0")
@JsonPropertyOrder({
    "messageProperties",
    "endpointURL",
    "userName",
    "password"
})
public class SampleConfigureNodeRequestMessage implements Serializable
{

    /**
     * AMQP properties properties
     * 

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

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

* * Corresponds to the "messageProperties" property.AMQP properties. * (Required) * */ @JsonProperty("messageProperties") public void setMessageProperties(MessageProperties messageProperties) { this.messageProperties = messageProperties; } /** * * (Required) * */ @JsonProperty("endpointURL") public String getEndpointURL() { return endpointURL; } /** * * (Required) * */ @JsonProperty("endpointURL") public void setEndpointURL(String endpointURL) { this.endpointURL = endpointURL; } /** * * (Required) * */ @JsonProperty("userName") public String getUserName() { return userName; } /** * * (Required) * */ @JsonProperty("userName") public void setUserName(String userName) { this.userName = userName; } /** * * (Required) * */ @JsonProperty("password") public String getPassword() { return password; } /** * * (Required) * */ @JsonProperty("password") public void setPassword(String password) { this.password = password; } @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(endpointURL).append(userName).append(password).append(additionalProperties).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof SampleConfigureNodeRequestMessage) == false) { return false; } SampleConfigureNodeRequestMessage rhs = ((SampleConfigureNodeRequestMessage) other); return new EqualsBuilder().append(messageProperties, rhs.messageProperties).append(endpointURL, rhs.endpointURL).append(userName, rhs.userName).append(password, rhs.password).append(additionalProperties, rhs.additionalProperties).isEquals(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy