io.dekorate.jaeger.config.Collector Maven / Gradle / Ivy
package io.dekorate.jaeger.config;
import java.lang.Integer;
import java.lang.Object;
import java.lang.String;
import io.sundr.builder.annotations.Buildable;
/**
* Generated
*/
@Buildable(builderPackage = "io.fabric8.kubernetes.api.builder")
public class Collector{
public Collector() {
}
public Collector(String host,String name,String namespace,Integer port) {
this.host = host;
this.name = name;
this.namespace = namespace;
this.port = port;
}
private String host;
private String name;
private String namespace;
private Integer port;
/**
* The collector host
* @return The host.
*/
public String getHost() {
return this.host;
}
/**
* The collector name.
* This is used if no host has been specified.
* @return
*/
public String getName() {
return this.name;
}
/**
* The collector namespace.
* This is used if no host has been specified.
* @return
*/
public String getNamespace() {
return this.namespace;
}
/**
* The collector port.
* @return The collector port.
*/
public Integer getPort() {
return this.port;
}
public static CollectorBuilder newBuilder() {
return new CollectorBuilder();
}
public static CollectorBuilder newBuilderFromDefaults() {
return new CollectorBuilder().withName("jaeger-collector").withPort(14267);
}
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Collector that = (Collector) o;
if (host != null ? !host.equals(that.host) :that.host != null) return false;
if (name != null ? !name.equals(that.name) :that.name != null) return false;
if (namespace != null ? !namespace.equals(that.namespace) :that.namespace != null) return false;
if (port != null ? !port.equals(that.port) :that.port != null) return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(host, name, namespace, port, super.hashCode());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy