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

com.pulumi.azurenative.compute.inputs.RestorePointEncryptionArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.compute.inputs;

import com.pulumi.azurenative.compute.enums.RestorePointEncryptionType;
import com.pulumi.azurenative.compute.inputs.DiskEncryptionSetParametersArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Encryption at rest settings for disk restore point. It is an optional property that can be specified in the input while creating a restore point.
 * 
 */
public final class RestorePointEncryptionArgs extends com.pulumi.resources.ResourceArgs {

    public static final RestorePointEncryptionArgs Empty = new RestorePointEncryptionArgs();

    /**
     * Describes the parameter of customer managed disk encryption set resource id that can be specified for disk. **Note:** The disk encryption set resource id can only be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more details.
     * 
     */
    @Import(name="diskEncryptionSet")
    private @Nullable Output diskEncryptionSet;

    /**
     * @return Describes the parameter of customer managed disk encryption set resource id that can be specified for disk. **Note:** The disk encryption set resource id can only be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more details.
     * 
     */
    public Optional> diskEncryptionSet() {
        return Optional.ofNullable(this.diskEncryptionSet);
    }

    /**
     * The type of key used to encrypt the data of the disk restore point.
     * 
     */
    @Import(name="type")
    private @Nullable Output> type;

    /**
     * @return The type of key used to encrypt the data of the disk restore point.
     * 
     */
    public Optional>> type() {
        return Optional.ofNullable(this.type);
    }

    private RestorePointEncryptionArgs() {}

    private RestorePointEncryptionArgs(RestorePointEncryptionArgs $) {
        this.diskEncryptionSet = $.diskEncryptionSet;
        this.type = $.type;
    }

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

    public static final class Builder {
        private RestorePointEncryptionArgs $;

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

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

        /**
         * @param diskEncryptionSet Describes the parameter of customer managed disk encryption set resource id that can be specified for disk. **Note:** The disk encryption set resource id can only be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more details.
         * 
         * @return builder
         * 
         */
        public Builder diskEncryptionSet(@Nullable Output diskEncryptionSet) {
            $.diskEncryptionSet = diskEncryptionSet;
            return this;
        }

        /**
         * @param diskEncryptionSet Describes the parameter of customer managed disk encryption set resource id that can be specified for disk. **Note:** The disk encryption set resource id can only be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more details.
         * 
         * @return builder
         * 
         */
        public Builder diskEncryptionSet(DiskEncryptionSetParametersArgs diskEncryptionSet) {
            return diskEncryptionSet(Output.of(diskEncryptionSet));
        }

        /**
         * @param type The type of key used to encrypt the data of the disk restore point.
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output> type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The type of key used to encrypt the data of the disk restore point.
         * 
         * @return builder
         * 
         */
        public Builder type(Either type) {
            return type(Output.of(type));
        }

        /**
         * @param type The type of key used to encrypt the data of the disk restore point.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Either.ofLeft(type));
        }

        /**
         * @param type The type of key used to encrypt the data of the disk restore point.
         * 
         * @return builder
         * 
         */
        public Builder type(RestorePointEncryptionType type) {
            return type(Either.ofRight(type));
        }

        public RestorePointEncryptionArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy