Class RestorePointSourceMetadata


  • public final class RestorePointSourceMetadata
    extends Object
    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 Detail

      • RestorePointSourceMetadata

        public RestorePointSourceMetadata()
    • Method Detail

      • hardwareProfile

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

        public RestorePointSourceMetadata withHardwareProfile​(HardwareProfile hardwareProfile)
        Set the hardwareProfile property: Gets the hardware profile.
        Parameters:
        hardwareProfile - the hardwareProfile value to set.
        Returns:
        the RestorePointSourceMetadata object itself.
      • 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.
      • withOsProfile

        public RestorePointSourceMetadata withOsProfile​(OSProfile osProfile)
        Set the osProfile property: Gets the OS profile.
        Parameters:
        osProfile - the osProfile value to set.
        Returns:
        the RestorePointSourceMetadata object itself.
      • diagnosticsProfile

        public DiagnosticsProfile diagnosticsProfile()
        Get the diagnosticsProfile property: Gets the diagnostics profile.
        Returns:
        the diagnosticsProfile value.
      • withDiagnosticsProfile

        public RestorePointSourceMetadata withDiagnosticsProfile​(DiagnosticsProfile diagnosticsProfile)
        Set the diagnosticsProfile property: Gets the diagnostics profile.
        Parameters:
        diagnosticsProfile - the diagnosticsProfile value to set.
        Returns:
        the RestorePointSourceMetadata object itself.
      • licenseType

        public String licenseType()
        Get the licenseType property: Gets the license type, which is for bring your own license scenario.
        Returns:
        the licenseType value.
      • withLicenseType

        public RestorePointSourceMetadata withLicenseType​(String licenseType)
        Set the licenseType property: Gets the license type, which is for bring your own license scenario.
        Parameters:
        licenseType - the licenseType value to set.
        Returns:
        the RestorePointSourceMetadata object itself.
      • vmId

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

        public RestorePointSourceMetadata withVmId​(String vmId)
        Set the vmId property: Gets the virtual machine unique id.
        Parameters:
        vmId - the vmId value to set.
        Returns:
        the RestorePointSourceMetadata object itself.
      • securityProfile

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

        public RestorePointSourceMetadata withSecurityProfile​(SecurityProfile securityProfile)
        Set the securityProfile property: Gets the security profile.
        Parameters:
        securityProfile - the securityProfile value to set.
        Returns:
        the RestorePointSourceMetadata object itself.
      • location

        public String location()
        Get the location property: Location of the VM from which the restore point was created.
        Returns:
        the location value.
      • withLocation

        public RestorePointSourceMetadata withLocation​(String location)
        Set the location property: Location of the VM from which the restore point was created.
        Parameters:
        location - the location value to set.
        Returns:
        the RestorePointSourceMetadata object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.