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

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

import com.pulumi.azure.Utilities;
import com.pulumi.azure.compute.RestorePointArgs;
import com.pulumi.azure.compute.inputs.RestorePointState;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Manages a Virtual Machine Restore Point.
 * 
 * ## Example Usage
 * 
 * <!--Start PulumiCodeChooser -->
 * <!--End PulumiCodeChooser -->
 * 
 * ## Import
 * 
 * Virtual Machine Restore Point can be imported using the `resource id`, e.g.
 * 
 * ```sh
 * $ pulumi import azure:compute/restorePoint:RestorePoint example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Compute/restorePointCollections/collection1/restorePoints/restorePoint1
 * ```
 * 
 */
@ResourceType(type="azure:compute/restorePoint:RestorePoint")
public class RestorePoint extends com.pulumi.resources.CustomResource {
    /**
     * Is Crash Consistent the Consistency Mode of the Virtual Machine Restore Point. Defaults to `false`. Changing this forces a new resource to be created.
     * 
     */
    @Export(name="crashConsistencyModeEnabled", refs={Boolean.class}, tree="[0]")
    private Output crashConsistencyModeEnabled;

    /**
     * @return Is Crash Consistent the Consistency Mode of the Virtual Machine Restore Point. Defaults to `false`. Changing this forces a new resource to be created.
     * 
     */
    public Output> crashConsistencyModeEnabled() {
        return Codegen.optional(this.crashConsistencyModeEnabled);
    }
    /**
     * A list of disks that will be excluded from the Virtual Machine Restore Point. Changing this forces a new resource to be created.
     * 
     */
    @Export(name="excludedDisks", refs={List.class,String.class}, tree="[0,1]")
    private Output> excludedDisks;

    /**
     * @return A list of disks that will be excluded from the Virtual Machine Restore Point. Changing this forces a new resource to be created.
     * 
     */
    public Output>> excludedDisks() {
        return Codegen.optional(this.excludedDisks);
    }
    /**
     * Specifies the name of the Virtual Machine Restore Point. Changing this forces a new resource to be created.
     * 
     */
    @Export(name="name", refs={String.class}, tree="[0]")
    private Output name;

    /**
     * @return Specifies the name of the Virtual Machine Restore Point. Changing this forces a new resource to be created.
     * 
     */
    public Output name() {
        return this.name;
    }
    @Export(name="virtualMachineRestorePointCollectionId", refs={String.class}, tree="[0]")
    private Output virtualMachineRestorePointCollectionId;

    public Output virtualMachineRestorePointCollectionId() {
        return this.virtualMachineRestorePointCollectionId;
    }

    /**
     *
     * @param name The _unique_ name of the resulting resource.
     */
    public RestorePoint(java.lang.String name) {
        this(name, RestorePointArgs.Empty);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     */
    public RestorePoint(java.lang.String name, RestorePointArgs args) {
        this(name, args, null);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     * @param options A bag of options that control this resource's behavior.
     */
    public RestorePoint(java.lang.String name, RestorePointArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("azure:compute/restorePoint:RestorePoint", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
    }

    private RestorePoint(java.lang.String name, Output id, @Nullable RestorePointState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("azure:compute/restorePoint:RestorePoint", name, state, makeResourceOptions(options, id), false);
    }

    private static RestorePointArgs makeArgs(RestorePointArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        if (options != null && options.getUrn().isPresent()) {
            return null;
        }
        return args == null ? RestorePointArgs.Empty : args;
    }

    private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
        var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
            .version(Utilities.getVersion())
            .build();
        return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
    }

    /**
     * Get an existing Host resource's state with the given name, ID, and optional extra
     * properties used to qualify the lookup.
     *
     * @param name The _unique_ name of the resulting resource.
     * @param id The _unique_ provider ID of the resource to lookup.
     * @param state
     * @param options Optional settings to control the behavior of the CustomResource.
     */
    public static RestorePoint get(java.lang.String name, Output id, @Nullable RestorePointState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        return new RestorePoint(name, id, state, options);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy