
com.azure.resourcemanager.netapp.models.Backup Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-netapp Show documentation
Show all versions of azure-resourcemanager-netapp Show documentation
This package contains Microsoft Azure SDK for NetAppFiles Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-preview-2024-07-01-preview.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.netapp.models;
import com.azure.core.management.Region;
import com.azure.core.util.Context;
import com.azure.resourcemanager.netapp.fluent.models.BackupInner;
import java.time.OffsetDateTime;
import java.util.Map;
/** An immutable client-side representation of Backup. */
public interface Backup {
/**
* Gets the id property: Fully qualified resource Id for the resource.
*
* @return the id value.
*/
String id();
/**
* Gets the name property: The name of the resource.
*
* @return the name value.
*/
String name();
/**
* Gets the type property: The type of the resource.
*
* @return the type value.
*/
String type();
/**
* Gets the location property: Resource location.
*
* @return the location value.
*/
String location();
/**
* Gets the backupId property: UUID v4 used to identify the Backup.
*
* @return the backupId value.
*/
String backupId();
/**
* Gets the creationDate property: The creation date of the backup.
*
* @return the creationDate value.
*/
OffsetDateTime creationDate();
/**
* Gets the provisioningState property: Azure lifecycle management.
*
* @return the provisioningState value.
*/
String provisioningState();
/**
* Gets the size property: Size of backup.
*
* @return the size value.
*/
Long size();
/**
* Gets the label property: Label for backup.
*
* @return the label value.
*/
String label();
/**
* Gets the backupType property: Type of backup Manual or Scheduled.
*
* @return the backupType value.
*/
BackupType backupType();
/**
* Gets the failureReason property: Failure reason.
*
* @return the failureReason value.
*/
String failureReason();
/**
* Gets the volumeName property: Volume name.
*
* @return the volumeName value.
*/
String volumeName();
/**
* Gets the useExistingSnapshot property: Manual backup an already existing snapshot. This will always be false for
* scheduled backups and true/false for manual backups.
*
* @return the useExistingSnapshot value.
*/
Boolean useExistingSnapshot();
/**
* Gets the region of the resource.
*
* @return the region of the resource.
*/
Region region();
/**
* Gets the name of the resource region.
*
* @return the name of the resource region.
*/
String regionName();
/**
* Gets the inner com.azure.resourcemanager.netapp.fluent.models.BackupInner object.
*
* @return the inner object.
*/
BackupInner innerModel();
/** The entirety of the Backup definition. */
interface Definition
extends DefinitionStages.Blank,
DefinitionStages.WithLocation,
DefinitionStages.WithParentResource,
DefinitionStages.WithCreate {
}
/** The Backup definition stages. */
interface DefinitionStages {
/** The first stage of the Backup definition. */
interface Blank extends WithLocation {
}
/** The stage of the Backup definition allowing to specify location. */
interface WithLocation {
/**
* Specifies the region for the resource.
*
* @param location Resource location.
* @return the next definition stage.
*/
WithParentResource withRegion(Region location);
/**
* Specifies the region for the resource.
*
* @param location Resource location.
* @return the next definition stage.
*/
WithParentResource withRegion(String location);
}
/** The stage of the Backup definition allowing to specify parent resource. */
interface WithParentResource {
/**
* Specifies resourceGroupName, accountName, poolName, volumeName.
*
* @param resourceGroupName The name of the resource group.
* @param accountName The name of the NetApp account.
* @param poolName The name of the capacity pool.
* @param volumeName The name of the volume.
* @return the next definition stage.
*/
WithCreate withExistingVolume(
String resourceGroupName, String accountName, String poolName, String volumeName);
}
/**
* The stage of the Backup definition which contains all the minimum required properties for the resource to be
* created, but also allows for any other optional properties to be specified.
*/
interface WithCreate extends DefinitionStages.WithLabel, DefinitionStages.WithUseExistingSnapshot {
/**
* Executes the create request.
*
* @return the created resource.
*/
Backup create();
/**
* Executes the create request.
*
* @param context The context to associate with this operation.
* @return the created resource.
*/
Backup create(Context context);
}
/** The stage of the Backup definition allowing to specify label. */
interface WithLabel {
/**
* Specifies the label property: Label for backup.
*
* @param label Label for backup.
* @return the next definition stage.
*/
WithCreate withLabel(String label);
}
/** The stage of the Backup definition allowing to specify useExistingSnapshot. */
interface WithUseExistingSnapshot {
/**
* Specifies the useExistingSnapshot property: Manual backup an already existing snapshot. This will always
* be false for scheduled backups and true/false for manual backups.
*
* @param useExistingSnapshot Manual backup an already existing snapshot. This will always be false for
* scheduled backups and true/false for manual backups.
* @return the next definition stage.
*/
WithCreate withUseExistingSnapshot(Boolean useExistingSnapshot);
}
}
/**
* Begins update for the Backup resource.
*
* @return the stage of resource update.
*/
Backup.Update update();
/** The template for Backup update. */
interface Update extends UpdateStages.WithTags, UpdateStages.WithLabel, UpdateStages.WithUseExistingSnapshot {
/**
* Executes the update request.
*
* @return the updated resource.
*/
Backup apply();
/**
* Executes the update request.
*
* @param context The context to associate with this operation.
* @return the updated resource.
*/
Backup apply(Context context);
}
/** The Backup update stages. */
interface UpdateStages {
/** The stage of the Backup update allowing to specify tags. */
interface WithTags {
/**
* Specifies the tags property: Resource tags.
*
* @param tags Resource tags.
* @return the next definition stage.
*/
Update withTags(Map tags);
}
/** The stage of the Backup update allowing to specify label. */
interface WithLabel {
/**
* Specifies the label property: Label for backup.
*
* @param label Label for backup.
* @return the next definition stage.
*/
Update withLabel(String label);
}
/** The stage of the Backup update allowing to specify useExistingSnapshot. */
interface WithUseExistingSnapshot {
/**
* Specifies the useExistingSnapshot property: Manual backup an already existing snapshot. This will always
* be false for scheduled backups and true/false for manual backups.
*
* @param useExistingSnapshot Manual backup an already existing snapshot. This will always be false for
* scheduled backups and true/false for manual backups.
* @return the next definition stage.
*/
Update withUseExistingSnapshot(Boolean useExistingSnapshot);
}
}
/**
* Refreshes the resource to sync with Azure.
*
* @return the refreshed resource.
*/
Backup refresh();
/**
* Refreshes the resource to sync with Azure.
*
* @param context The context to associate with this operation.
* @return the refreshed resource.
*/
Backup refresh(Context context);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy