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

com.pulumi.azurenative.streamanalytics.inputs.AzureFunctionOutputDataSourceArgs Maven / Gradle / Ivy

There is a newer version: 2.72.0
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.azurenative.streamanalytics.inputs;

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


/**
 * Defines the metadata of AzureFunctionOutputDataSource
 * 
 */
public final class AzureFunctionOutputDataSourceArgs extends com.pulumi.resources.ResourceArgs {

    public static final AzureFunctionOutputDataSourceArgs Empty = new AzureFunctionOutputDataSourceArgs();

    /**
     * If you want to use an Azure Function from another subscription, you can do so by providing the key to access your function.
     * 
     */
    @Import(name="apiKey")
    private @Nullable Output apiKey;

    /**
     * @return If you want to use an Azure Function from another subscription, you can do so by providing the key to access your function.
     * 
     */
    public Optional> apiKey() {
        return Optional.ofNullable(this.apiKey);
    }

    /**
     * The name of your Azure Functions app.
     * 
     */
    @Import(name="functionAppName")
    private @Nullable Output functionAppName;

    /**
     * @return The name of your Azure Functions app.
     * 
     */
    public Optional> functionAppName() {
        return Optional.ofNullable(this.functionAppName);
    }

    /**
     * The name of the function in your Azure Functions app.
     * 
     */
    @Import(name="functionName")
    private @Nullable Output functionName;

    /**
     * @return The name of the function in your Azure Functions app.
     * 
     */
    public Optional> functionName() {
        return Optional.ofNullable(this.functionName);
    }

    /**
     * A property that lets you specify the maximum number of events in each batch that's sent to Azure Functions. The default value is 100.
     * 
     */
    @Import(name="maxBatchCount")
    private @Nullable Output maxBatchCount;

    /**
     * @return A property that lets you specify the maximum number of events in each batch that's sent to Azure Functions. The default value is 100.
     * 
     */
    public Optional> maxBatchCount() {
        return Optional.ofNullable(this.maxBatchCount);
    }

    /**
     * A property that lets you set the maximum size for each output batch that's sent to your Azure function. The input unit is in bytes. By default, this value is 262,144 bytes (256 KB).
     * 
     */
    @Import(name="maxBatchSize")
    private @Nullable Output maxBatchSize;

    /**
     * @return A property that lets you set the maximum size for each output batch that's sent to your Azure function. The input unit is in bytes. By default, this value is 262,144 bytes (256 KB).
     * 
     */
    public Optional> maxBatchSize() {
        return Optional.ofNullable(this.maxBatchSize);
    }

    /**
     * Indicates the type of data source output will be written to. Required on PUT (CreateOrReplace) requests.
     * Expected value is 'Microsoft.AzureFunction'.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return Indicates the type of data source output will be written to. Required on PUT (CreateOrReplace) requests.
     * Expected value is 'Microsoft.AzureFunction'.
     * 
     */
    public Output type() {
        return this.type;
    }

    private AzureFunctionOutputDataSourceArgs() {}

    private AzureFunctionOutputDataSourceArgs(AzureFunctionOutputDataSourceArgs $) {
        this.apiKey = $.apiKey;
        this.functionAppName = $.functionAppName;
        this.functionName = $.functionName;
        this.maxBatchCount = $.maxBatchCount;
        this.maxBatchSize = $.maxBatchSize;
        this.type = $.type;
    }

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

    public static final class Builder {
        private AzureFunctionOutputDataSourceArgs $;

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

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

        /**
         * @param apiKey If you want to use an Azure Function from another subscription, you can do so by providing the key to access your function.
         * 
         * @return builder
         * 
         */
        public Builder apiKey(@Nullable Output apiKey) {
            $.apiKey = apiKey;
            return this;
        }

        /**
         * @param apiKey If you want to use an Azure Function from another subscription, you can do so by providing the key to access your function.
         * 
         * @return builder
         * 
         */
        public Builder apiKey(String apiKey) {
            return apiKey(Output.of(apiKey));
        }

        /**
         * @param functionAppName The name of your Azure Functions app.
         * 
         * @return builder
         * 
         */
        public Builder functionAppName(@Nullable Output functionAppName) {
            $.functionAppName = functionAppName;
            return this;
        }

        /**
         * @param functionAppName The name of your Azure Functions app.
         * 
         * @return builder
         * 
         */
        public Builder functionAppName(String functionAppName) {
            return functionAppName(Output.of(functionAppName));
        }

        /**
         * @param functionName The name of the function in your Azure Functions app.
         * 
         * @return builder
         * 
         */
        public Builder functionName(@Nullable Output functionName) {
            $.functionName = functionName;
            return this;
        }

        /**
         * @param functionName The name of the function in your Azure Functions app.
         * 
         * @return builder
         * 
         */
        public Builder functionName(String functionName) {
            return functionName(Output.of(functionName));
        }

        /**
         * @param maxBatchCount A property that lets you specify the maximum number of events in each batch that's sent to Azure Functions. The default value is 100.
         * 
         * @return builder
         * 
         */
        public Builder maxBatchCount(@Nullable Output maxBatchCount) {
            $.maxBatchCount = maxBatchCount;
            return this;
        }

        /**
         * @param maxBatchCount A property that lets you specify the maximum number of events in each batch that's sent to Azure Functions. The default value is 100.
         * 
         * @return builder
         * 
         */
        public Builder maxBatchCount(Double maxBatchCount) {
            return maxBatchCount(Output.of(maxBatchCount));
        }

        /**
         * @param maxBatchSize A property that lets you set the maximum size for each output batch that's sent to your Azure function. The input unit is in bytes. By default, this value is 262,144 bytes (256 KB).
         * 
         * @return builder
         * 
         */
        public Builder maxBatchSize(@Nullable Output maxBatchSize) {
            $.maxBatchSize = maxBatchSize;
            return this;
        }

        /**
         * @param maxBatchSize A property that lets you set the maximum size for each output batch that's sent to your Azure function. The input unit is in bytes. By default, this value is 262,144 bytes (256 KB).
         * 
         * @return builder
         * 
         */
        public Builder maxBatchSize(Double maxBatchSize) {
            return maxBatchSize(Output.of(maxBatchSize));
        }

        /**
         * @param type Indicates the type of data source output will be written to. Required on PUT (CreateOrReplace) requests.
         * Expected value is 'Microsoft.AzureFunction'.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Indicates the type of data source output will be written to. Required on PUT (CreateOrReplace) requests.
         * Expected value is 'Microsoft.AzureFunction'.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public AzureFunctionOutputDataSourceArgs build() {
            $.type = Codegen.stringProp("type").output().arg($.type).require();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy