다음을 통해 공유


DiskRestorePointInner Class

public final class DiskRestorePointInner
extends ProxyOnlyResource

Properties of disk restore point.

Constructor Summary

Constructor Description
DiskRestorePointInner()

Creates an instance of DiskRestorePointInner class.

Method Summary

Modifier and Type Method and Description
Float completionPercent()

Get the completionPercent property: Percentage complete for the background copy of disk restore point when source resource is from a different region.

String diskAccessId()

Get the diskAccessId property: ARM id of the DiskAccess resource for using private endpoints on disks.

Encryption encryption()

Get the encryption property: Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.

String familyId()

Get the familyId property: id of the backing snapshot's MIS family.

static DiskRestorePointInner fromJson(JsonReader jsonReader)

Reads an instance of DiskRestorePointInner from the JsonReader.

HyperVGeneration hyperVGeneration()

Get the hyperVGeneration property: The hypervisor generation of the Virtual Machine.

String id()

Get the id property: Resource Id.

Integer logicalSectorSize()

Get the logicalSectorSize property: Logical sector size in bytes for disk restore points of UltraSSD_LRS and PremiumV2_LRS disks.

String name()

Get the name property: Resource name.

NetworkAccessPolicy networkAccessPolicy()

Get the networkAccessPolicy property: Policy for accessing the disk via network.

OperatingSystemTypes osType()

Get the osType property: The Operating System type.

PublicNetworkAccess publicNetworkAccess()

Get the publicNetworkAccess property: Policy for controlling export on the disk.

PurchasePlanAutoGenerated purchasePlan()

Get the purchasePlan property: Purchase plan information for the the image from which the OS disk was created.

String replicationState()

Get the replicationState property: Replication state of disk restore point when source resource is from a different region.

DiskSecurityProfile securityProfile()

Get the securityProfile property: Contains the security related information for the resource.

String sourceResourceId()

Get the sourceResourceId property: arm id of source disk or source disk restore point.

String sourceResourceLocation()

Get the sourceResourceLocation property: Location of source disk or source disk restore point when source resource is from a different region.

String sourceUniqueId()

Get the sourceUniqueId property: unique incarnation id of the source disk.

SupportedCapabilities supportedCapabilities()

Get the supportedCapabilities property: List of supported capabilities for the image from which the OS disk was created.

Boolean supportsHibernation()

Get the supportsHibernation property: Indicates the OS on a disk supports hibernation.

OffsetDateTime timeCreated()

Get the timeCreated property: The timestamp of restorePoint creation.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Resource type.

void validate()

Validates the instance.

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.

DiskRestorePointInner withDiskAccessId(String diskAccessId)

Set the diskAccessId property: ARM id of the DiskAccess resource for using private endpoints on disks.

DiskRestorePointInner withHyperVGeneration(HyperVGeneration hyperVGeneration)

Set the hyperVGeneration property: The hypervisor generation of the Virtual Machine.

DiskRestorePointInner withNetworkAccessPolicy(NetworkAccessPolicy networkAccessPolicy)

Set the networkAccessPolicy property: Policy for accessing the disk via network.

DiskRestorePointInner withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess)

Set the publicNetworkAccess property: Policy for controlling export on the disk.

DiskRestorePointInner withPurchasePlan(PurchasePlanAutoGenerated purchasePlan)

Set the purchasePlan property: Purchase plan information for the the image from which the OS disk was created.

DiskRestorePointInner withSecurityProfile(DiskSecurityProfile securityProfile)

Set the securityProfile property: Contains the security related information for the resource.

DiskRestorePointInner withSupportedCapabilities(SupportedCapabilities supportedCapabilities)

Set the supportedCapabilities property: List of supported capabilities for the image from which the OS disk was created.

DiskRestorePointInner withSupportsHibernation(Boolean supportsHibernation)

Set the supportsHibernation property: Indicates the OS on a disk supports hibernation.

Methods inherited from ProxyOnlyResource

Methods inherited from java.lang.Object

Constructor Details

DiskRestorePointInner

public DiskRestorePointInner()

Creates an instance of DiskRestorePointInner class.

Method Details

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.

diskAccessId

public String diskAccessId()

Get the diskAccessId property: ARM id of the DiskAccess resource for using private endpoints on disks.

Returns:

the diskAccessId 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.

familyId

public String familyId()

Get the familyId property: id of the backing snapshot's MIS family.

Returns:

the familyId value.

fromJson

public static DiskRestorePointInner fromJson(JsonReader jsonReader)

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.

hyperVGeneration

public HyperVGeneration hyperVGeneration()

Get the hyperVGeneration property: The hypervisor generation of the Virtual Machine. Applicable to OS disks only.

Returns:

the hyperVGeneration value.

id

public String id()

Get the id property: Resource Id.

Overrides:

DiskRestorePointInner.id()

Returns:

the id value.

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.

name

public String name()

Get the name property: Resource name.

Overrides:

DiskRestorePointInner.name()

Returns:

the name value.

networkAccessPolicy

public NetworkAccessPolicy networkAccessPolicy()

Get the networkAccessPolicy property: Policy for accessing the disk via network.

Returns:

the networkAccessPolicy value.

osType

public OperatingSystemTypes osType()

Get the osType property: The Operating System type.

Returns:

the osType value.

publicNetworkAccess

public PublicNetworkAccess publicNetworkAccess()

Get the publicNetworkAccess property: Policy for controlling export on the disk.

Returns:

the publicNetworkAccess value.

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.

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.

securityProfile

public DiskSecurityProfile securityProfile()

Get the securityProfile property: Contains the security related information for the resource.

Returns:

the securityProfile value.

sourceResourceId

public String sourceResourceId()

Get the sourceResourceId property: arm id of source disk or source disk restore point.

Returns:

the sourceResourceId 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.

sourceUniqueId

public String sourceUniqueId()

Get the sourceUniqueId property: unique incarnation id of the source disk.

Returns:

the sourceUniqueId value.

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.

supportsHibernation

public Boolean supportsHibernation()

Get the supportsHibernation property: Indicates the OS on a disk supports hibernation.

Returns:

the supportsHibernation value.

timeCreated

public OffsetDateTime timeCreated()

Get the timeCreated property: The timestamp of restorePoint creation.

Returns:

the timeCreated value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DiskRestorePointInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Resource type.

Overrides:

DiskRestorePointInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

DiskRestorePointInner.validate()

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.

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.

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.

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.

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.

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.

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.

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.

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.

Applies to