package se.arbetsformedlingen.venice.probe;

import java.util.Objects;

public class Host {
    private String host;

    Host(String host) {
        this.host = host;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Host host1 = (Host) o;
        return Objects.equals(host, host1.host);
    }

    @Override
    public int hashCode() {
        return Objects.hash(host);
    }

    @Override
    public String toString() {
        return "Host{" +
                "host='" + host + '\'' +
                '}';
    }
}

package se.arbetsformedlingen.venice.probe;

import java.util.Objects;

public class Host {
    private String host;

    Host(String host) {
        this.host = host;
    }

    String getName() {
        return host;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Host host1 = (Host) o;
        return Objects.equals(host, host1.host);
    }

    @Override
    public int hashCode() {
        return Objects.hash(host);
    }

    @Override
    public String toString() {
        return "Host{" +
                "host='" + host + '\'' +
                '}';
    }
}

Allow user to read the name of the host
Allow user to read the name of the host
