// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azure.iot.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class IoTHubEnrichment {
    /**
     * @return The list of endpoints which will be enriched.
     * 
     */
    private List<String> endpointNames;
    /**
     * @return The key of the enrichment.
     * 
     */
    private String key;
    /**
     * @return The value of the enrichment. Value can be any static string, the name of the IoT Hub sending the message (use `$iothubname`) or information from the device twin (ex: `$twin.tags.latitude`)
     * 
     */
    private String value;

    private IoTHubEnrichment() {}
    /**
     * @return The list of endpoints which will be enriched.
     * 
     */
    public List<String> endpointNames() {
        return this.endpointNames;
    }
    /**
     * @return The key of the enrichment.
     * 
     */
    public String key() {
        return this.key;
    }
    /**
     * @return The value of the enrichment. Value can be any static string, the name of the IoT Hub sending the message (use `$iothubname`) or information from the device twin (ex: `$twin.tags.latitude`)
     * 
     */
    public String value() {
        return this.value;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(IoTHubEnrichment defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List<String> endpointNames;
        private String key;
        private String value;
        public Builder() {}
        public Builder(IoTHubEnrichment defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.endpointNames = defaults.endpointNames;
    	      this.key = defaults.key;
    	      this.value = defaults.value;
        }

        @CustomType.Setter
        public Builder endpointNames(List<String> endpointNames) {
            this.endpointNames = Objects.requireNonNull(endpointNames);
            return this;
        }
        public Builder endpointNames(String... endpointNames) {
            return endpointNames(List.of(endpointNames));
        }
        @CustomType.Setter
        public Builder key(String key) {
            this.key = Objects.requireNonNull(key);
            return this;
        }
        @CustomType.Setter
        public Builder value(String value) {
            this.value = Objects.requireNonNull(value);
            return this;
        }
        public IoTHubEnrichment build() {
            final var o = new IoTHubEnrichment();
            o.endpointNames = endpointNames;
            o.key = key;
            o.value = value;
            return o;
        }
    }
}
