Class DiagnosticsProfile

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

public final class DiagnosticsProfile extends Object implements com.azure.json.JsonSerializable<DiagnosticsProfile>
Specifies the boot diagnostic settings state. Minimum api-version: 2015-06-15.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of DiagnosticsProfile class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the bootDiagnostics property: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of DiagnosticsProfile from the JsonReader.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    Set the bootDiagnostics property: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • DiagnosticsProfile

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

    • bootDiagnostics

      public BootDiagnostics bootDiagnostics()
      Get the bootDiagnostics property: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. **NOTE**: If storageUri is being specified then ensure that the storage account is in the same region and subscription as the VM. You can easily view the output of your console log. Azure also enables you to see a screenshot of the VM from the hypervisor.
      Returns:
      the bootDiagnostics value.
    • withBootDiagnostics

      public DiagnosticsProfile withBootDiagnostics(BootDiagnostics bootDiagnostics)
      Set the bootDiagnostics property: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. **NOTE**: If storageUri is being specified then ensure that the storage account is in the same region and subscription as the VM. You can easily view the output of your console log. Azure also enables you to see a screenshot of the VM from the hypervisor.
      Parameters:
      bootDiagnostics - the bootDiagnostics value to set.
      Returns:
      the DiagnosticsProfile object itself.
    • 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<DiagnosticsProfile>
      Throws:
      IOException
    • fromJson

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