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

com.pulumi.azurenative.streamanalytics.inputs.AzureSqlDatabaseOutputDataSourceArgs 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.azurenative.streamanalytics.enums.AuthenticationMode;
import com.pulumi.core.Either;
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;


/**
 * Describes an Azure SQL database output data source.
 * 
 */
public final class AzureSqlDatabaseOutputDataSourceArgs extends com.pulumi.resources.ResourceArgs {

    public static final AzureSqlDatabaseOutputDataSourceArgs Empty = new AzureSqlDatabaseOutputDataSourceArgs();

    /**
     * Authentication Mode.
     * 
     */
    @Import(name="authenticationMode")
    private @Nullable Output> authenticationMode;

    /**
     * @return Authentication Mode.
     * 
     */
    public Optional>> authenticationMode() {
        return Optional.ofNullable(this.authenticationMode);
    }

    /**
     * The name of the Azure SQL database. Required on PUT (CreateOrReplace) requests.
     * 
     */
    @Import(name="database")
    private @Nullable Output database;

    /**
     * @return The name of the Azure SQL database. Required on PUT (CreateOrReplace) requests.
     * 
     */
    public Optional> database() {
        return Optional.ofNullable(this.database);
    }

    /**
     * Max Batch count for write to Sql database, the default value is 10,000. Optional on PUT requests.
     * 
     */
    @Import(name="maxBatchCount")
    private @Nullable Output maxBatchCount;

    /**
     * @return Max Batch count for write to Sql database, the default value is 10,000. Optional on PUT requests.
     * 
     */
    public Optional> maxBatchCount() {
        return Optional.ofNullable(this.maxBatchCount);
    }

    /**
     * Max Writer count, currently only 1(single writer) and 0(based on query partition) are available. Optional on PUT requests.
     * 
     */
    @Import(name="maxWriterCount")
    private @Nullable Output maxWriterCount;

    /**
     * @return Max Writer count, currently only 1(single writer) and 0(based on query partition) are available. Optional on PUT requests.
     * 
     */
    public Optional> maxWriterCount() {
        return Optional.ofNullable(this.maxWriterCount);
    }

    /**
     * The password that will be used to connect to the Azure SQL database. Required on PUT (CreateOrReplace) requests.
     * 
     */
    @Import(name="password")
    private @Nullable Output password;

    /**
     * @return The password that will be used to connect to the Azure SQL database. Required on PUT (CreateOrReplace) requests.
     * 
     */
    public Optional> password() {
        return Optional.ofNullable(this.password);
    }

    /**
     * The name of the SQL server containing the Azure SQL database. Required on PUT (CreateOrReplace) requests.
     * 
     */
    @Import(name="server")
    private @Nullable Output server;

    /**
     * @return The name of the SQL server containing the Azure SQL database. Required on PUT (CreateOrReplace) requests.
     * 
     */
    public Optional> server() {
        return Optional.ofNullable(this.server);
    }

    /**
     * The name of the table in the Azure SQL database. Required on PUT (CreateOrReplace) requests.
     * 
     */
    @Import(name="table")
    private @Nullable Output table;

    /**
     * @return The name of the table in the Azure SQL database. Required on PUT (CreateOrReplace) requests.
     * 
     */
    public Optional> table() {
        return Optional.ofNullable(this.table);
    }

    /**
     * Indicates the type of data source output will be written to. Required on PUT (CreateOrReplace) requests.
     * Expected value is 'Microsoft.Sql/Server/Database'.
     * 
     */
    @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.Sql/Server/Database'.
     * 
     */
    public Output type() {
        return this.type;
    }

    /**
     * The user name that will be used to connect to the Azure SQL database. Required on PUT (CreateOrReplace) requests.
     * 
     */
    @Import(name="user")
    private @Nullable Output user;

    /**
     * @return The user name that will be used to connect to the Azure SQL database. Required on PUT (CreateOrReplace) requests.
     * 
     */
    public Optional> user() {
        return Optional.ofNullable(this.user);
    }

    private AzureSqlDatabaseOutputDataSourceArgs() {}

    private AzureSqlDatabaseOutputDataSourceArgs(AzureSqlDatabaseOutputDataSourceArgs $) {
        this.authenticationMode = $.authenticationMode;
        this.database = $.database;
        this.maxBatchCount = $.maxBatchCount;
        this.maxWriterCount = $.maxWriterCount;
        this.password = $.password;
        this.server = $.server;
        this.table = $.table;
        this.type = $.type;
        this.user = $.user;
    }

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

    public static final class Builder {
        private AzureSqlDatabaseOutputDataSourceArgs $;

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

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

        /**
         * @param authenticationMode Authentication Mode.
         * 
         * @return builder
         * 
         */
        public Builder authenticationMode(@Nullable Output> authenticationMode) {
            $.authenticationMode = authenticationMode;
            return this;
        }

        /**
         * @param authenticationMode Authentication Mode.
         * 
         * @return builder
         * 
         */
        public Builder authenticationMode(Either authenticationMode) {
            return authenticationMode(Output.of(authenticationMode));
        }

        /**
         * @param authenticationMode Authentication Mode.
         * 
         * @return builder
         * 
         */
        public Builder authenticationMode(String authenticationMode) {
            return authenticationMode(Either.ofLeft(authenticationMode));
        }

        /**
         * @param authenticationMode Authentication Mode.
         * 
         * @return builder
         * 
         */
        public Builder authenticationMode(AuthenticationMode authenticationMode) {
            return authenticationMode(Either.ofRight(authenticationMode));
        }

        /**
         * @param database The name of the Azure SQL database. Required on PUT (CreateOrReplace) requests.
         * 
         * @return builder
         * 
         */
        public Builder database(@Nullable Output database) {
            $.database = database;
            return this;
        }

        /**
         * @param database The name of the Azure SQL database. Required on PUT (CreateOrReplace) requests.
         * 
         * @return builder
         * 
         */
        public Builder database(String database) {
            return database(Output.of(database));
        }

        /**
         * @param maxBatchCount Max Batch count for write to Sql database, the default value is 10,000. Optional on PUT requests.
         * 
         * @return builder
         * 
         */
        public Builder maxBatchCount(@Nullable Output maxBatchCount) {
            $.maxBatchCount = maxBatchCount;
            return this;
        }

        /**
         * @param maxBatchCount Max Batch count for write to Sql database, the default value is 10,000. Optional on PUT requests.
         * 
         * @return builder
         * 
         */
        public Builder maxBatchCount(Double maxBatchCount) {
            return maxBatchCount(Output.of(maxBatchCount));
        }

        /**
         * @param maxWriterCount Max Writer count, currently only 1(single writer) and 0(based on query partition) are available. Optional on PUT requests.
         * 
         * @return builder
         * 
         */
        public Builder maxWriterCount(@Nullable Output maxWriterCount) {
            $.maxWriterCount = maxWriterCount;
            return this;
        }

        /**
         * @param maxWriterCount Max Writer count, currently only 1(single writer) and 0(based on query partition) are available. Optional on PUT requests.
         * 
         * @return builder
         * 
         */
        public Builder maxWriterCount(Double maxWriterCount) {
            return maxWriterCount(Output.of(maxWriterCount));
        }

        /**
         * @param password The password that will be used to connect to the Azure SQL database. Required on PUT (CreateOrReplace) requests.
         * 
         * @return builder
         * 
         */
        public Builder password(@Nullable Output password) {
            $.password = password;
            return this;
        }

        /**
         * @param password The password that will be used to connect to the Azure SQL database. Required on PUT (CreateOrReplace) requests.
         * 
         * @return builder
         * 
         */
        public Builder password(String password) {
            return password(Output.of(password));
        }

        /**
         * @param server The name of the SQL server containing the Azure SQL database. Required on PUT (CreateOrReplace) requests.
         * 
         * @return builder
         * 
         */
        public Builder server(@Nullable Output server) {
            $.server = server;
            return this;
        }

        /**
         * @param server The name of the SQL server containing the Azure SQL database. Required on PUT (CreateOrReplace) requests.
         * 
         * @return builder
         * 
         */
        public Builder server(String server) {
            return server(Output.of(server));
        }

        /**
         * @param table The name of the table in the Azure SQL database. Required on PUT (CreateOrReplace) requests.
         * 
         * @return builder
         * 
         */
        public Builder table(@Nullable Output table) {
            $.table = table;
            return this;
        }

        /**
         * @param table The name of the table in the Azure SQL database. Required on PUT (CreateOrReplace) requests.
         * 
         * @return builder
         * 
         */
        public Builder table(String table) {
            return table(Output.of(table));
        }

        /**
         * @param type Indicates the type of data source output will be written to. Required on PUT (CreateOrReplace) requests.
         * Expected value is 'Microsoft.Sql/Server/Database'.
         * 
         * @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.Sql/Server/Database'.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        /**
         * @param user The user name that will be used to connect to the Azure SQL database. Required on PUT (CreateOrReplace) requests.
         * 
         * @return builder
         * 
         */
        public Builder user(@Nullable Output user) {
            $.user = user;
            return this;
        }

        /**
         * @param user The user name that will be used to connect to the Azure SQL database. Required on PUT (CreateOrReplace) requests.
         * 
         * @return builder
         * 
         */
        public Builder user(String user) {
            return user(Output.of(user));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy