Class DiskRestorePointProperties
java.lang.Object
com.azure.resourcemanager.compute.fluent.models.DiskRestorePointProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DiskRestorePointProperties>
public final class DiskRestorePointProperties
extends Object
implements com.azure.json.JsonSerializable<DiskRestorePointProperties>
Properties of an incremental disk restore point.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DiskRestorePointProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the completionPercent property: Percentage complete for the background copy of disk restore point when source resource is from a different region.Get the diskAccessId property: ARM id of the DiskAccess resource for using private endpoints on disks.Get the encryption property: Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.familyId()Get the familyId property: id of the backing snapshot's MIS family.static DiskRestorePointPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DiskRestorePointProperties from the JsonReader.Get the hyperVGeneration property: The hypervisor generation of the Virtual Machine.Get the logicalSectorSize property: Logical sector size in bytes for disk restore points of UltraSSD_LRS and PremiumV2_LRS disks.Get the networkAccessPolicy property: Policy for accessing the disk via network.osType()Get the osType property: The Operating System type.Get the publicNetworkAccess property: Policy for controlling export on the disk.Get the purchasePlan property: Purchase plan information for the the image from which the OS disk was created.Get the replicationState property: Replication state of disk restore point when source resource is from a different region.Get the securityProfile property: Contains the security related information for the resource.Get the sourceResourceId property: arm id of source disk or source disk restore point.Get the sourceResourceLocation property: Location of source disk or source disk restore point when source resource is from a different region.Get the sourceUniqueId property: unique incarnation id of the source disk.Get the supportedCapabilities property: List of supported capabilities for the image from which the OS disk was created.Get the supportsHibernation property: Indicates the OS on a disk supports hibernation.Get the timeCreated property: The timestamp of restorePoint creation.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.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.withDiskAccessId(String diskAccessId) Set the diskAccessId property: ARM id of the DiskAccess resource for using private endpoints on disks.withHyperVGeneration(HyperVGeneration hyperVGeneration) Set the hyperVGeneration property: The hypervisor generation of the Virtual Machine.withNetworkAccessPolicy(NetworkAccessPolicy networkAccessPolicy) Set the networkAccessPolicy property: Policy for accessing the disk via network.withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) Set the publicNetworkAccess property: Policy for controlling export on the disk.withPurchasePlan(DiskPurchasePlan purchasePlan) Set the purchasePlan property: Purchase plan information for the the image from which the OS disk was created.withSecurityProfile(DiskSecurityProfile securityProfile) Set the securityProfile property: Contains the security related information for the resource.withSupportedCapabilities(SupportedCapabilities supportedCapabilities) Set the supportedCapabilities property: List of supported capabilities for the image from which the OS disk was created.withSupportsHibernation(Boolean supportsHibernation) Set the supportsHibernation property: Indicates the OS on a disk supports hibernation.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DiskRestorePointProperties
public DiskRestorePointProperties()Creates an instance of DiskRestorePointProperties class.
-
-
Method Details
-
timeCreated
Get the timeCreated property: The timestamp of restorePoint creation.- Returns:
- the timeCreated value.
-
sourceResourceId
Get the sourceResourceId property: arm id of source disk or source disk restore point.- Returns:
- the sourceResourceId value.
-
osType
Get the osType property: The Operating System type.- Returns:
- the osType value.
-
hyperVGeneration
Get the hyperVGeneration property: The hypervisor generation of the Virtual Machine. Applicable to OS disks only.- Returns:
- the hyperVGeneration value.
-
withHyperVGeneration
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
Get the purchasePlan property: Purchase plan information for the the image from which the OS disk was created.- Returns:
- the purchasePlan value.
-
withPurchasePlan
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
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
Get the familyId property: id of the backing snapshot's MIS family.- Returns:
- the familyId value.
-
sourceUniqueId
Get the sourceUniqueId property: unique incarnation id of the source disk.- Returns:
- the sourceUniqueId value.
-
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
Get the supportsHibernation property: Indicates the OS on a disk supports hibernation.- Returns:
- the supportsHibernation value.
-
withSupportsHibernation
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
Get the networkAccessPolicy property: Policy for accessing the disk via network.- Returns:
- the networkAccessPolicy value.
-
withNetworkAccessPolicy
Set the networkAccessPolicy property: Policy for accessing the disk via network.- Parameters:
networkAccessPolicy- the networkAccessPolicy value to set.- Returns:
- the DiskRestorePointProperties object itself.
-
publicNetworkAccess
Get the publicNetworkAccess property: Policy for controlling export on the disk.- Returns:
- the publicNetworkAccess value.
-
withPublicNetworkAccess
Set the publicNetworkAccess property: Policy for controlling export on the disk.- Parameters:
publicNetworkAccess- the publicNetworkAccess value to set.- Returns:
- the DiskRestorePointProperties object itself.
-
diskAccessId
Get the diskAccessId property: ARM id of the DiskAccess resource for using private endpoints on disks.- Returns:
- the diskAccessId value.
-
withDiskAccessId
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
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
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
Get the replicationState property: Replication state of disk restore point when source resource is from a different region.- Returns:
- the replicationState value.
-
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
Get the securityProfile property: Contains the security related information for the resource.- Returns:
- the securityProfile value.
-
withSecurityProfile
Set the securityProfile property: Contains the security related information for the resource.- Parameters:
securityProfile- the securityProfile value to set.- Returns:
- the DiskRestorePointProperties object itself.
-
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.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DiskRestorePointProperties>- Throws:
IOException
-
fromJson
public static DiskRestorePointProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DiskRestorePointProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DiskRestorePointProperties 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 DiskRestorePointProperties.
-