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

com.pulumi.azure.compute.inputs.ManagedDiskEncryptionSettingsArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.compute.inputs;

import com.pulumi.azure.compute.inputs.ManagedDiskEncryptionSettingsDiskEncryptionKeyArgs;
import com.pulumi.azure.compute.inputs.ManagedDiskEncryptionSettingsKeyEncryptionKeyArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class ManagedDiskEncryptionSettingsArgs extends com.pulumi.resources.ResourceArgs {

    public static final ManagedDiskEncryptionSettingsArgs Empty = new ManagedDiskEncryptionSettingsArgs();

    /**
     * A `disk_encryption_key` block as defined above.
     * 
     */
    @Import(name="diskEncryptionKey", required=true)
    private Output diskEncryptionKey;

    /**
     * @return A `disk_encryption_key` block as defined above.
     * 
     */
    public Output diskEncryptionKey() {
        return this.diskEncryptionKey;
    }

    /**
     * A `key_encryption_key` block as defined below.
     * 
     */
    @Import(name="keyEncryptionKey")
    private @Nullable Output keyEncryptionKey;

    /**
     * @return A `key_encryption_key` block as defined below.
     * 
     */
    public Optional> keyEncryptionKey() {
        return Optional.ofNullable(this.keyEncryptionKey);
    }

    private ManagedDiskEncryptionSettingsArgs() {}

    private ManagedDiskEncryptionSettingsArgs(ManagedDiskEncryptionSettingsArgs $) {
        this.diskEncryptionKey = $.diskEncryptionKey;
        this.keyEncryptionKey = $.keyEncryptionKey;
    }

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

    public static final class Builder {
        private ManagedDiskEncryptionSettingsArgs $;

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

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

        /**
         * @param diskEncryptionKey A `disk_encryption_key` block as defined above.
         * 
         * @return builder
         * 
         */
        public Builder diskEncryptionKey(Output diskEncryptionKey) {
            $.diskEncryptionKey = diskEncryptionKey;
            return this;
        }

        /**
         * @param diskEncryptionKey A `disk_encryption_key` block as defined above.
         * 
         * @return builder
         * 
         */
        public Builder diskEncryptionKey(ManagedDiskEncryptionSettingsDiskEncryptionKeyArgs diskEncryptionKey) {
            return diskEncryptionKey(Output.of(diskEncryptionKey));
        }

        /**
         * @param keyEncryptionKey A `key_encryption_key` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder keyEncryptionKey(@Nullable Output keyEncryptionKey) {
            $.keyEncryptionKey = keyEncryptionKey;
            return this;
        }

        /**
         * @param keyEncryptionKey A `key_encryption_key` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder keyEncryptionKey(ManagedDiskEncryptionSettingsKeyEncryptionKeyArgs keyEncryptionKey) {
            return keyEncryptionKey(Output.of(keyEncryptionKey));
        }

        public ManagedDiskEncryptionSettingsArgs build() {
            if ($.diskEncryptionKey == null) {
                throw new MissingRequiredPropertyException("ManagedDiskEncryptionSettingsArgs", "diskEncryptionKey");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy