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

com.azure.resourcemanager.compute.models.DiskState Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure Compute Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt

There is a newer version: 2.44.0
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.compute.models;

import com.azure.core.util.ExpandableStringEnum;
import java.util.Collection;

/**
 * This enumerates the possible state of the disk.
 */
public final class DiskState extends ExpandableStringEnum {
    /**
     * Static value Unattached for DiskState.
     */
    public static final DiskState UNATTACHED = fromString("Unattached");

    /**
     * Static value Attached for DiskState.
     */
    public static final DiskState ATTACHED = fromString("Attached");

    /**
     * Static value Reserved for DiskState.
     */
    public static final DiskState RESERVED = fromString("Reserved");

    /**
     * Static value Frozen for DiskState.
     */
    public static final DiskState FROZEN = fromString("Frozen");

    /**
     * Static value ActiveSAS for DiskState.
     */
    public static final DiskState ACTIVE_SAS = fromString("ActiveSAS");

    /**
     * Static value ActiveSASFrozen for DiskState.
     */
    public static final DiskState ACTIVE_SASFROZEN = fromString("ActiveSASFrozen");

    /**
     * Static value ReadyToUpload for DiskState.
     */
    public static final DiskState READY_TO_UPLOAD = fromString("ReadyToUpload");

    /**
     * Static value ActiveUpload for DiskState.
     */
    public static final DiskState ACTIVE_UPLOAD = fromString("ActiveUpload");

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy