![JAR search and dependency download from the Maven repository](/logo.png)
com.dell.cpsd.hdp.capability.registry.api.ElementEndpoint Maven / Gradle / Ivy
package com.dell.cpsd.hdp.capability.registry.api;
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"
})
public class ElementEndpoint {
@JsonProperty("protocol")
private String protocol;
@JsonProperty("type")
private String type;
/**
* No args constructor for use in serialization
*
*/
public ElementEndpoint() {
}
/**
*
* @param protocol
* @param type
*/
public ElementEndpoint(String protocol, String type) {
super();
this.protocol = protocol;
this.type = type;
}
/**
*
* @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;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(protocol).append(type).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof ElementEndpoint) == false) {
return false;
}
ElementEndpoint rhs = ((ElementEndpoint) other);
return new EqualsBuilder().append(protocol, rhs.protocol).append(type, rhs.type).isEquals();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy