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

com.dell.cpsd.hdp.capability.registry.api.ProviderEndpoint 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({
    "protocol",
    "type",
    "encryption",
    "endpointProperties"
})
public class ProviderEndpoint {

    @JsonProperty("protocol")
    private String protocol;
    @JsonProperty("type")
    private String type;
    /**
     * 
     */
    @JsonProperty("encryption")
    private Encryption encryption;
    @JsonProperty("endpointProperties")
    private List endpointProperties = new ArrayList();

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

    /**
     * 
     * @param protocol
     * @param encryption
     * @param endpointProperties
     * @param type
     */
    public ProviderEndpoint(String protocol, String type, Encryption encryption, List endpointProperties) {
        super();
        this.protocol = protocol;
        this.type = type;
        this.encryption = encryption;
        this.endpointProperties = endpointProperties;
    }

    /**
     * 
     * @return
     *     The protocol
     */
    @JsonProperty("protocol")
    public String getProtocol() {
        return protocol;
    }

    /**
     * 
     * @param protocol
     *     The protocol
     */
    @JsonProperty("protocol")
    public void setProtocol(String protocol) {
        this.protocol = protocol;
    }

    /**
     * 
     * @return
     *     The type
     */
    @JsonProperty("type")
    public String getType() {
        return type;
    }

    /**
     * 
     * @param type
     *     The type
     */
    @JsonProperty("type")
    public void setType(String type) {
        this.type = type;
    }

    /**
     * 
     * @return
     *     The encryption
     */
    @JsonProperty("encryption")
    public Encryption getEncryption() {
        return encryption;
    }

    /**
     * 
     * @param encryption
     *     The encryption
     */
    @JsonProperty("encryption")
    public void setEncryption(Encryption encryption) {
        this.encryption = encryption;
    }

    /**
     * 
     * @return
     *     The endpointProperties
     */
    @JsonProperty("endpointProperties")
    public List getEndpointProperties() {
        return endpointProperties;
    }

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

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

    @Override
    public int hashCode() {
        return new HashCodeBuilder().append(protocol).append(type).append(encryption).append(endpointProperties).toHashCode();
    }

    @Override
    public boolean equals(Object other) {
        if (other == this) {
            return true;
        }
        if ((other instanceof ProviderEndpoint) == false) {
            return false;
        }
        ProviderEndpoint rhs = ((ProviderEndpoint) other);
        return new EqualsBuilder().append(protocol, rhs.protocol).append(type, rhs.type).append(encryption, rhs.encryption).append(endpointProperties, rhs.endpointProperties).isEquals();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy