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

com.dell.cpsd.hdp.capability.registry.api.LookupCapabilityRegistryMessage Maven / Gradle / Ivy

Go to download

This repository contains the source code for the capability registry API. This API exposes the interface through which a consumer or provider interacts with the capability registry.

There is a newer version: 1.1.0
Show newest version

package com.dell.cpsd.hdp.capability.registry.api;

import java.util.ArrayList;
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;


/**
 * LookupCapabilityRegistryMessage
 * 

* Message to request the lookup of registered capability providers. *

* Copyright © 2017 Dell Inc. or its subsidiaries. All Rights Reserved. * Dell EMC Confidential/Proprietary Information *

* */ @JsonInclude(JsonInclude.Include.NON_NULL) @Message(value = "com.dell.cpsd.hdp.capability.registry.lookup", version = "1.0") @JsonPropertyOrder({ "hostname", "queries" }) public class LookupCapabilityRegistryMessage { @JsonProperty("hostname") private String hostname; /** * * (Required) * */ @JsonProperty("queries") private List queries = new ArrayList(); /** * No args constructor for use in serialization * */ public LookupCapabilityRegistryMessage() { } /** * * @param hostname * @param queries */ public LookupCapabilityRegistryMessage(String hostname, List queries) { super(); this.hostname = hostname; this.queries = queries; } /** * * @return * The hostname */ @JsonProperty("hostname") public String getHostname() { return hostname; } /** * * @param hostname * The hostname */ @JsonProperty("hostname") public void setHostname(String hostname) { this.hostname = hostname; } /** * * (Required) * * @return * The queries */ @JsonProperty("queries") public List getQueries() { return queries; } /** * * (Required) * * @param queries * The queries */ @JsonProperty("queries") public void setQueries(List queries) { this.queries = queries; } @Override public String toString() { return ToStringBuilder.reflectionToString(this); } @Override public int hashCode() { return new HashCodeBuilder().append(hostname).append(queries).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof LookupCapabilityRegistryMessage) == false) { return false; } LookupCapabilityRegistryMessage rhs = ((LookupCapabilityRegistryMessage) other); return new EqualsBuilder().append(hostname, rhs.hostname).append(queries, rhs.queries).isEquals(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy