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

com.pulumi.azure.mssql.inputs.DatabaseImportArgs 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.azure.mssql.inputs;

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


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

    public static final DatabaseImportArgs Empty = new DatabaseImportArgs();

    /**
     * Specifies the name of the SQL administrator.
     * 
     */
    @Import(name="administratorLogin", required=true)
    private Output administratorLogin;

    /**
     * @return Specifies the name of the SQL administrator.
     * 
     */
    public Output administratorLogin() {
        return this.administratorLogin;
    }

    /**
     * Specifies the password of the SQL administrator.
     * 
     */
    @Import(name="administratorLoginPassword", required=true)
    private Output administratorLoginPassword;

    /**
     * @return Specifies the password of the SQL administrator.
     * 
     */
    public Output administratorLoginPassword() {
        return this.administratorLoginPassword;
    }

    /**
     * Specifies the type of authentication used to access the server. Valid values are `SQL` or `ADPassword`.
     * 
     */
    @Import(name="authenticationType", required=true)
    private Output authenticationType;

    /**
     * @return Specifies the type of authentication used to access the server. Valid values are `SQL` or `ADPassword`.
     * 
     */
    public Output authenticationType() {
        return this.authenticationType;
    }

    /**
     * The resource id for the storage account used to store BACPAC file. If set, private endpoint connection will be created for the storage account. Must match storage account used for storage_uri parameter.
     * 
     */
    @Import(name="storageAccountId")
    private @Nullable Output storageAccountId;

    /**
     * @return The resource id for the storage account used to store BACPAC file. If set, private endpoint connection will be created for the storage account. Must match storage account used for storage_uri parameter.
     * 
     */
    public Optional> storageAccountId() {
        return Optional.ofNullable(this.storageAccountId);
    }

    /**
     * Specifies the access key for the storage account.
     * 
     */
    @Import(name="storageKey", required=true)
    private Output storageKey;

    /**
     * @return Specifies the access key for the storage account.
     * 
     */
    public Output storageKey() {
        return this.storageKey;
    }

    /**
     * Specifies the type of access key for the storage account. Valid values are `StorageAccessKey` or `SharedAccessKey`.
     * 
     */
    @Import(name="storageKeyType", required=true)
    private Output storageKeyType;

    /**
     * @return Specifies the type of access key for the storage account. Valid values are `StorageAccessKey` or `SharedAccessKey`.
     * 
     */
    public Output storageKeyType() {
        return this.storageKeyType;
    }

    /**
     * Specifies the blob URI of the .bacpac file.
     * 
     */
    @Import(name="storageUri", required=true)
    private Output storageUri;

    /**
     * @return Specifies the blob URI of the .bacpac file.
     * 
     */
    public Output storageUri() {
        return this.storageUri;
    }

    private DatabaseImportArgs() {}

    private DatabaseImportArgs(DatabaseImportArgs $) {
        this.administratorLogin = $.administratorLogin;
        this.administratorLoginPassword = $.administratorLoginPassword;
        this.authenticationType = $.authenticationType;
        this.storageAccountId = $.storageAccountId;
        this.storageKey = $.storageKey;
        this.storageKeyType = $.storageKeyType;
        this.storageUri = $.storageUri;
    }

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

    public static final class Builder {
        private DatabaseImportArgs $;

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

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

        /**
         * @param administratorLogin Specifies the name of the SQL administrator.
         * 
         * @return builder
         * 
         */
        public Builder administratorLogin(Output administratorLogin) {
            $.administratorLogin = administratorLogin;
            return this;
        }

        /**
         * @param administratorLogin Specifies the name of the SQL administrator.
         * 
         * @return builder
         * 
         */
        public Builder administratorLogin(String administratorLogin) {
            return administratorLogin(Output.of(administratorLogin));
        }

        /**
         * @param administratorLoginPassword Specifies the password of the SQL administrator.
         * 
         * @return builder
         * 
         */
        public Builder administratorLoginPassword(Output administratorLoginPassword) {
            $.administratorLoginPassword = administratorLoginPassword;
            return this;
        }

        /**
         * @param administratorLoginPassword Specifies the password of the SQL administrator.
         * 
         * @return builder
         * 
         */
        public Builder administratorLoginPassword(String administratorLoginPassword) {
            return administratorLoginPassword(Output.of(administratorLoginPassword));
        }

        /**
         * @param authenticationType Specifies the type of authentication used to access the server. Valid values are `SQL` or `ADPassword`.
         * 
         * @return builder
         * 
         */
        public Builder authenticationType(Output authenticationType) {
            $.authenticationType = authenticationType;
            return this;
        }

        /**
         * @param authenticationType Specifies the type of authentication used to access the server. Valid values are `SQL` or `ADPassword`.
         * 
         * @return builder
         * 
         */
        public Builder authenticationType(String authenticationType) {
            return authenticationType(Output.of(authenticationType));
        }

        /**
         * @param storageAccountId The resource id for the storage account used to store BACPAC file. If set, private endpoint connection will be created for the storage account. Must match storage account used for storage_uri parameter.
         * 
         * @return builder
         * 
         */
        public Builder storageAccountId(@Nullable Output storageAccountId) {
            $.storageAccountId = storageAccountId;
            return this;
        }

        /**
         * @param storageAccountId The resource id for the storage account used to store BACPAC file. If set, private endpoint connection will be created for the storage account. Must match storage account used for storage_uri parameter.
         * 
         * @return builder
         * 
         */
        public Builder storageAccountId(String storageAccountId) {
            return storageAccountId(Output.of(storageAccountId));
        }

        /**
         * @param storageKey Specifies the access key for the storage account.
         * 
         * @return builder
         * 
         */
        public Builder storageKey(Output storageKey) {
            $.storageKey = storageKey;
            return this;
        }

        /**
         * @param storageKey Specifies the access key for the storage account.
         * 
         * @return builder
         * 
         */
        public Builder storageKey(String storageKey) {
            return storageKey(Output.of(storageKey));
        }

        /**
         * @param storageKeyType Specifies the type of access key for the storage account. Valid values are `StorageAccessKey` or `SharedAccessKey`.
         * 
         * @return builder
         * 
         */
        public Builder storageKeyType(Output storageKeyType) {
            $.storageKeyType = storageKeyType;
            return this;
        }

        /**
         * @param storageKeyType Specifies the type of access key for the storage account. Valid values are `StorageAccessKey` or `SharedAccessKey`.
         * 
         * @return builder
         * 
         */
        public Builder storageKeyType(String storageKeyType) {
            return storageKeyType(Output.of(storageKeyType));
        }

        /**
         * @param storageUri Specifies the blob URI of the .bacpac file.
         * 
         * @return builder
         * 
         */
        public Builder storageUri(Output storageUri) {
            $.storageUri = storageUri;
            return this;
        }

        /**
         * @param storageUri Specifies the blob URI of the .bacpac file.
         * 
         * @return builder
         * 
         */
        public Builder storageUri(String storageUri) {
            return storageUri(Output.of(storageUri));
        }

        public DatabaseImportArgs build() {
            if ($.administratorLogin == null) {
                throw new MissingRequiredPropertyException("DatabaseImportArgs", "administratorLogin");
            }
            if ($.administratorLoginPassword == null) {
                throw new MissingRequiredPropertyException("DatabaseImportArgs", "administratorLoginPassword");
            }
            if ($.authenticationType == null) {
                throw new MissingRequiredPropertyException("DatabaseImportArgs", "authenticationType");
            }
            if ($.storageKey == null) {
                throw new MissingRequiredPropertyException("DatabaseImportArgs", "storageKey");
            }
            if ($.storageKeyType == null) {
                throw new MissingRequiredPropertyException("DatabaseImportArgs", "storageKeyType");
            }
            if ($.storageUri == null) {
                throw new MissingRequiredPropertyException("DatabaseImportArgs", "storageUri");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy