Class DiskUpdate

java.lang.Object
com.microsoft.azure.management.compute.DiskUpdate

public class DiskUpdate extends Object
Disk update resource.
  • Constructor Details

    • DiskUpdate

      public DiskUpdate()
  • Method Details

    • osType

      public OperatingSystemTypes osType()
      Get the Operating System type. Possible values include: 'Windows', 'Linux'.
      Returns:
      the osType value
    • withOsType

      public DiskUpdate withOsType(OperatingSystemTypes osType)
      Set the Operating System type. Possible values include: 'Windows', 'Linux'.
      Parameters:
      osType - the osType value to set
      Returns:
      the DiskUpdate object itself.
    • diskSizeGB

      public Integer diskSizeGB()
      Get if creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size.
      Returns:
      the diskSizeGB value
    • withDiskSizeGB

      public DiskUpdate withDiskSizeGB(Integer diskSizeGB)
      Set if creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size.
      Parameters:
      diskSizeGB - the diskSizeGB value to set
      Returns:
      the DiskUpdate object itself.
    • encryptionSettingsCollection

      public EncryptionSettingsCollection encryptionSettingsCollection()
      Get encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.
      Returns:
      the encryptionSettingsCollection value
    • withEncryptionSettingsCollection

      public DiskUpdate withEncryptionSettingsCollection(EncryptionSettingsCollection encryptionSettingsCollection)
      Set encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.
      Parameters:
      encryptionSettingsCollection - the encryptionSettingsCollection value to set
      Returns:
      the DiskUpdate object itself.
    • diskIOPSReadWrite

      public Long diskIOPSReadWrite()
      Get the number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes.
      Returns:
      the diskIOPSReadWrite value
    • withDiskIOPSReadWrite

      public DiskUpdate withDiskIOPSReadWrite(Long diskIOPSReadWrite)
      Set the number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes.
      Parameters:
      diskIOPSReadWrite - the diskIOPSReadWrite value to set
      Returns:
      the DiskUpdate object itself.
    • diskMBpsReadWrite

      public Long diskMBpsReadWrite()
      Get the bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.
      Returns:
      the diskMBpsReadWrite value
    • withDiskMBpsReadWrite

      public DiskUpdate withDiskMBpsReadWrite(Long diskMBpsReadWrite)
      Set the bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.
      Parameters:
      diskMBpsReadWrite - the diskMBpsReadWrite value to set
      Returns:
      the DiskUpdate object itself.
    • diskIOPSReadOnly

      public Long diskIOPSReadOnly()
      Get the total number of IOPS that will be allowed across all VMs mounting the shared disk as ReadOnly. One operation can transfer between 4k and 256k bytes.
      Returns:
      the diskIOPSReadOnly value
    • withDiskIOPSReadOnly

      public DiskUpdate withDiskIOPSReadOnly(Long diskIOPSReadOnly)
      Set the total number of IOPS that will be allowed across all VMs mounting the shared disk as ReadOnly. One operation can transfer between 4k and 256k bytes.
      Parameters:
      diskIOPSReadOnly - the diskIOPSReadOnly value to set
      Returns:
      the DiskUpdate object itself.
    • diskMBpsReadOnly

      public Long diskMBpsReadOnly()
      Get the total throughput (MBps) that will be allowed across all VMs mounting the shared disk as ReadOnly. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.
      Returns:
      the diskMBpsReadOnly value
    • withDiskMBpsReadOnly

      public DiskUpdate withDiskMBpsReadOnly(Long diskMBpsReadOnly)
      Set the total throughput (MBps) that will be allowed across all VMs mounting the shared disk as ReadOnly. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.
      Parameters:
      diskMBpsReadOnly - the diskMBpsReadOnly value to set
      Returns:
      the DiskUpdate object itself.
    • maxShares

      public Integer maxShares()
      Get the maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time.
      Returns:
      the maxShares value
    • withMaxShares

      public DiskUpdate withMaxShares(Integer maxShares)
      Set the maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time.
      Parameters:
      maxShares - the maxShares value to set
      Returns:
      the DiskUpdate object itself.
    • encryption

      public Encryption encryption()
      Get encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.
      Returns:
      the encryption value
    • withEncryption

      public DiskUpdate withEncryption(Encryption encryption)
      Set encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.
      Parameters:
      encryption - the encryption value to set
      Returns:
      the DiskUpdate object itself.
    • networkAccessPolicy

      public NetworkAccessPolicy networkAccessPolicy()
      Get possible values include: 'AllowAll', 'AllowPrivate', 'DenyAll'.
      Returns:
      the networkAccessPolicy value
    • withNetworkAccessPolicy

      public DiskUpdate withNetworkAccessPolicy(NetworkAccessPolicy networkAccessPolicy)
      Set possible values include: 'AllowAll', 'AllowPrivate', 'DenyAll'.
      Parameters:
      networkAccessPolicy - the networkAccessPolicy value to set
      Returns:
      the DiskUpdate object itself.
    • diskAccessId

      public String diskAccessId()
      Get aRM id of the DiskAccess resource for using private endpoints on disks.
      Returns:
      the diskAccessId value
    • withDiskAccessId

      public DiskUpdate withDiskAccessId(String diskAccessId)
      Set aRM id of the DiskAccess resource for using private endpoints on disks.
      Parameters:
      diskAccessId - the diskAccessId value to set
      Returns:
      the DiskUpdate object itself.
    • tier

      public String tier()
      Get performance tier of the disk (e.g, P4, S10) as described here: https://azure.microsoft.com/en-us/pricing/details/managed-disks/. Does not apply to Ultra disks.
      Returns:
      the tier value
    • withTier

      public DiskUpdate withTier(String tier)
      Set performance tier of the disk (e.g, P4, S10) as described here: https://azure.microsoft.com/en-us/pricing/details/managed-disks/. Does not apply to Ultra disks.
      Parameters:
      tier - the tier value to set
      Returns:
      the DiskUpdate object itself.
    • burstingEnabled

      public Boolean burstingEnabled()
      Get set to true to enable bursting beyond the provisioned performance target of the disk. Bursting is disabled by default. Does not apply to Ultra disks.
      Returns:
      the burstingEnabled value
    • withBurstingEnabled

      public DiskUpdate withBurstingEnabled(Boolean burstingEnabled)
      Set set to true to enable bursting beyond the provisioned performance target of the disk. Bursting is disabled by default. Does not apply to Ultra disks.
      Parameters:
      burstingEnabled - the burstingEnabled value to set
      Returns:
      the DiskUpdate object itself.
    • purchasePlan

      public PurchasePlan purchasePlan()
      Get purchase plan information to be added on the OS disk.
      Returns:
      the purchasePlan value
    • withPurchasePlan

      public DiskUpdate withPurchasePlan(PurchasePlan purchasePlan)
      Set purchase plan information to be added on the OS disk.
      Parameters:
      purchasePlan - the purchasePlan value to set
      Returns:
      the DiskUpdate object itself.
    • tags

      public Map<String,String> tags()
      Get resource tags.
      Returns:
      the tags value
    • withTags

      public DiskUpdate withTags(Map<String,String> tags)
      Set resource tags.
      Parameters:
      tags - the tags value to set
      Returns:
      the DiskUpdate object itself.
    • sku

      public DiskSku sku()
      Get the sku value.
      Returns:
      the sku value
    • withSku

      public DiskUpdate withSku(DiskSku sku)
      Set the sku value.
      Parameters:
      sku - the sku value to set
      Returns:
      the DiskUpdate object itself.