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

com.pulumi.azurenative.eventhub.inputs.EncryptionArgs 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.eventhub.inputs;

import com.pulumi.azurenative.eventhub.enums.KeySource;
import com.pulumi.azurenative.eventhub.inputs.KeyVaultPropertiesArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import java.lang.Boolean;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Properties to configure Encryption
 * 
 */
public final class EncryptionArgs extends com.pulumi.resources.ResourceArgs {

    public static final EncryptionArgs Empty = new EncryptionArgs();

    /**
     * Enumerates the possible value of keySource for Encryption
     * 
     */
    @Import(name="keySource")
    private @Nullable Output keySource;

    /**
     * @return Enumerates the possible value of keySource for Encryption
     * 
     */
    public Optional> keySource() {
        return Optional.ofNullable(this.keySource);
    }

    /**
     * Properties of KeyVault
     * 
     */
    @Import(name="keyVaultProperties")
    private @Nullable Output> keyVaultProperties;

    /**
     * @return Properties of KeyVault
     * 
     */
    public Optional>> keyVaultProperties() {
        return Optional.ofNullable(this.keyVaultProperties);
    }

    /**
     * Enable Infrastructure Encryption (Double Encryption)
     * 
     */
    @Import(name="requireInfrastructureEncryption")
    private @Nullable Output requireInfrastructureEncryption;

    /**
     * @return Enable Infrastructure Encryption (Double Encryption)
     * 
     */
    public Optional> requireInfrastructureEncryption() {
        return Optional.ofNullable(this.requireInfrastructureEncryption);
    }

    private EncryptionArgs() {}

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

    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 keySource Enumerates the possible value of keySource for Encryption
         * 
         * @return builder
         * 
         */
        public Builder keySource(@Nullable Output keySource) {
            $.keySource = keySource;
            return this;
        }

        /**
         * @param keySource Enumerates the possible value of keySource for Encryption
         * 
         * @return builder
         * 
         */
        public Builder keySource(KeySource keySource) {
            return keySource(Output.of(keySource));
        }

        /**
         * @param keyVaultProperties Properties of KeyVault
         * 
         * @return builder
         * 
         */
        public Builder keyVaultProperties(@Nullable Output> keyVaultProperties) {
            $.keyVaultProperties = keyVaultProperties;
            return this;
        }

        /**
         * @param keyVaultProperties Properties of KeyVault
         * 
         * @return builder
         * 
         */
        public Builder keyVaultProperties(List keyVaultProperties) {
            return keyVaultProperties(Output.of(keyVaultProperties));
        }

        /**
         * @param keyVaultProperties Properties of KeyVault
         * 
         * @return builder
         * 
         */
        public Builder keyVaultProperties(KeyVaultPropertiesArgs... keyVaultProperties) {
            return keyVaultProperties(List.of(keyVaultProperties));
        }

        /**
         * @param requireInfrastructureEncryption Enable Infrastructure Encryption (Double Encryption)
         * 
         * @return builder
         * 
         */
        public Builder requireInfrastructureEncryption(@Nullable Output requireInfrastructureEncryption) {
            $.requireInfrastructureEncryption = requireInfrastructureEncryption;
            return this;
        }

        /**
         * @param requireInfrastructureEncryption Enable Infrastructure Encryption (Double Encryption)
         * 
         * @return builder
         * 
         */
        public Builder requireInfrastructureEncryption(Boolean requireInfrastructureEncryption) {
            return requireInfrastructureEncryption(Output.of(requireInfrastructureEncryption));
        }

        public EncryptionArgs build() {
            $.keySource = Codegen.objectProp("keySource", KeySource.class).output().arg($.keySource).def(KeySource.Microsoft_KeyVault).getNullable();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy