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

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


/**
 * Definition of CMK for the factory.
 * 
 */
public final class EncryptionConfigurationArgs extends com.pulumi.resources.ResourceArgs {

    public static final EncryptionConfigurationArgs Empty = new EncryptionConfigurationArgs();

    /**
     * User assigned identity to use to authenticate to customer's key vault. If not provided Managed Service Identity will be used.
     * 
     */
    @Import(name="identity")
    private @Nullable Output identity;

    /**
     * @return User assigned identity to use to authenticate to customer's key vault. If not provided Managed Service Identity will be used.
     * 
     */
    public Optional> identity() {
        return Optional.ofNullable(this.identity);
    }

    /**
     * The name of the key in Azure Key Vault to use as Customer Managed Key.
     * 
     */
    @Import(name="keyName", required=true)
    private Output keyName;

    /**
     * @return The name of the key in Azure Key Vault to use as Customer Managed Key.
     * 
     */
    public Output keyName() {
        return this.keyName;
    }

    /**
     * The version of the key used for CMK. If not provided, latest version will be used.
     * 
     */
    @Import(name="keyVersion")
    private @Nullable Output keyVersion;

    /**
     * @return The version of the key used for CMK. If not provided, latest version will be used.
     * 
     */
    public Optional> keyVersion() {
        return Optional.ofNullable(this.keyVersion);
    }

    /**
     * The url of the Azure Key Vault used for CMK.
     * 
     */
    @Import(name="vaultBaseUrl", required=true)
    private Output vaultBaseUrl;

    /**
     * @return The url of the Azure Key Vault used for CMK.
     * 
     */
    public Output vaultBaseUrl() {
        return this.vaultBaseUrl;
    }

    private EncryptionConfigurationArgs() {}

    private EncryptionConfigurationArgs(EncryptionConfigurationArgs $) {
        this.identity = $.identity;
        this.keyName = $.keyName;
        this.keyVersion = $.keyVersion;
        this.vaultBaseUrl = $.vaultBaseUrl;
    }

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

    public static final class Builder {
        private EncryptionConfigurationArgs $;

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

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

        /**
         * @param identity User assigned identity to use to authenticate to customer's key vault. If not provided Managed Service Identity will be used.
         * 
         * @return builder
         * 
         */
        public Builder identity(@Nullable Output identity) {
            $.identity = identity;
            return this;
        }

        /**
         * @param identity User assigned identity to use to authenticate to customer's key vault. If not provided Managed Service Identity will be used.
         * 
         * @return builder
         * 
         */
        public Builder identity(CMKIdentityDefinitionArgs identity) {
            return identity(Output.of(identity));
        }

        /**
         * @param keyName The name of the key in Azure Key Vault to use as Customer Managed Key.
         * 
         * @return builder
         * 
         */
        public Builder keyName(Output keyName) {
            $.keyName = keyName;
            return this;
        }

        /**
         * @param keyName The name of the key in Azure Key Vault to use as Customer Managed Key.
         * 
         * @return builder
         * 
         */
        public Builder keyName(String keyName) {
            return keyName(Output.of(keyName));
        }

        /**
         * @param keyVersion The version of the key used for CMK. If not provided, latest version will be used.
         * 
         * @return builder
         * 
         */
        public Builder keyVersion(@Nullable Output keyVersion) {
            $.keyVersion = keyVersion;
            return this;
        }

        /**
         * @param keyVersion The version of the key used for CMK. If not provided, latest version will be used.
         * 
         * @return builder
         * 
         */
        public Builder keyVersion(String keyVersion) {
            return keyVersion(Output.of(keyVersion));
        }

        /**
         * @param vaultBaseUrl The url of the Azure Key Vault used for CMK.
         * 
         * @return builder
         * 
         */
        public Builder vaultBaseUrl(Output vaultBaseUrl) {
            $.vaultBaseUrl = vaultBaseUrl;
            return this;
        }

        /**
         * @param vaultBaseUrl The url of the Azure Key Vault used for CMK.
         * 
         * @return builder
         * 
         */
        public Builder vaultBaseUrl(String vaultBaseUrl) {
            return vaultBaseUrl(Output.of(vaultBaseUrl));
        }

        public EncryptionConfigurationArgs build() {
            if ($.keyName == null) {
                throw new MissingRequiredPropertyException("EncryptionConfigurationArgs", "keyName");
            }
            if ($.vaultBaseUrl == null) {
                throw new MissingRequiredPropertyException("EncryptionConfigurationArgs", "vaultBaseUrl");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy