Class SnapshotUpdate

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

public class SnapshotUpdate extends Object
Snapshot update resource.
  • Constructor Details

    • SnapshotUpdate

      public SnapshotUpdate()
  • Method Details

    • osType

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

      public SnapshotUpdate withOsType(OperatingSystemTypes osType)
      Set the Operating System type. Possible values include: 'Windows', 'Linux'.
      Parameters:
      osType - the osType value to set
      Returns:
      the SnapshotUpdate 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 SnapshotUpdate 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 SnapshotUpdate 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 SnapshotUpdate 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 SnapshotUpdate 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 SnapshotUpdate 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 SnapshotUpdate object itself.
    • networkAccessPolicy

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

      public SnapshotUpdate withNetworkAccessPolicy(NetworkAccessPolicy networkAccessPolicy)
      Set possible values include: 'AllowAll', 'AllowPrivate', 'DenyAll'.
      Parameters:
      networkAccessPolicy - the networkAccessPolicy value to set
      Returns:
      the SnapshotUpdate 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 SnapshotUpdate 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 SnapshotUpdate object itself.
    • tags

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

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

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

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