Class SnapshotUpdate


  • public final class SnapshotUpdate
    extends Object
    Snapshot update resource.
    • Constructor Detail

      • SnapshotUpdate

        public SnapshotUpdate()
    • Method Detail

      • tags

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

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

        public SnapshotSku sku()
        Get the sku property: The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS. This is an optional parameter for incremental snapshot and the default behavior is the SKU will be set to the same sku as the previous snapshot.
        Returns:
        the sku value.
      • withSku

        public SnapshotUpdate withSku​(SnapshotSku sku)
        Set the sku property: The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS. This is an optional parameter for incremental snapshot and the default behavior is the SKU will be set to the same sku as the previous snapshot.
        Parameters:
        sku - the sku value to set.
        Returns:
        the SnapshotUpdate object itself.
      • osType

        public OperatingSystemTypes osType()
        Get the osType property: the Operating System type.
        Returns:
        the osType value.
      • withOsType

        public SnapshotUpdate withOsType​(OperatingSystemTypes osType)
        Set the osType property: the Operating System type.
        Parameters:
        osType - the osType value to set.
        Returns:
        the SnapshotUpdate object itself.
      • diskSizeGB

        public Integer diskSizeGB()
        Get the diskSizeGB property: 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 the diskSizeGB property: 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 the encryptionSettingsCollection property: 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 the encryptionSettingsCollection property: 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 the encryption property: 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 the encryption property: 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 the networkAccessPolicy property: Policy for accessing the disk via network.
        Returns:
        the networkAccessPolicy value.
      • withNetworkAccessPolicy

        public SnapshotUpdate withNetworkAccessPolicy​(NetworkAccessPolicy networkAccessPolicy)
        Set the networkAccessPolicy property: Policy for accessing the disk via network.
        Parameters:
        networkAccessPolicy - the networkAccessPolicy value to set.
        Returns:
        the SnapshotUpdate object itself.
      • diskAccessId

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

        public SnapshotUpdate withDiskAccessId​(String diskAccessId)
        Set the diskAccessId property: ARM id of the DiskAccess resource for using private endpoints on disks.
        Parameters:
        diskAccessId - the diskAccessId value to set.
        Returns:
        the SnapshotUpdate object itself.
      • supportsHibernation

        public Boolean supportsHibernation()
        Get the supportsHibernation property: Indicates the OS on a snapshot supports hibernation.
        Returns:
        the supportsHibernation value.
      • withSupportsHibernation

        public SnapshotUpdate withSupportsHibernation​(Boolean supportsHibernation)
        Set the supportsHibernation property: Indicates the OS on a snapshot supports hibernation.
        Parameters:
        supportsHibernation - the supportsHibernation value to set.
        Returns:
        the SnapshotUpdate object itself.
      • publicNetworkAccess

        public PublicNetworkAccess publicNetworkAccess()
        Get the publicNetworkAccess property: Policy for controlling export on the disk.
        Returns:
        the publicNetworkAccess value.
      • withPublicNetworkAccess

        public SnapshotUpdate withPublicNetworkAccess​(PublicNetworkAccess publicNetworkAccess)
        Set the publicNetworkAccess property: Policy for controlling export on the disk.
        Parameters:
        publicNetworkAccess - the publicNetworkAccess value to set.
        Returns:
        the SnapshotUpdate object itself.
      • dataAccessAuthMode

        public DataAccessAuthMode dataAccessAuthMode()
        Get the dataAccessAuthMode property: Additional authentication requirements when exporting or uploading to a disk or snapshot.
        Returns:
        the dataAccessAuthMode value.
      • withDataAccessAuthMode

        public SnapshotUpdate withDataAccessAuthMode​(DataAccessAuthMode dataAccessAuthMode)
        Set the dataAccessAuthMode property: Additional authentication requirements when exporting or uploading to a disk or snapshot.
        Parameters:
        dataAccessAuthMode - the dataAccessAuthMode value to set.
        Returns:
        the SnapshotUpdate object itself.
      • supportedCapabilities

        public SupportedCapabilities supportedCapabilities()
        Get the supportedCapabilities property: List of supported capabilities for the image from which the OS disk was created.
        Returns:
        the supportedCapabilities value.
      • withSupportedCapabilities

        public SnapshotUpdate withSupportedCapabilities​(SupportedCapabilities supportedCapabilities)
        Set the supportedCapabilities property: List of supported capabilities for the image from which the OS disk was created.
        Parameters:
        supportedCapabilities - the supportedCapabilities value to set.
        Returns:
        the SnapshotUpdate object itself.
      • validate

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