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

com.pulumi.azurenative.storagecache.inputs.CacheEncryptionSettingsArgs 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.azurenative.storagecache.inputs;

import com.pulumi.azurenative.storagecache.inputs.KeyVaultKeyReferenceArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Cache encryption settings.
 * 
 */
public final class CacheEncryptionSettingsArgs extends com.pulumi.resources.ResourceArgs {

    public static final CacheEncryptionSettingsArgs Empty = new CacheEncryptionSettingsArgs();

    /**
     * Specifies the location of the key encryption key in key vault.
     * 
     */
    @Import(name="keyEncryptionKey")
    private @Nullable Output keyEncryptionKey;

    /**
     * @return Specifies the location of the key encryption key in key vault.
     * 
     */
    public Optional> keyEncryptionKey() {
        return Optional.ofNullable(this.keyEncryptionKey);
    }

    /**
     * Specifies whether the service will automatically rotate to the newest version of the key in the key vault.
     * 
     */
    @Import(name="rotationToLatestKeyVersionEnabled")
    private @Nullable Output rotationToLatestKeyVersionEnabled;

    /**
     * @return Specifies whether the service will automatically rotate to the newest version of the key in the key vault.
     * 
     */
    public Optional> rotationToLatestKeyVersionEnabled() {
        return Optional.ofNullable(this.rotationToLatestKeyVersionEnabled);
    }

    private CacheEncryptionSettingsArgs() {}

    private CacheEncryptionSettingsArgs(CacheEncryptionSettingsArgs $) {
        this.keyEncryptionKey = $.keyEncryptionKey;
        this.rotationToLatestKeyVersionEnabled = $.rotationToLatestKeyVersionEnabled;
    }

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

    public static final class Builder {
        private CacheEncryptionSettingsArgs $;

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

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

        /**
         * @param keyEncryptionKey Specifies the location of the key encryption key in key vault.
         * 
         * @return builder
         * 
         */
        public Builder keyEncryptionKey(@Nullable Output keyEncryptionKey) {
            $.keyEncryptionKey = keyEncryptionKey;
            return this;
        }

        /**
         * @param keyEncryptionKey Specifies the location of the key encryption key in key vault.
         * 
         * @return builder
         * 
         */
        public Builder keyEncryptionKey(KeyVaultKeyReferenceArgs keyEncryptionKey) {
            return keyEncryptionKey(Output.of(keyEncryptionKey));
        }

        /**
         * @param rotationToLatestKeyVersionEnabled Specifies whether the service will automatically rotate to the newest version of the key in the key vault.
         * 
         * @return builder
         * 
         */
        public Builder rotationToLatestKeyVersionEnabled(@Nullable Output rotationToLatestKeyVersionEnabled) {
            $.rotationToLatestKeyVersionEnabled = rotationToLatestKeyVersionEnabled;
            return this;
        }

        /**
         * @param rotationToLatestKeyVersionEnabled Specifies whether the service will automatically rotate to the newest version of the key in the key vault.
         * 
         * @return builder
         * 
         */
        public Builder rotationToLatestKeyVersionEnabled(Boolean rotationToLatestKeyVersionEnabled) {
            return rotationToLatestKeyVersionEnabled(Output.of(rotationToLatestKeyVersionEnabled));
        }

        public CacheEncryptionSettingsArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy