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

com.pulumi.azure.compute.inputs.SnapshotEncryptionSettingsArgs 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.azure.compute.inputs;

import com.pulumi.azure.compute.inputs.SnapshotEncryptionSettingsDiskEncryptionKeyArgs;
import com.pulumi.azure.compute.inputs.SnapshotEncryptionSettingsKeyEncryptionKeyArgs;
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 SnapshotEncryptionSettingsArgs extends com.pulumi.resources.ResourceArgs {

    public static final SnapshotEncryptionSettingsArgs Empty = new SnapshotEncryptionSettingsArgs();

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

    /**
     * @return A `disk_encryption_key` block as defined below.
     * 
     */
    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 SnapshotEncryptionSettingsArgs() {}

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

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

    public static final class Builder {
        private SnapshotEncryptionSettingsArgs $;

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

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

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

        /**
         * @param diskEncryptionKey A `disk_encryption_key` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder diskEncryptionKey(SnapshotEncryptionSettingsDiskEncryptionKeyArgs 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(SnapshotEncryptionSettingsKeyEncryptionKeyArgs keyEncryptionKey) {
            return keyEncryptionKey(Output.of(keyEncryptionKey));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy