Class SnapshotInner


  • public final class SnapshotInner
    extends com.azure.core.management.Resource
    Snapshot resource.
    • Constructor Detail

      • SnapshotInner

        public SnapshotInner()
    • Method Detail

      • managedBy

        public String managedBy()
        Get the managedBy property: Unused. Always Null.
        Returns:
        the managedBy value.
      • 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 SnapshotInner 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 SnapshotInner object itself.
      • extendedLocation

        public ExtendedLocation extendedLocation()
        Get the extendedLocation property: The extended location where the snapshot will be created. Extended location cannot be changed.
        Returns:
        the extendedLocation value.
      • withExtendedLocation

        public SnapshotInner withExtendedLocation​(ExtendedLocation extendedLocation)
        Set the extendedLocation property: The extended location where the snapshot will be created. Extended location cannot be changed.
        Parameters:
        extendedLocation - the extendedLocation value to set.
        Returns:
        the SnapshotInner object itself.
      • withLocation

        public SnapshotInner withLocation​(String location)
        Overrides:
        withLocation in class com.azure.core.management.Resource
      • withTags

        public SnapshotInner withTags​(Map<String,​String> tags)
        Overrides:
        withTags in class com.azure.core.management.Resource
      • timeCreated

        public OffsetDateTime timeCreated()
        Get the timeCreated property: The time when the snapshot was created.
        Returns:
        the timeCreated value.
      • osType

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

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

        public HyperVGeneration hyperVGeneration()
        Get the hyperVGeneration property: The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
        Returns:
        the hyperVGeneration value.
      • withHyperVGeneration

        public SnapshotInner withHyperVGeneration​(HyperVGeneration hyperVGeneration)
        Set the hyperVGeneration property: The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
        Parameters:
        hyperVGeneration - the hyperVGeneration value to set.
        Returns:
        the SnapshotInner object itself.
      • purchasePlan

        public PurchasePlanAutoGenerated purchasePlan()
        Get the purchasePlan property: Purchase plan information for the image from which the source disk for the snapshot was originally created.
        Returns:
        the purchasePlan value.
      • withPurchasePlan

        public SnapshotInner withPurchasePlan​(PurchasePlanAutoGenerated purchasePlan)
        Set the purchasePlan property: Purchase plan information for the image from which the source disk for the snapshot was originally created.
        Parameters:
        purchasePlan - the purchasePlan value to set.
        Returns:
        the SnapshotInner object itself.
      • supportedCapabilities

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

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

        public CreationData creationData()
        Get the creationData property: Disk source information. CreationData information cannot be changed after the disk has been created.
        Returns:
        the creationData value.
      • withCreationData

        public SnapshotInner withCreationData​(CreationData creationData)
        Set the creationData property: Disk source information. CreationData information cannot be changed after the disk has been created.
        Parameters:
        creationData - the creationData value to set.
        Returns:
        the SnapshotInner 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 SnapshotInner 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 SnapshotInner object itself.
      • diskSizeBytes

        public Long diskSizeBytes()
        Get the diskSizeBytes property: The size of the disk in bytes. This field is read only.
        Returns:
        the diskSizeBytes value.
      • diskState

        public DiskState diskState()
        Get the diskState property: The state of the snapshot.
        Returns:
        the diskState value.
      • uniqueId

        public String uniqueId()
        Get the uniqueId property: Unique Guid identifying the resource.
        Returns:
        the uniqueId value.
      • 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 SnapshotInner 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 SnapshotInner object itself.
      • provisioningState

        public String provisioningState()
        Get the provisioningState property: The disk provisioning state.
        Returns:
        the provisioningState value.
      • incremental

        public Boolean incremental()
        Get the incremental property: Whether a snapshot is incremental. Incremental snapshots on the same disk occupy less space than full snapshots and can be diffed.
        Returns:
        the incremental value.
      • withIncremental

        public SnapshotInner withIncremental​(Boolean incremental)
        Set the incremental property: Whether a snapshot is incremental. Incremental snapshots on the same disk occupy less space than full snapshots and can be diffed.
        Parameters:
        incremental - the incremental value to set.
        Returns:
        the SnapshotInner 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 SnapshotInner 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 SnapshotInner object itself.
      • networkAccessPolicy

        public NetworkAccessPolicy networkAccessPolicy()
        Get the networkAccessPolicy property: Policy for accessing the disk via network.
        Returns:
        the networkAccessPolicy value.
      • withNetworkAccessPolicy

        public SnapshotInner withNetworkAccessPolicy​(NetworkAccessPolicy networkAccessPolicy)
        Set the networkAccessPolicy property: Policy for accessing the disk via network.
        Parameters:
        networkAccessPolicy - the networkAccessPolicy value to set.
        Returns:
        the SnapshotInner 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 SnapshotInner 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 SnapshotInner object itself.
      • securityProfile

        public DiskSecurityProfile securityProfile()
        Get the securityProfile property: Contains the security related information for the resource.
        Returns:
        the securityProfile value.
      • withSecurityProfile

        public SnapshotInner withSecurityProfile​(DiskSecurityProfile securityProfile)
        Set the securityProfile property: Contains the security related information for the resource.
        Parameters:
        securityProfile - the securityProfile value to set.
        Returns:
        the SnapshotInner object itself.
      • supportsHibernation

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

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

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

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

        public Float completionPercent()
        Get the completionPercent property: Percentage complete for the background copy when a resource is created via the CopyStart operation.
        Returns:
        the completionPercent value.
      • withCompletionPercent

        public SnapshotInner withCompletionPercent​(Float completionPercent)
        Set the completionPercent property: Percentage complete for the background copy when a resource is created via the CopyStart operation.
        Parameters:
        completionPercent - the completionPercent value to set.
        Returns:
        the SnapshotInner 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 SnapshotInner 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 SnapshotInner object itself.
      • validate

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