Class DiskState

java.lang.Object
com.azure.core.util.ExpandableStringEnum<DiskState>
com.azure.resourcemanager.compute.models.DiskState
All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>

public final class DiskState extends com.azure.core.util.ExpandableStringEnum<DiskState>
This enumerates the possible state of the disk.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final DiskState
    The disk currently has an Active SAS Uri associated with it.
    static final DiskState
    The disk is attached to a VM in hibernated state and has an active SAS URI associated with it.
    static final DiskState
    A disk is created for upload and a write token has been issued for uploading to it.
    static final DiskState
    The disk is currently attached to a running VM.
    static final DiskState
    The disk is attached to a VM which is in hibernated state.
    static final DiskState
    A disk is ready to be created by upload by requesting a write token.
    static final DiskState
    The disk is attached to a stopped-deallocated VM.
    static final DiskState
    The disk is not being used and can be attached to a VM.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Use the fromString(String) factory method.
  • Method Summary

    Modifier and Type
    Method
    Description
    static DiskState
    Creates or finds a DiskState from its string representation.
    Gets known DiskState values.

    Methods inherited from class com.azure.core.util.ExpandableStringEnum

    equals, fromString, getValue, hashCode, toString, values

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • UNATTACHED

      public static final DiskState UNATTACHED
      The disk is not being used and can be attached to a VM.
    • ATTACHED

      public static final DiskState ATTACHED
      The disk is currently attached to a running VM.
    • RESERVED

      public static final DiskState RESERVED
      The disk is attached to a stopped-deallocated VM.
    • FROZEN

      public static final DiskState FROZEN
      The disk is attached to a VM which is in hibernated state.
    • ACTIVE_SAS

      public static final DiskState ACTIVE_SAS
      The disk currently has an Active SAS Uri associated with it.
    • ACTIVE_SASFROZEN

      public static final DiskState ACTIVE_SASFROZEN
      The disk is attached to a VM in hibernated state and has an active SAS URI associated with it.
    • READY_TO_UPLOAD

      public static final DiskState READY_TO_UPLOAD
      A disk is ready to be created by upload by requesting a write token.
    • ACTIVE_UPLOAD

      public static final DiskState ACTIVE_UPLOAD
      A disk is created for upload and a write token has been issued for uploading to it.
  • Constructor Details

  • Method Details

    • fromString

      public static DiskState fromString(String name)
      Creates or finds a DiskState from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding DiskState.
    • values

      public static Collection<DiskState> values()
      Gets known DiskState values.
      Returns:
      known DiskState values.