com.dell.cpsd.hdp.capability.registry.api.Capability Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hdp-capability-registry-client Show documentation
Show all versions of hdp-capability-registry-client Show documentation
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.
package com.dell.cpsd.hdp.capability.registry.api;
import java.util.ArrayList;
import java.util.List;
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;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"profile",
"elements",
"providerEndpoint"
})
public class Capability {
/**
*
* (Required)
*
*/
@JsonProperty("profile")
private String profile;
@JsonProperty("elements")
private List elements = new ArrayList();
/**
*
*/
@JsonProperty("providerEndpoint")
private ProviderEndpoint providerEndpoint;
/**
* No args constructor for use in serialization
*
*/
public Capability() {
}
/**
*
* @param profile
* @param elements
* @param providerEndpoint
*/
public Capability(String profile, List elements, ProviderEndpoint providerEndpoint) {
super();
this.profile = profile;
this.elements = elements;
this.providerEndpoint = providerEndpoint;
}
/**
*
* (Required)
*
* @return
* The profile
*/
@JsonProperty("profile")
public String getProfile() {
return profile;
}
/**
*
* (Required)
*
* @param profile
* The profile
*/
@JsonProperty("profile")
public void setProfile(String profile) {
this.profile = profile;
}
/**
*
* @return
* The elements
*/
@JsonProperty("elements")
public List getElements() {
return elements;
}
/**
*
* @param elements
* The elements
*/
@JsonProperty("elements")
public void setElements(List elements) {
this.elements = elements;
}
/**
*
* @return
* The providerEndpoint
*/
@JsonProperty("providerEndpoint")
public ProviderEndpoint getProviderEndpoint() {
return providerEndpoint;
}
/**
*
* @param providerEndpoint
* The providerEndpoint
*/
@JsonProperty("providerEndpoint")
public void setProviderEndpoint(ProviderEndpoint providerEndpoint) {
this.providerEndpoint = providerEndpoint;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(profile).append(elements).append(providerEndpoint).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof Capability) == false) {
return false;
}
Capability rhs = ((Capability) other);
return new EqualsBuilder().append(profile, rhs.profile).append(elements, rhs.elements).append(providerEndpoint, rhs.providerEndpoint).isEquals();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy