Class DiskRestorePointProperties
- java.lang.Object
-
- com.azure.resourcemanager.compute.fluent.models.DiskRestorePointProperties
-
public final class DiskRestorePointProperties extends Object
Properties of an incremental disk restore point.
-
-
Constructor Summary
Constructors Constructor Description DiskRestorePointProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FloatcompletionPercent()Get the completionPercent property: Percentage complete for the background copy of disk restore point when source resource is from a different region.StringdiskAccessId()Get the diskAccessId property: ARM id of the DiskAccess resource for using private endpoints on disks.Encryptionencryption()Get the encryption property: Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.StringfamilyId()Get the familyId property: id of the backing snapshot's MIS family.HyperVGenerationhyperVGeneration()Get the hyperVGeneration property: The hypervisor generation of the Virtual Machine.NetworkAccessPolicynetworkAccessPolicy()Get the networkAccessPolicy property: Policy for accessing the disk via network.OperatingSystemTypesosType()Get the osType property: The Operating System type.PublicNetworkAccesspublicNetworkAccess()Get the publicNetworkAccess property: Policy for controlling export on the disk.PurchasePlanAutoGeneratedpurchasePlan()Get the purchasePlan property: Purchase plan information for the the image from which the OS disk was created.StringreplicationState()Get the replicationState property: Replication state of disk restore point when source resource is from a different region.StringsourceResourceId()Get the sourceResourceId property: arm id of source disk or source disk restore point.StringsourceResourceLocation()Get the sourceResourceLocation property: Location of source disk or source disk restore point when source resource is from a different region.StringsourceUniqueId()Get the sourceUniqueId property: unique incarnation id of the source disk.SupportedCapabilitiessupportedCapabilities()Get the supportedCapabilities property: List of supported capabilities for the image from which the OS disk was created.BooleansupportsHibernation()Get the supportsHibernation property: Indicates the OS on a disk supports hibernation.OffsetDateTimetimeCreated()Get the timeCreated property: The timestamp of restorePoint creation.voidvalidate()Validates the instance.DiskRestorePointPropertieswithCompletionPercent(Float completionPercent)Set the completionPercent property: Percentage complete for the background copy of disk restore point when source resource is from a different region.DiskRestorePointPropertieswithDiskAccessId(String diskAccessId)Set the diskAccessId property: ARM id of the DiskAccess resource for using private endpoints on disks.DiskRestorePointPropertieswithHyperVGeneration(HyperVGeneration hyperVGeneration)Set the hyperVGeneration property: The hypervisor generation of the Virtual Machine.DiskRestorePointPropertieswithNetworkAccessPolicy(NetworkAccessPolicy networkAccessPolicy)Set the networkAccessPolicy property: Policy for accessing the disk via network.DiskRestorePointPropertieswithPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess)Set the publicNetworkAccess property: Policy for controlling export on the disk.DiskRestorePointPropertieswithPurchasePlan(PurchasePlanAutoGenerated purchasePlan)Set the purchasePlan property: Purchase plan information for the the image from which the OS disk was created.DiskRestorePointPropertieswithSupportedCapabilities(SupportedCapabilities supportedCapabilities)Set the supportedCapabilities property: List of supported capabilities for the image from which the OS disk was created.DiskRestorePointPropertieswithSupportsHibernation(Boolean supportsHibernation)Set the supportsHibernation property: Indicates the OS on a disk supports hibernation.
-
-
-
Method Detail
-
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 DiskRestorePointProperties 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 DiskRestorePointProperties 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 DiskRestorePointProperties 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 DiskRestorePointProperties 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 DiskRestorePointProperties 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 DiskRestorePointProperties 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 DiskRestorePointProperties withSupportsHibernation(Boolean supportsHibernation)
Set the supportsHibernation property: Indicates the OS on a disk supports hibernation.- Parameters:
supportsHibernation- the supportsHibernation value to set.- Returns:
- the DiskRestorePointProperties object itself.
-
networkAccessPolicy
public NetworkAccessPolicy networkAccessPolicy()
Get the networkAccessPolicy property: Policy for accessing the disk via network.- Returns:
- the networkAccessPolicy value.
-
withNetworkAccessPolicy
public DiskRestorePointProperties withNetworkAccessPolicy(NetworkAccessPolicy networkAccessPolicy)
Set the networkAccessPolicy property: Policy for accessing the disk via network.- Parameters:
networkAccessPolicy- the networkAccessPolicy value to set.- Returns:
- the DiskRestorePointProperties object itself.
-
publicNetworkAccess
public PublicNetworkAccess publicNetworkAccess()
Get the publicNetworkAccess property: Policy for controlling export on the disk.- Returns:
- the publicNetworkAccess value.
-
withPublicNetworkAccess
public DiskRestorePointProperties withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess)
Set the publicNetworkAccess property: Policy for controlling export on the disk.- Parameters:
publicNetworkAccess- the publicNetworkAccess value to set.- Returns:
- the DiskRestorePointProperties 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 DiskRestorePointProperties 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 DiskRestorePointProperties 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 DiskRestorePointProperties 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 DiskRestorePointProperties 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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-