RestorePointSourceMetadata Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.RestorePointSourceMetadata

Implements

public final class RestorePointSourceMetadata
implements JsonSerializable<RestorePointSourceMetadata>

Describes the properties of the Virtual Machine for which the restore point was created. The properties provided are a subset and the snapshot of the overall Virtual Machine properties captured at the time of the restore point creation.

Constructor Summary

Constructor Description
RestorePointSourceMetadata()

Creates an instance of RestorePointSourceMetadata class.

Method Summary

Modifier and Type Method and Description
DiagnosticsProfile diagnosticsProfile()

Get the diagnosticsProfile property: Gets the diagnostics profile.

static RestorePointSourceMetadata fromJson(JsonReader jsonReader)

Reads an instance of RestorePointSourceMetadata from the JsonReader.

HardwareProfile hardwareProfile()

Get the hardwareProfile property: Gets the hardware profile.

HyperVGenerationTypes hyperVGeneration()

Get the hyperVGeneration property: HyperVGeneration of the source VM for which restore point is captured.

String licenseType()

Get the licenseType property: Gets the license type, which is for bring your own license scenario.

String location()

Get the location property: Location of the VM from which the restore point was created.

OSProfile osProfile()

Get the osProfile property: Gets the OS profile.

SecurityProfile securityProfile()

Get the securityProfile property: Gets the security profile.

RestorePointSourceVMStorageProfile storageProfile()

Get the storageProfile property: Gets the storage profile.

JsonWriter toJson(JsonWriter jsonWriter)
String userData()

Get the userData property: UserData associated with the source VM for which restore point is captured, which is a base-64 encoded value.

void validate()

Validates the instance.

String vmId()

Get the vmId property: Gets the virtual machine unique id.

RestorePointSourceMetadata withStorageProfile(RestorePointSourceVMStorageProfile storageProfile)

Set the storageProfile property: Gets the storage profile.

Methods inherited from java.lang.Object

Constructor Details

RestorePointSourceMetadata

public RestorePointSourceMetadata()

Creates an instance of RestorePointSourceMetadata class.

Method Details

diagnosticsProfile

public DiagnosticsProfile diagnosticsProfile()

Get the diagnosticsProfile property: Gets the diagnostics profile.

Returns:

the diagnosticsProfile value.

fromJson

public static RestorePointSourceMetadata fromJson(JsonReader jsonReader)

Reads an instance of RestorePointSourceMetadata from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RestorePointSourceMetadata 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 RestorePointSourceMetadata.

hardwareProfile

public HardwareProfile hardwareProfile()

Get the hardwareProfile property: Gets the hardware profile.

Returns:

the hardwareProfile value.

hyperVGeneration

public HyperVGenerationTypes hyperVGeneration()

Get the hyperVGeneration property: HyperVGeneration of the source VM for which restore point is captured.

Returns:

the hyperVGeneration value.

licenseType

public String licenseType()

Get the licenseType property: Gets the license type, which is for bring your own license scenario.

Returns:

the licenseType value.

location

public String location()

Get the location property: Location of the VM from which the restore point was created.

Returns:

the location value.

osProfile

public OSProfile osProfile()

Get the osProfile property: Gets the OS profile.

Returns:

the osProfile value.

securityProfile

public SecurityProfile securityProfile()

Get the securityProfile property: Gets the security profile.

Returns:

the securityProfile value.

storageProfile

public RestorePointSourceVMStorageProfile storageProfile()

Get the storageProfile property: Gets the storage profile.

Returns:

the storageProfile value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

userData

public String userData()

Get the userData property: UserData associated with the source VM for which restore point is captured, which is a base-64 encoded value.

Returns:

the userData value.

validate

public void validate()

Validates the instance.

vmId

public String vmId()

Get the vmId property: Gets the virtual machine unique id.

Returns:

the vmId value.

withStorageProfile

public RestorePointSourceMetadata withStorageProfile(RestorePointSourceVMStorageProfile storageProfile)

Set the storageProfile property: Gets the storage profile.

Parameters:

storageProfile - the storageProfile value to set.

Returns:

the RestorePointSourceMetadata object itself.

Applies to