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

com.pulumi.azurenative.storage.inputs.EncryptionArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.storage.enums.KeySource;
import com.pulumi.azurenative.storage.inputs.EncryptionIdentityArgs;
import com.pulumi.azurenative.storage.inputs.EncryptionServicesArgs;
import com.pulumi.azurenative.storage.inputs.KeyVaultPropertiesArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The encryption settings on the storage account.
 * 
 */
public final class EncryptionArgs extends com.pulumi.resources.ResourceArgs {

    public static final EncryptionArgs Empty = new EncryptionArgs();

    /**
     * The identity to be used with service-side encryption at rest.
     * 
     */
    @Import(name="encryptionIdentity")
    private @Nullable Output encryptionIdentity;

    /**
     * @return The identity to be used with service-side encryption at rest.
     * 
     */
    public Optional> encryptionIdentity() {
        return Optional.ofNullable(this.encryptionIdentity);
    }

    /**
     * The encryption keySource (provider). Possible values (case-insensitive):  Microsoft.Storage, Microsoft.Keyvault
     * 
     */
    @Import(name="keySource")
    private @Nullable Output> keySource;

    /**
     * @return The encryption keySource (provider). Possible values (case-insensitive):  Microsoft.Storage, Microsoft.Keyvault
     * 
     */
    public Optional>> keySource() {
        return Optional.ofNullable(this.keySource);
    }

    /**
     * Properties provided by key vault.
     * 
     */
    @Import(name="keyVaultProperties")
    private @Nullable Output keyVaultProperties;

    /**
     * @return Properties provided by key vault.
     * 
     */
    public Optional> keyVaultProperties() {
        return Optional.ofNullable(this.keyVaultProperties);
    }

    /**
     * A boolean indicating whether or not the service applies a secondary layer of encryption with platform managed keys for data at rest.
     * 
     */
    @Import(name="requireInfrastructureEncryption")
    private @Nullable Output requireInfrastructureEncryption;

    /**
     * @return A boolean indicating whether or not the service applies a secondary layer of encryption with platform managed keys for data at rest.
     * 
     */
    public Optional> requireInfrastructureEncryption() {
        return Optional.ofNullable(this.requireInfrastructureEncryption);
    }

    /**
     * List of services which support encryption.
     * 
     */
    @Import(name="services")
    private @Nullable Output services;

    /**
     * @return List of services which support encryption.
     * 
     */
    public Optional> services() {
        return Optional.ofNullable(this.services);
    }

    private EncryptionArgs() {}

    private EncryptionArgs(EncryptionArgs $) {
        this.encryptionIdentity = $.encryptionIdentity;
        this.keySource = $.keySource;
        this.keyVaultProperties = $.keyVaultProperties;
        this.requireInfrastructureEncryption = $.requireInfrastructureEncryption;
        this.services = $.services;
    }

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

    public static final class Builder {
        private EncryptionArgs $;

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

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

        /**
         * @param encryptionIdentity The identity to be used with service-side encryption at rest.
         * 
         * @return builder
         * 
         */
        public Builder encryptionIdentity(@Nullable Output encryptionIdentity) {
            $.encryptionIdentity = encryptionIdentity;
            return this;
        }

        /**
         * @param encryptionIdentity The identity to be used with service-side encryption at rest.
         * 
         * @return builder
         * 
         */
        public Builder encryptionIdentity(EncryptionIdentityArgs encryptionIdentity) {
            return encryptionIdentity(Output.of(encryptionIdentity));
        }

        /**
         * @param keySource The encryption keySource (provider). Possible values (case-insensitive):  Microsoft.Storage, Microsoft.Keyvault
         * 
         * @return builder
         * 
         */
        public Builder keySource(@Nullable Output> keySource) {
            $.keySource = keySource;
            return this;
        }

        /**
         * @param keySource The encryption keySource (provider). Possible values (case-insensitive):  Microsoft.Storage, Microsoft.Keyvault
         * 
         * @return builder
         * 
         */
        public Builder keySource(Either keySource) {
            return keySource(Output.of(keySource));
        }

        /**
         * @param keySource The encryption keySource (provider). Possible values (case-insensitive):  Microsoft.Storage, Microsoft.Keyvault
         * 
         * @return builder
         * 
         */
        public Builder keySource(String keySource) {
            return keySource(Either.ofLeft(keySource));
        }

        /**
         * @param keySource The encryption keySource (provider). Possible values (case-insensitive):  Microsoft.Storage, Microsoft.Keyvault
         * 
         * @return builder
         * 
         */
        public Builder keySource(KeySource keySource) {
            return keySource(Either.ofRight(keySource));
        }

        /**
         * @param keyVaultProperties Properties provided by key vault.
         * 
         * @return builder
         * 
         */
        public Builder keyVaultProperties(@Nullable Output keyVaultProperties) {
            $.keyVaultProperties = keyVaultProperties;
            return this;
        }

        /**
         * @param keyVaultProperties Properties provided by key vault.
         * 
         * @return builder
         * 
         */
        public Builder keyVaultProperties(KeyVaultPropertiesArgs keyVaultProperties) {
            return keyVaultProperties(Output.of(keyVaultProperties));
        }

        /**
         * @param requireInfrastructureEncryption A boolean indicating whether or not the service applies a secondary layer of encryption with platform managed keys for data at rest.
         * 
         * @return builder
         * 
         */
        public Builder requireInfrastructureEncryption(@Nullable Output requireInfrastructureEncryption) {
            $.requireInfrastructureEncryption = requireInfrastructureEncryption;
            return this;
        }

        /**
         * @param requireInfrastructureEncryption A boolean indicating whether or not the service applies a secondary layer of encryption with platform managed keys for data at rest.
         * 
         * @return builder
         * 
         */
        public Builder requireInfrastructureEncryption(Boolean requireInfrastructureEncryption) {
            return requireInfrastructureEncryption(Output.of(requireInfrastructureEncryption));
        }

        /**
         * @param services List of services which support encryption.
         * 
         * @return builder
         * 
         */
        public Builder services(@Nullable Output services) {
            $.services = services;
            return this;
        }

        /**
         * @param services List of services which support encryption.
         * 
         * @return builder
         * 
         */
        public Builder services(EncryptionServicesArgs services) {
            return services(Output.of(services));
        }

        public EncryptionArgs build() {
            $.keySource = Codegen.stringProp("keySource").left(KeySource.class).output().arg($.keySource).def("Microsoft.Storage").getNullable();
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy