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

com.pulumi.azurenative.datafactory.inputs.SqlAlwaysEncryptedPropertiesArgs 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.datafactory.inputs;

import com.pulumi.azurenative.datafactory.enums.SqlAlwaysEncryptedAkvAuthType;
import com.pulumi.azurenative.datafactory.inputs.AzureKeyVaultSecretReferenceArgs;
import com.pulumi.azurenative.datafactory.inputs.CredentialReferenceArgs;
import com.pulumi.azurenative.datafactory.inputs.SecureStringArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Sql always encrypted properties.
 * 
 */
public final class SqlAlwaysEncryptedPropertiesArgs extends com.pulumi.resources.ResourceArgs {

    public static final SqlAlwaysEncryptedPropertiesArgs Empty = new SqlAlwaysEncryptedPropertiesArgs();

    /**
     * Sql always encrypted AKV authentication type. Type: string.
     * 
     */
    @Import(name="alwaysEncryptedAkvAuthType", required=true)
    private Output> alwaysEncryptedAkvAuthType;

    /**
     * @return Sql always encrypted AKV authentication type. Type: string.
     * 
     */
    public Output> alwaysEncryptedAkvAuthType() {
        return this.alwaysEncryptedAkvAuthType;
    }

    /**
     * The credential reference containing authentication information.
     * 
     */
    @Import(name="credential")
    private @Nullable Output credential;

    /**
     * @return The credential reference containing authentication information.
     * 
     */
    public Optional> credential() {
        return Optional.ofNullable(this.credential);
    }

    /**
     * The client ID of the application in Azure Active Directory used for Azure Key Vault authentication. Type: string (or Expression with resultType string).
     * 
     */
    @Import(name="servicePrincipalId")
    private @Nullable Output servicePrincipalId;

    /**
     * @return The client ID of the application in Azure Active Directory used for Azure Key Vault authentication. Type: string (or Expression with resultType string).
     * 
     */
    public Optional> servicePrincipalId() {
        return Optional.ofNullable(this.servicePrincipalId);
    }

    /**
     * The key of the service principal used to authenticate against Azure Key Vault.
     * 
     */
    @Import(name="servicePrincipalKey")
    private @Nullable Output> servicePrincipalKey;

    /**
     * @return The key of the service principal used to authenticate against Azure Key Vault.
     * 
     */
    public Optional>> servicePrincipalKey() {
        return Optional.ofNullable(this.servicePrincipalKey);
    }

    private SqlAlwaysEncryptedPropertiesArgs() {}

    private SqlAlwaysEncryptedPropertiesArgs(SqlAlwaysEncryptedPropertiesArgs $) {
        this.alwaysEncryptedAkvAuthType = $.alwaysEncryptedAkvAuthType;
        this.credential = $.credential;
        this.servicePrincipalId = $.servicePrincipalId;
        this.servicePrincipalKey = $.servicePrincipalKey;
    }

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

    public static final class Builder {
        private SqlAlwaysEncryptedPropertiesArgs $;

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

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

        /**
         * @param alwaysEncryptedAkvAuthType Sql always encrypted AKV authentication type. Type: string.
         * 
         * @return builder
         * 
         */
        public Builder alwaysEncryptedAkvAuthType(Output> alwaysEncryptedAkvAuthType) {
            $.alwaysEncryptedAkvAuthType = alwaysEncryptedAkvAuthType;
            return this;
        }

        /**
         * @param alwaysEncryptedAkvAuthType Sql always encrypted AKV authentication type. Type: string.
         * 
         * @return builder
         * 
         */
        public Builder alwaysEncryptedAkvAuthType(Either alwaysEncryptedAkvAuthType) {
            return alwaysEncryptedAkvAuthType(Output.of(alwaysEncryptedAkvAuthType));
        }

        /**
         * @param alwaysEncryptedAkvAuthType Sql always encrypted AKV authentication type. Type: string.
         * 
         * @return builder
         * 
         */
        public Builder alwaysEncryptedAkvAuthType(String alwaysEncryptedAkvAuthType) {
            return alwaysEncryptedAkvAuthType(Either.ofLeft(alwaysEncryptedAkvAuthType));
        }

        /**
         * @param alwaysEncryptedAkvAuthType Sql always encrypted AKV authentication type. Type: string.
         * 
         * @return builder
         * 
         */
        public Builder alwaysEncryptedAkvAuthType(SqlAlwaysEncryptedAkvAuthType alwaysEncryptedAkvAuthType) {
            return alwaysEncryptedAkvAuthType(Either.ofRight(alwaysEncryptedAkvAuthType));
        }

        /**
         * @param credential The credential reference containing authentication information.
         * 
         * @return builder
         * 
         */
        public Builder credential(@Nullable Output credential) {
            $.credential = credential;
            return this;
        }

        /**
         * @param credential The credential reference containing authentication information.
         * 
         * @return builder
         * 
         */
        public Builder credential(CredentialReferenceArgs credential) {
            return credential(Output.of(credential));
        }

        /**
         * @param servicePrincipalId The client ID of the application in Azure Active Directory used for Azure Key Vault authentication. Type: string (or Expression with resultType string).
         * 
         * @return builder
         * 
         */
        public Builder servicePrincipalId(@Nullable Output servicePrincipalId) {
            $.servicePrincipalId = servicePrincipalId;
            return this;
        }

        /**
         * @param servicePrincipalId The client ID of the application in Azure Active Directory used for Azure Key Vault authentication. Type: string (or Expression with resultType string).
         * 
         * @return builder
         * 
         */
        public Builder servicePrincipalId(Object servicePrincipalId) {
            return servicePrincipalId(Output.of(servicePrincipalId));
        }

        /**
         * @param servicePrincipalKey The key of the service principal used to authenticate against Azure Key Vault.
         * 
         * @return builder
         * 
         */
        public Builder servicePrincipalKey(@Nullable Output> servicePrincipalKey) {
            $.servicePrincipalKey = servicePrincipalKey;
            return this;
        }

        /**
         * @param servicePrincipalKey The key of the service principal used to authenticate against Azure Key Vault.
         * 
         * @return builder
         * 
         */
        public Builder servicePrincipalKey(Either servicePrincipalKey) {
            return servicePrincipalKey(Output.of(servicePrincipalKey));
        }

        /**
         * @param servicePrincipalKey The key of the service principal used to authenticate against Azure Key Vault.
         * 
         * @return builder
         * 
         */
        public Builder servicePrincipalKey(AzureKeyVaultSecretReferenceArgs servicePrincipalKey) {
            return servicePrincipalKey(Either.ofLeft(servicePrincipalKey));
        }

        /**
         * @param servicePrincipalKey The key of the service principal used to authenticate against Azure Key Vault.
         * 
         * @return builder
         * 
         */
        public Builder servicePrincipalKey(SecureStringArgs servicePrincipalKey) {
            return servicePrincipalKey(Either.ofRight(servicePrincipalKey));
        }

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

}