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

io.dekorate.jaeger.config.Collector Maven / Gradle / Ivy

There is a newer version: 4.1.4
Show newest version
package io.dekorate.jaeger.config;

import java.lang.Object;
import java.lang.String;
import io.sundr.builder.annotations.Buildable;

@Buildable(builderPackage = "io.dekorate.deps.kubernetes.api.builder") public class Collector {

    private String host = "";
    private String name = "jaeger-collector";
    private String namespace = "";
    private int port = 14267;

    public Collector() { 
    }


    public Collector(String host,String name,String namespace,int port) { 
        this.host = host != null ? host : "";
        this.name = name != null ? name : "jaeger-collector";
        this.namespace = namespace != null ? namespace : "";
        this.port = port;
    }


    public String getHost() {
        return this.host;
    }

    public String getName() {
        return this.name;
    }

    public String getNamespace() {
        return this.namespace;
    }

    public int getPort() {
        return this.port;
    }

    public static CollectorBuilder newBuilder() {
        return new io.dekorate.jaeger.config.CollectorBuilder();
    }

    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 != that.port) 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