package io.quarkus.elasticsearch.restclient.common.deployment;

import io.quarkus.builder.item.MultiBuildItem;

public final class DevservicesElasticsearchBuildItem extends MultiBuildItem {
    private final String hostsConfigProperty;

    private final String version;
    private final Distribution distribution;

    public DevservicesElasticsearchBuildItem(String configItemName) {
        this.hostsConfigProperty = configItemName;
        this.version = null;
        this.distribution = Distribution.ELASTIC;
    }

    public DevservicesElasticsearchBuildItem(String configItemName, String version, Distribution distribution) {
        this.hostsConfigProperty = configItemName;
        this.version = version;
        this.distribution = distribution;
    }

    public String getHostsConfigProperty() {
        return hostsConfigProperty;
    }

    public String getVersion() {
        return version;
    }

    public Distribution getDistribution() {
        return distribution;
    }

    public enum Distribution {
        ELASTIC,
        OPENSEARCH
    }
}

@@ -362,30 +362,35 @@
 (String 
-configItemName
+hostsConfigProperty
 ) %7B%0A    
@@ -416,38 +416,43 @@
 gProperty = 
-configItemName
+hostsConfigProperty
 ;%0A        th

Fix misnamed parameter in DevservicesElasticsearchBuildItem