Class DiskRestorePointInner

java.lang.Object
com.azure.resourcemanager.compute.models.ProxyOnlyResource
com.azure.resourcemanager.compute.fluent.models.DiskRestorePointInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<ProxyOnlyResource>

public final class DiskRestorePointInner extends ProxyOnlyResource
Properties of disk restore point.
  • Constructor Details

    • DiskRestorePointInner

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

    • type

      public String type()
      Get the type property: Resource type.
      Overrides:
      type in class ProxyOnlyResource
      Returns:
      the type value.
    • name

      public String name()
      Get the name property: Resource name.
      Overrides:
      name in class ProxyOnlyResource
      Returns:
      the name value.
    • id

      public String id()
      Get the id property: Resource Id.
      Overrides:
      id in class ProxyOnlyResource
      Returns:
      the id value.
    • timeCreated

      public OffsetDateTime timeCreated()
      Get the timeCreated property: The timestamp of restorePoint creation.
      Returns:
      the timeCreated value.
    • sourceResourceId

      public String sourceResourceId()
      Get the sourceResourceId property: arm id of source disk or source disk restore point.
      Returns:
      the sourceResourceId value.
    • osType

      public OperatingSystemTypes osType()
      Get the osType property: The Operating System type.
      Returns:
      the osType value.
    • 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 DiskRestorePointInner 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 DiskRestorePointInner object itself.
    • purchasePlan

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

      public DiskRestorePointInner withPurchasePlan(PurchasePlanAutoGenerated purchasePlan)
      Set the purchasePlan property: Purchase plan information for the the image from which the OS disk was created.
      Parameters:
      purchasePlan - the purchasePlan value to set.
      Returns:
      the DiskRestorePointInner 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 DiskRestorePointInner 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 DiskRestorePointInner object itself.
    • familyId

      public String familyId()
      Get the familyId property: id of the backing snapshot's MIS family.
      Returns:
      the familyId value.
    • sourceUniqueId

      public String sourceUniqueId()
      Get the sourceUniqueId property: unique incarnation id of the source disk.
      Returns:
      the sourceUniqueId value.
    • 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.
    • supportsHibernation

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

      public DiskRestorePointInner withSupportsHibernation(Boolean supportsHibernation)
      Set the supportsHibernation property: Indicates the OS on a disk supports hibernation.
      Parameters:
      supportsHibernation - the supportsHibernation value to set.
      Returns:
      the DiskRestorePointInner object itself.
    • networkAccessPolicy

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

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

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

      public DiskRestorePointInner withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess)
      Set the publicNetworkAccess property: Policy for controlling export on the disk.
      Parameters:
      publicNetworkAccess - the publicNetworkAccess value to set.
      Returns:
      the DiskRestorePointInner 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 DiskRestorePointInner 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 DiskRestorePointInner object itself.
    • completionPercent

      public Float completionPercent()
      Get the completionPercent property: Percentage complete for the background copy of disk restore point when source resource is from a different region.
      Returns:
      the completionPercent value.
    • withCompletionPercent

      public DiskRestorePointInner withCompletionPercent(Float completionPercent)
      Set the completionPercent property: Percentage complete for the background copy of disk restore point when source resource is from a different region.
      Parameters:
      completionPercent - the completionPercent value to set.
      Returns:
      the DiskRestorePointInner object itself.
    • replicationState

      public String replicationState()
      Get the replicationState property: Replication state of disk restore point when source resource is from a different region.
      Returns:
      the replicationState value.
    • sourceResourceLocation

      public String sourceResourceLocation()
      Get the sourceResourceLocation property: Location of source disk or source disk restore point when source resource is from a different region.
      Returns:
      the sourceResourceLocation value.
    • securityProfile

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

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

      public Integer logicalSectorSize()
      Get the logicalSectorSize property: Logical sector size in bytes for disk restore points of UltraSSD_LRS and PremiumV2_LRS disks. Supported values are 512 and 4096. 4096 is the default.
      Returns:
      the logicalSectorSize value.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class ProxyOnlyResource
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ProxyOnlyResource>
      Overrides:
      toJson in class ProxyOnlyResource
      Throws:
      IOException
    • fromJson

      public static DiskRestorePointInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of DiskRestorePointInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of DiskRestorePointInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the DiskRestorePointInner.