Class RestorePointSourceMetadata
java.lang.Object
com.azure.resourcemanager.compute.models.RestorePointSourceMetadata
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RestorePointSourceMetadata>
public final class RestorePointSourceMetadata
extends Object
implements com.azure.json.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
ConstructorsConstructorDescriptionCreates an instance of RestorePointSourceMetadata class. -
Method Summary
Modifier and TypeMethodDescriptionGet the diagnosticsProfile property: Gets the diagnostics profile.static RestorePointSourceMetadatafromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RestorePointSourceMetadata from the JsonReader.Get the hardwareProfile property: Gets the hardware profile.Get the hyperVGeneration property: HyperVGeneration of the source VM for which restore point is captured.Get the licenseType property: Gets the license type, which is for bring your own license scenario.location()Get the location property: Location of the VM from which the restore point was created.Get the osProfile property: Gets the OS profile.Get the securityProfile property: Gets the security profile.Get the storageProfile property: Gets the storage profile.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) userData()Get the userData property: UserData associated with the source VM for which restore point is captured, which is a base-64 encoded value.voidvalidate()Validates the instance.vmId()Get the vmId property: Gets the virtual machine unique id.withStorageProfile(RestorePointSourceVMStorageProfile storageProfile) Set the storageProfile property: Gets the storage profile.Methods inherited from class java.lang.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
-
RestorePointSourceMetadata
public RestorePointSourceMetadata()Creates an instance of RestorePointSourceMetadata class.
-
-
Method Details
-
hardwareProfile
Get the hardwareProfile property: Gets the hardware profile.- Returns:
- the hardwareProfile value.
-
storageProfile
Get the storageProfile property: Gets the storage profile.- Returns:
- the storageProfile 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.
-
osProfile
Get the osProfile property: Gets the OS profile.- Returns:
- the osProfile value.
-
diagnosticsProfile
Get the diagnosticsProfile property: Gets the diagnostics profile.- Returns:
- the diagnosticsProfile value.
-
licenseType
Get the licenseType property: Gets the license type, which is for bring your own license scenario.- Returns:
- the licenseType value.
-
vmId
Get the vmId property: Gets the virtual machine unique id.- Returns:
- the vmId value.
-
securityProfile
Get the securityProfile property: Gets the security profile.- Returns:
- the securityProfile value.
-
location
Get the location property: Location of the VM from which the restore point was created.- Returns:
- the location value.
-
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.
-
hyperVGeneration
Get the hyperVGeneration property: HyperVGeneration of the source VM for which restore point is captured.- Returns:
- the hyperVGeneration 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<RestorePointSourceMetadata>- Throws:
IOException
-
fromJson
public static RestorePointSourceMetadata fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-