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

com.pulumi.azurenative.databox.inputs.EncryptionPreferencesArgs 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.databox.inputs;

import com.pulumi.azurenative.databox.enums.DoubleEncryption;
import com.pulumi.azurenative.databox.enums.HardwareEncryption;
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.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Preferences related to the Encryption.
 * 
 */
public final class EncryptionPreferencesArgs extends com.pulumi.resources.ResourceArgs {

    public static final EncryptionPreferencesArgs Empty = new EncryptionPreferencesArgs();

    /**
     * Defines secondary layer of software-based encryption enablement.
     * 
     */
    @Import(name="doubleEncryption")
    private @Nullable Output> doubleEncryption;

    /**
     * @return Defines secondary layer of software-based encryption enablement.
     * 
     */
    public Optional>> doubleEncryption() {
        return Optional.ofNullable(this.doubleEncryption);
    }

    /**
     * Defines Hardware level encryption (Only for disk)
     * 
     */
    @Import(name="hardwareEncryption")
    private @Nullable Output> hardwareEncryption;

    /**
     * @return Defines Hardware level encryption (Only for disk)
     * 
     */
    public Optional>> hardwareEncryption() {
        return Optional.ofNullable(this.hardwareEncryption);
    }

    private EncryptionPreferencesArgs() {}

    private EncryptionPreferencesArgs(EncryptionPreferencesArgs $) {
        this.doubleEncryption = $.doubleEncryption;
        this.hardwareEncryption = $.hardwareEncryption;
    }

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

    public static final class Builder {
        private EncryptionPreferencesArgs $;

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

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

        /**
         * @param doubleEncryption Defines secondary layer of software-based encryption enablement.
         * 
         * @return builder
         * 
         */
        public Builder doubleEncryption(@Nullable Output> doubleEncryption) {
            $.doubleEncryption = doubleEncryption;
            return this;
        }

        /**
         * @param doubleEncryption Defines secondary layer of software-based encryption enablement.
         * 
         * @return builder
         * 
         */
        public Builder doubleEncryption(Either doubleEncryption) {
            return doubleEncryption(Output.of(doubleEncryption));
        }

        /**
         * @param doubleEncryption Defines secondary layer of software-based encryption enablement.
         * 
         * @return builder
         * 
         */
        public Builder doubleEncryption(String doubleEncryption) {
            return doubleEncryption(Either.ofLeft(doubleEncryption));
        }

        /**
         * @param doubleEncryption Defines secondary layer of software-based encryption enablement.
         * 
         * @return builder
         * 
         */
        public Builder doubleEncryption(DoubleEncryption doubleEncryption) {
            return doubleEncryption(Either.ofRight(doubleEncryption));
        }

        /**
         * @param hardwareEncryption Defines Hardware level encryption (Only for disk)
         * 
         * @return builder
         * 
         */
        public Builder hardwareEncryption(@Nullable Output> hardwareEncryption) {
            $.hardwareEncryption = hardwareEncryption;
            return this;
        }

        /**
         * @param hardwareEncryption Defines Hardware level encryption (Only for disk)
         * 
         * @return builder
         * 
         */
        public Builder hardwareEncryption(Either hardwareEncryption) {
            return hardwareEncryption(Output.of(hardwareEncryption));
        }

        /**
         * @param hardwareEncryption Defines Hardware level encryption (Only for disk)
         * 
         * @return builder
         * 
         */
        public Builder hardwareEncryption(String hardwareEncryption) {
            return hardwareEncryption(Either.ofLeft(hardwareEncryption));
        }

        /**
         * @param hardwareEncryption Defines Hardware level encryption (Only for disk)
         * 
         * @return builder
         * 
         */
        public Builder hardwareEncryption(HardwareEncryption hardwareEncryption) {
            return hardwareEncryption(Either.ofRight(hardwareEncryption));
        }

        public EncryptionPreferencesArgs build() {
            $.doubleEncryption = Codegen.stringProp("doubleEncryption").left(DoubleEncryption.class).output().arg($.doubleEncryption).def("Disabled").getNullable();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy