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

com.pulumi.azure.streamanalytics.FunctionJavaScriptUDFArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
Show newest version
// *** 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.streamanalytics;

import com.pulumi.azure.streamanalytics.inputs.FunctionJavaScriptUDFInputArgs;
import com.pulumi.azure.streamanalytics.inputs.FunctionJavaScriptUDFOutputArgs;
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;
import java.util.Optional;
import javax.annotation.Nullable;


public final class FunctionJavaScriptUDFArgs extends com.pulumi.resources.ResourceArgs {

    public static final FunctionJavaScriptUDFArgs Empty = new FunctionJavaScriptUDFArgs();

    /**
     * One or more `input` blocks as defined below.
     * 
     */
    @Import(name="inputs", required=true)
    private Output> inputs;

    /**
     * @return One or more `input` blocks as defined below.
     * 
     */
    public Output> inputs() {
        return this.inputs;
    }

    /**
     * The name of the JavaScript UDF Function. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the JavaScript UDF Function. Changing this forces a new resource to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * An `output` blocks as defined below.
     * 
     */
    @Import(name="output", required=true)
    private Output output;

    /**
     * @return An `output` blocks as defined below.
     * 
     */
    public Output output() {
        return this.output;
    }

    /**
     * The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The JavaScript of this UDF Function.
     * 
     */
    @Import(name="script", required=true)
    private Output script;

    /**
     * @return The JavaScript of this UDF Function.
     * 
     */
    public Output script() {
        return this.script;
    }

    /**
     * The name of the Stream Analytics Job where this Function should be created. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="streamAnalyticsJobName", required=true)
    private Output streamAnalyticsJobName;

    /**
     * @return The name of the Stream Analytics Job where this Function should be created. Changing this forces a new resource to be created.
     * 
     */
    public Output streamAnalyticsJobName() {
        return this.streamAnalyticsJobName;
    }

    private FunctionJavaScriptUDFArgs() {}

    private FunctionJavaScriptUDFArgs(FunctionJavaScriptUDFArgs $) {
        this.inputs = $.inputs;
        this.name = $.name;
        this.output = $.output;
        this.resourceGroupName = $.resourceGroupName;
        this.script = $.script;
        this.streamAnalyticsJobName = $.streamAnalyticsJobName;
    }

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

    public static final class Builder {
        private FunctionJavaScriptUDFArgs $;

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

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

        /**
         * @param inputs One or more `input` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder inputs(Output> inputs) {
            $.inputs = inputs;
            return this;
        }

        /**
         * @param inputs One or more `input` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder inputs(List inputs) {
            return inputs(Output.of(inputs));
        }

        /**
         * @param inputs One or more `input` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder inputs(FunctionJavaScriptUDFInputArgs... inputs) {
            return inputs(List.of(inputs));
        }

        /**
         * @param name The name of the JavaScript UDF Function. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the JavaScript UDF Function. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param output An `output` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder output(Output output) {
            $.output = output;
            return this;
        }

        /**
         * @param output An `output` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder output(FunctionJavaScriptUDFOutputArgs output) {
            return output(Output.of(output));
        }

        /**
         * @param resourceGroupName The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param script The JavaScript of this UDF Function.
         * 
         * @return builder
         * 
         */
        public Builder script(Output script) {
            $.script = script;
            return this;
        }

        /**
         * @param script The JavaScript of this UDF Function.
         * 
         * @return builder
         * 
         */
        public Builder script(String script) {
            return script(Output.of(script));
        }

        /**
         * @param streamAnalyticsJobName The name of the Stream Analytics Job where this Function should be created. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder streamAnalyticsJobName(Output streamAnalyticsJobName) {
            $.streamAnalyticsJobName = streamAnalyticsJobName;
            return this;
        }

        /**
         * @param streamAnalyticsJobName The name of the Stream Analytics Job where this Function should be created. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder streamAnalyticsJobName(String streamAnalyticsJobName) {
            return streamAnalyticsJobName(Output.of(streamAnalyticsJobName));
        }

        public FunctionJavaScriptUDFArgs build() {
            if ($.inputs == null) {
                throw new MissingRequiredPropertyException("FunctionJavaScriptUDFArgs", "inputs");
            }
            if ($.output == null) {
                throw new MissingRequiredPropertyException("FunctionJavaScriptUDFArgs", "output");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("FunctionJavaScriptUDFArgs", "resourceGroupName");
            }
            if ($.script == null) {
                throw new MissingRequiredPropertyException("FunctionJavaScriptUDFArgs", "script");
            }
            if ($.streamAnalyticsJobName == null) {
                throw new MissingRequiredPropertyException("FunctionJavaScriptUDFArgs", "streamAnalyticsJobName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy