Class BootDiagnosticsInstanceView

java.lang.Object
com.azure.resourcemanager.compute.models.BootDiagnosticsInstanceView
All Implemented Interfaces:
com.azure.json.JsonSerializable<BootDiagnosticsInstanceView>

public final class BootDiagnosticsInstanceView extends Object implements com.azure.json.JsonSerializable<BootDiagnosticsInstanceView>
The instance view of a virtual machine boot diagnostics.
  • Constructor Details

    • BootDiagnosticsInstanceView

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

    • consoleScreenshotBlobUri

      public String consoleScreenshotBlobUri()
      Get the consoleScreenshotBlobUri property: The console screenshot blob URI. **Note:** This will **not** be set if boot diagnostics is currently enabled with managed storage.
      Returns:
      the consoleScreenshotBlobUri value.
    • serialConsoleLogBlobUri

      public String serialConsoleLogBlobUri()
      Get the serialConsoleLogBlobUri property: The serial console log blob Uri. **Note:** This will **not** be set if boot diagnostics is currently enabled with managed storage.
      Returns:
      the serialConsoleLogBlobUri value.
    • status

      public InstanceViewStatus status()
      Get the status property: The boot diagnostics status information for the VM. **Note:** It will be set only if there are errors encountered in enabling boot diagnostics.
      Returns:
      the status 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<BootDiagnosticsInstanceView>
      Throws:
      IOException
    • fromJson

      public static BootDiagnosticsInstanceView fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of BootDiagnosticsInstanceView from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of BootDiagnosticsInstanceView 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 BootDiagnosticsInstanceView.