Class StorageProfile

java.lang.Object
com.azure.resourcemanager.hybridnetwork.models.StorageProfile

public final class StorageProfile extends Object
Specifies the storage settings for the virtual machine disks.
  • Constructor Details

    • StorageProfile

      public StorageProfile()
      Creates an instance of StorageProfile class.
  • Method Details

    • imageReference

      public ImageReference imageReference()
      Get the imageReference property: The image reference properties.
      Returns:
      the imageReference value.
    • withImageReference

      public StorageProfile withImageReference(ImageReference imageReference)
      Set the imageReference property: The image reference properties.
      Parameters:
      imageReference - the imageReference value to set.
      Returns:
      the StorageProfile object itself.
    • osDisk

      public OsDisk osDisk()
      Get the osDisk property: Specifies information about the operating system disk used by the virtual machine.
      Returns:
      the osDisk value.
    • withOsDisk

      public StorageProfile withOsDisk(OsDisk osDisk)
      Set the osDisk property: Specifies information about the operating system disk used by the virtual machine.
      Parameters:
      osDisk - the osDisk value to set.
      Returns:
      the StorageProfile object itself.
    • dataDisks

      public List<DataDisk> dataDisks()
      Get the dataDisks property: Specifies the parameters that are used to add a data disk to a virtual machine.
      Returns:
      the dataDisks value.
    • withDataDisks

      public StorageProfile withDataDisks(List<DataDisk> dataDisks)
      Set the dataDisks property: Specifies the parameters that are used to add a data disk to a virtual machine.
      Parameters:
      dataDisks - the dataDisks value to set.
      Returns:
      the StorageProfile object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.