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

com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionState Maven / Gradle / Ivy

// 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;

/**
 * Backup state of this backup item.
 */
public final class ProtectionState extends ExpandableStringEnum {
    /**
     * Static value Invalid for ProtectionState.
     */
    public static final ProtectionState INVALID = fromString("Invalid");

    /**
     * Static value IRPending for ProtectionState.
     */
    public static final ProtectionState IRPENDING = fromString("IRPending");

    /**
     * Static value Protected for ProtectionState.
     */
    public static final ProtectionState PROTECTED = fromString("Protected");

    /**
     * Static value ProtectionError for ProtectionState.
     */
    public static final ProtectionState PROTECTION_ERROR = fromString("ProtectionError");

    /**
     * Static value ProtectionStopped for ProtectionState.
     */
    public static final ProtectionState PROTECTION_STOPPED = fromString("ProtectionStopped");

    /**
     * Static value ProtectionPaused for ProtectionState.
     */
    public static final ProtectionState PROTECTION_PAUSED = fromString("ProtectionPaused");

    /**
     * Static value BackupsSuspended for ProtectionState.
     */
    public static final ProtectionState BACKUPS_SUSPENDED = fromString("BackupsSuspended");

    /**
     * Creates a new instance of ProtectionState value.
     * 
     * @deprecated Use the {@link #fromString(String)} factory method.
     */
    @Deprecated
    public ProtectionState() {
    }

    /**
     * Creates or finds a ProtectionState from its string representation.
     * 
     * @param name a name to look for.
     * @return the corresponding ProtectionState.
     */
    @JsonCreator
    public static ProtectionState fromString(String name) {
        return fromString(name, ProtectionState.class);
    }

    /**
     * Gets known ProtectionState values.
     * 
     * @return known ProtectionState values.
     */
    public static Collection values() {
        return values(ProtectionState.class);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy