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

com.pulumi.azurenative.netapp.Backup 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.netapp;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.netapp.BackupArgs;
import com.pulumi.azurenative.netapp.outputs.SystemDataResponse;
import com.pulumi.core.Alias;
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.Double;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Backup of a Volume
 * Azure REST API version: 2022-11-01. Prior API version in Azure Native 1.x: 2020-12-01.
 * 
 * Other available API versions: 2022-11-01-preview, 2023-05-01-preview, 2023-07-01-preview, 2023-11-01, 2023-11-01-preview, 2024-01-01, 2024-03-01, 2024-03-01-preview.
 * 
 * ## Example Usage
 * ### Backups_Create
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.netapp.Backup;
 * import com.pulumi.azurenative.netapp.BackupArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * 
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 * 
 *     public static void stack(Context ctx) {
 *         var backup = new Backup("backup", BackupArgs.builder()
 *             .accountName("account1")
 *             .backupName("backup1")
 *             .label("myLabel")
 *             .location("eastus")
 *             .poolName("pool1")
 *             .resourceGroupName("myRG")
 *             .volumeName("volume1")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:netapp:Backup account1/pool1/volume1/backup1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/backups/{backupName} * ``` * */ @ResourceType(type="azure-native:netapp:Backup") public class Backup extends com.pulumi.resources.CustomResource { /** * UUID v4 used to identify the Backup * */ @Export(name="backupId", refs={String.class}, tree="[0]") private Output backupId; /** * @return UUID v4 used to identify the Backup * */ public Output backupId() { return this.backupId; } /** * Type of backup Manual or Scheduled * */ @Export(name="backupType", refs={String.class}, tree="[0]") private Output backupType; /** * @return Type of backup Manual or Scheduled * */ public Output backupType() { return this.backupType; } /** * The creation date of the backup * */ @Export(name="creationDate", refs={String.class}, tree="[0]") private Output creationDate; /** * @return The creation date of the backup * */ public Output creationDate() { return this.creationDate; } /** * Failure reason * */ @Export(name="failureReason", refs={String.class}, tree="[0]") private Output failureReason; /** * @return Failure reason * */ public Output failureReason() { return this.failureReason; } /** * Label for backup * */ @Export(name="label", refs={String.class}, tree="[0]") private Output label; /** * @return Label for backup * */ public Output> label() { return Codegen.optional(this.label); } /** * Resource location * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return Resource location * */ public Output location() { return this.location; } /** * The name of the resource * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return The name of the resource * */ public Output name() { return this.name; } /** * Azure lifecycle management * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return Azure lifecycle management * */ public Output provisioningState() { return this.provisioningState; } /** * Size of backup * */ @Export(name="size", refs={Double.class}, tree="[0]") private Output size; /** * @return Size of backup * */ public Output size() { return this.size; } /** * Azure Resource Manager metadata containing createdBy and modifiedBy information. * */ @Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]") private Output systemData; /** * @return Azure Resource Manager metadata containing createdBy and modifiedBy information. * */ public Output systemData() { return this.systemData; } /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" * */ public Output type() { return this.type; } /** * Manual backup an already existing snapshot. This will always be false for scheduled backups and true/false for manual backups * */ @Export(name="useExistingSnapshot", refs={Boolean.class}, tree="[0]") private Output useExistingSnapshot; /** * @return Manual backup an already existing snapshot. This will always be false for scheduled backups and true/false for manual backups * */ public Output> useExistingSnapshot() { return Codegen.optional(this.useExistingSnapshot); } /** * Volume name * */ @Export(name="volumeName", refs={String.class}, tree="[0]") private Output volumeName; /** * @return Volume name * */ public Output volumeName() { return this.volumeName; } /** * * @param name The _unique_ name of the resulting resource. */ public Backup(java.lang.String name) { this(name, BackupArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public Backup(java.lang.String name, BackupArgs 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 Backup(java.lang.String name, BackupArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:netapp:Backup", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private Backup(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:netapp:Backup", name, null, makeResourceOptions(options, id), false); } private static BackupArgs makeArgs(BackupArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? BackupArgs.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()) .aliases(List.of( Output.of(Alias.builder().type("azure-native:netapp/v20200501:Backup").build()), Output.of(Alias.builder().type("azure-native:netapp/v20200601:Backup").build()), Output.of(Alias.builder().type("azure-native:netapp/v20200701:Backup").build()), Output.of(Alias.builder().type("azure-native:netapp/v20200801:Backup").build()), Output.of(Alias.builder().type("azure-native:netapp/v20200901:Backup").build()), Output.of(Alias.builder().type("azure-native:netapp/v20201101:Backup").build()), Output.of(Alias.builder().type("azure-native:netapp/v20201201:Backup").build()), Output.of(Alias.builder().type("azure-native:netapp/v20210201:Backup").build()), Output.of(Alias.builder().type("azure-native:netapp/v20210401:Backup").build()), Output.of(Alias.builder().type("azure-native:netapp/v20210401preview:Backup").build()), Output.of(Alias.builder().type("azure-native:netapp/v20210601:Backup").build()), Output.of(Alias.builder().type("azure-native:netapp/v20210801:Backup").build()), Output.of(Alias.builder().type("azure-native:netapp/v20211001:Backup").build()), Output.of(Alias.builder().type("azure-native:netapp/v20220101:Backup").build()), Output.of(Alias.builder().type("azure-native:netapp/v20220301:Backup").build()), Output.of(Alias.builder().type("azure-native:netapp/v20220501:Backup").build()), Output.of(Alias.builder().type("azure-native:netapp/v20220901:Backup").build()), Output.of(Alias.builder().type("azure-native:netapp/v20221101:Backup").build()) )) .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 options Optional settings to control the behavior of the CustomResource. */ public static Backup get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Backup(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy