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

com.pulumi.azurenative.iotoperationsdataprocessor.inputs.DatasetPropertyKeyArgs 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.iotoperationsdataprocessor.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Key that can be used for joining on enrich.
 * 
 */
public final class DatasetPropertyKeyArgs extends com.pulumi.resources.ResourceArgs {

    public static final DatasetPropertyKeyArgs Empty = new DatasetPropertyKeyArgs();

    /**
     * Path to the input value from the message.
     * 
     */
    @Import(name="path", required=true)
    private Output path;

    /**
     * @return Path to the input value from the message.
     * 
     */
    public Output path() {
        return this.path;
    }

    /**
     * If true the property will be used as a primary key. At most one primary key can exists.
     * 
     */
    @Import(name="primaryKey")
    private @Nullable Output primaryKey;

    /**
     * @return If true the property will be used as a primary key. At most one primary key can exists.
     * 
     */
    public Optional> primaryKey() {
        return Optional.ofNullable(this.primaryKey);
    }

    private DatasetPropertyKeyArgs() {}

    private DatasetPropertyKeyArgs(DatasetPropertyKeyArgs $) {
        this.path = $.path;
        this.primaryKey = $.primaryKey;
    }

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

    public static final class Builder {
        private DatasetPropertyKeyArgs $;

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

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

        /**
         * @param path Path to the input value from the message.
         * 
         * @return builder
         * 
         */
        public Builder path(Output path) {
            $.path = path;
            return this;
        }

        /**
         * @param path Path to the input value from the message.
         * 
         * @return builder
         * 
         */
        public Builder path(String path) {
            return path(Output.of(path));
        }

        /**
         * @param primaryKey If true the property will be used as a primary key. At most one primary key can exists.
         * 
         * @return builder
         * 
         */
        public Builder primaryKey(@Nullable Output primaryKey) {
            $.primaryKey = primaryKey;
            return this;
        }

        /**
         * @param primaryKey If true the property will be used as a primary key. At most one primary key can exists.
         * 
         * @return builder
         * 
         */
        public Builder primaryKey(Boolean primaryKey) {
            return primaryKey(Output.of(primaryKey));
        }

        public DatasetPropertyKeyArgs build() {
            if ($.path == null) {
                throw new MissingRequiredPropertyException("DatasetPropertyKeyArgs", "path");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy