Class FileFormat

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

public final class FileFormat extends com.azure.core.util.ExpandableStringEnum<FileFormat>
Used to specify the file format when making request for SAS on a VHDX file format snapshot.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final FileFormat
    A VHD file is a disk image file in the Virtual Hard Disk file format.
    static final FileFormat
    A VHDX file is a disk image file in the Virtual Hard Disk v2 file format.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    static FileFormat
    Creates or finds a FileFormat from its string representation.
    Gets known FileFormat 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

    • VHD

      public static final FileFormat VHD
      A VHD file is a disk image file in the Virtual Hard Disk file format.
    • VHDX

      public static final FileFormat VHDX
      A VHDX file is a disk image file in the Virtual Hard Disk v2 file format.
  • Constructor Details

  • Method Details

    • fromString

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

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