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

com.pulumi.azurenative.batch.inputs.EncryptionPropertiesArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.batch.inputs;

import com.pulumi.azurenative.batch.enums.KeySource;
import com.pulumi.azurenative.batch.inputs.KeyVaultPropertiesArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Configures how customer data is encrypted inside the Batch account. By default, accounts are encrypted using a Microsoft managed key. For additional control, a customer-managed key can be used instead.
 * 
 */
public final class EncryptionPropertiesArgs extends com.pulumi.resources.ResourceArgs {

    public static final EncryptionPropertiesArgs Empty = new EncryptionPropertiesArgs();

    /**
     * Type of the key source.
     * 
     */
    @Import(name="keySource")
    private @Nullable Output keySource;

    /**
     * @return Type of the key source.
     * 
     */
    public Optional> keySource() {
        return Optional.ofNullable(this.keySource);
    }

    /**
     * Additional details when using Microsoft.KeyVault
     * 
     */
    @Import(name="keyVaultProperties")
    private @Nullable Output keyVaultProperties;

    /**
     * @return Additional details when using Microsoft.KeyVault
     * 
     */
    public Optional> keyVaultProperties() {
        return Optional.ofNullable(this.keyVaultProperties);
    }

    private EncryptionPropertiesArgs() {}

    private EncryptionPropertiesArgs(EncryptionPropertiesArgs $) {
        this.keySource = $.keySource;
        this.keyVaultProperties = $.keyVaultProperties;
    }

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

    public static final class Builder {
        private EncryptionPropertiesArgs $;

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

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

        /**
         * @param keySource Type of the key source.
         * 
         * @return builder
         * 
         */
        public Builder keySource(@Nullable Output keySource) {
            $.keySource = keySource;
            return this;
        }

        /**
         * @param keySource Type of the key source.
         * 
         * @return builder
         * 
         */
        public Builder keySource(KeySource keySource) {
            return keySource(Output.of(keySource));
        }

        /**
         * @param keyVaultProperties Additional details when using Microsoft.KeyVault
         * 
         * @return builder
         * 
         */
        public Builder keyVaultProperties(@Nullable Output keyVaultProperties) {
            $.keyVaultProperties = keyVaultProperties;
            return this;
        }

        /**
         * @param keyVaultProperties Additional details when using Microsoft.KeyVault
         * 
         * @return builder
         * 
         */
        public Builder keyVaultProperties(KeyVaultPropertiesArgs keyVaultProperties) {
            return keyVaultProperties(Output.of(keyVaultProperties));
        }

        public EncryptionPropertiesArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy