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 Details

    • RestorePointSourceMetadata

      public RestorePointSourceMetadata()
      Creates an instance of RestorePointSourceMetadata class.
  • Method Details

    • hardwareProfile

      public HardwareProfile hardwareProfile()
      Get the hardwareProfile property: Gets the hardware profile.
      Returns:
      the hardwareProfile value.
    • storageProfile

      public RestorePointSourceVMStorageProfile 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

      public OSProfile osProfile()
      Get the osProfile property: Gets the OS profile.
      Returns:
      the osProfile value.
    • diagnosticsProfile

      public DiagnosticsProfile diagnosticsProfile()
      Get the diagnosticsProfile property: Gets the diagnostics profile.
      Returns:
      the diagnosticsProfile 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.
    • vmId

      public String vmId()
      Get the vmId property: Gets the virtual machine unique id.
      Returns:
      the vmId value.
    • securityProfile

      public SecurityProfile securityProfile()
      Get the securityProfile property: Gets the security profile.
      Returns:
      the securityProfile value.
    • location

      public String location()
      Get the location property: Location of the VM from which the restore point was created.
      Returns:
      the location value.
    • 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.
    • hyperVGeneration

      public HyperVGenerationTypes 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.