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

com.pulumi.azurenative.devices.inputs.EnrichmentPropertiesArgs Maven / Gradle / Ivy

// *** 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.azurenative.devices.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;


/**
 * The properties of an enrichment that your IoT hub applies to messages delivered to endpoints.
 * 
 */
public final class EnrichmentPropertiesArgs extends com.pulumi.resources.ResourceArgs {

    public static final EnrichmentPropertiesArgs Empty = new EnrichmentPropertiesArgs();

    /**
     * The list of endpoints for which the enrichment is applied to the message.
     * 
     */
    @Import(name="endpointNames", required=true)
    private Output> endpointNames;

    /**
     * @return The list of endpoints for which the enrichment is applied to the message.
     * 
     */
    public Output> endpointNames() {
        return this.endpointNames;
    }

    /**
     * The key or name for the enrichment property.
     * 
     */
    @Import(name="key", required=true)
    private Output key;

    /**
     * @return The key or name for the enrichment property.
     * 
     */
    public Output key() {
        return this.key;
    }

    /**
     * The value for the enrichment property.
     * 
     */
    @Import(name="value", required=true)
    private Output value;

    /**
     * @return The value for the enrichment property.
     * 
     */
    public Output value() {
        return this.value;
    }

    private EnrichmentPropertiesArgs() {}

    private EnrichmentPropertiesArgs(EnrichmentPropertiesArgs $) {
        this.endpointNames = $.endpointNames;
        this.key = $.key;
        this.value = $.value;
    }

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

    public static final class Builder {
        private EnrichmentPropertiesArgs $;

        public Builder() {
            $ = new EnrichmentPropertiesArgs();
        }

        public Builder(EnrichmentPropertiesArgs defaults) {
            $ = new EnrichmentPropertiesArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param endpointNames The list of endpoints for which the enrichment is applied to the message.
         * 
         * @return builder
         * 
         */
        public Builder endpointNames(Output> endpointNames) {
            $.endpointNames = endpointNames;
            return this;
        }

        /**
         * @param endpointNames The list of endpoints for which the enrichment is applied to the message.
         * 
         * @return builder
         * 
         */
        public Builder endpointNames(List endpointNames) {
            return endpointNames(Output.of(endpointNames));
        }

        /**
         * @param endpointNames The list of endpoints for which the enrichment is applied to the message.
         * 
         * @return builder
         * 
         */
        public Builder endpointNames(String... endpointNames) {
            return endpointNames(List.of(endpointNames));
        }

        /**
         * @param key The key or name for the enrichment property.
         * 
         * @return builder
         * 
         */
        public Builder key(Output key) {
            $.key = key;
            return this;
        }

        /**
         * @param key The key or name for the enrichment property.
         * 
         * @return builder
         * 
         */
        public Builder key(String key) {
            return key(Output.of(key));
        }

        /**
         * @param value The value for the enrichment property.
         * 
         * @return builder
         * 
         */
        public Builder value(Output value) {
            $.value = value;
            return this;
        }

        /**
         * @param value The value for the enrichment property.
         * 
         * @return builder
         * 
         */
        public Builder value(String value) {
            return value(Output.of(value));
        }

        public EnrichmentPropertiesArgs build() {
            if ($.endpointNames == null) {
                throw new MissingRequiredPropertyException("EnrichmentPropertiesArgs", "endpointNames");
            }
            if ($.key == null) {
                throw new MissingRequiredPropertyException("EnrichmentPropertiesArgs", "key");
            }
            if ($.value == null) {
                throw new MissingRequiredPropertyException("EnrichmentPropertiesArgs", "value");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy