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

com.dell.cpsd.hdp.capability.registry.api.Element 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.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({
    "elementType",
    "definition",
    "elementEndpoints"
})
public class Element {

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("elementType")
    private String elementType;
    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("definition")
    private Definition definition;
    @JsonProperty("elementEndpoints")
    private List elementEndpoints = new ArrayList();

    /**
     * No args constructor for use in serialization
     * 
     */
    public Element() {
    }

    /**
     * 
     * @param definition
     * @param elementEndpoints
     * @param elementType
     */
    public Element(String elementType, Definition definition, List elementEndpoints) {
        super();
        this.elementType = elementType;
        this.definition = definition;
        this.elementEndpoints = elementEndpoints;
    }

    /**
     * 
     * (Required)
     * 
     * @return
     *     The elementType
     */
    @JsonProperty("elementType")
    public String getElementType() {
        return elementType;
    }

    /**
     * 
     * (Required)
     * 
     * @param elementType
     *     The elementType
     */
    @JsonProperty("elementType")
    public void setElementType(String elementType) {
        this.elementType = elementType;
    }

    /**
     * 
     * (Required)
     * 
     * @return
     *     The definition
     */
    @JsonProperty("definition")
    public Definition getDefinition() {
        return definition;
    }

    /**
     * 
     * (Required)
     * 
     * @param definition
     *     The definition
     */
    @JsonProperty("definition")
    public void setDefinition(Definition definition) {
        this.definition = definition;
    }

    /**
     * 
     * @return
     *     The elementEndpoints
     */
    @JsonProperty("elementEndpoints")
    public List getElementEndpoints() {
        return elementEndpoints;
    }

    /**
     * 
     * @param elementEndpoints
     *     The elementEndpoints
     */
    @JsonProperty("elementEndpoints")
    public void setElementEndpoints(List elementEndpoints) {
        this.elementEndpoints = elementEndpoints;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }

    @Override
    public int hashCode() {
        return new HashCodeBuilder().append(elementType).append(definition).append(elementEndpoints).toHashCode();
    }

    @Override
    public boolean equals(Object other) {
        if (other == this) {
            return true;
        }
        if ((other instanceof Element) == false) {
            return false;
        }
        Element rhs = ((Element) other);
        return new EqualsBuilder().append(elementType, rhs.elementType).append(definition, rhs.definition).append(elementEndpoints, rhs.elementEndpoints).isEquals();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy