com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryMode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-recoveryservicesbackup Show documentation
Show all versions of azure-resourcemanager-recoveryservicesbackup Show documentation
This package contains Microsoft Azure SDK for RecoveryServicesBackup Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Open API 2.0 Specs for Azure RecoveryServices Backup service. Package tag package-2024-04.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.recoveryservicesbackup.models;
import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
* Defines whether the current recovery mode is file restore or database restore.
*/
public final class RecoveryMode extends ExpandableStringEnum {
/**
* Static value Invalid for RecoveryMode.
*/
public static final RecoveryMode INVALID = fromString("Invalid");
/**
* Static value FileRecovery for RecoveryMode.
*/
public static final RecoveryMode FILE_RECOVERY = fromString("FileRecovery");
/**
* Static value WorkloadRecovery for RecoveryMode.
*/
public static final RecoveryMode WORKLOAD_RECOVERY = fromString("WorkloadRecovery");
/**
* Static value SnapshotAttach for RecoveryMode.
*/
public static final RecoveryMode SNAPSHOT_ATTACH = fromString("SnapshotAttach");
/**
* Static value RecoveryUsingSnapshot for RecoveryMode.
*/
public static final RecoveryMode RECOVERY_USING_SNAPSHOT = fromString("RecoveryUsingSnapshot");
/**
* Static value SnapshotAttachAndRecover for RecoveryMode.
*/
public static final RecoveryMode SNAPSHOT_ATTACH_AND_RECOVER = fromString("SnapshotAttachAndRecover");
/**
* Creates a new instance of RecoveryMode value.
*
* @deprecated Use the {@link #fromString(String)} factory method.
*/
@Deprecated
public RecoveryMode() {
}
/**
* Creates or finds a RecoveryMode from its string representation.
*
* @param name a name to look for.
* @return the corresponding RecoveryMode.
*/
@JsonCreator
public static RecoveryMode fromString(String name) {
return fromString(name, RecoveryMode.class);
}
/**
* Gets known RecoveryMode values.
*
* @return known RecoveryMode values.
*/
public static Collection values() {
return values(RecoveryMode.class);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy