Class BootDiagnostics
java.lang.Object
com.azure.resourcemanager.compute.models.BootDiagnostics
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BootDiagnostics>
public final class BootDiagnostics
extends Object
implements com.azure.json.JsonSerializable<BootDiagnostics>
Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status.
You can easily view the output of your console log. Azure also enables you to see a screenshot of the VM from the
hypervisor.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionenabled()Get the enabled property: Whether boot diagnostics should be enabled on the Virtual Machine.static BootDiagnosticsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BootDiagnostics from the JsonReader.Get the storageUri property: Uri of the storage account to use for placing the console output and screenshot.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withEnabled(Boolean enabled) Set the enabled property: Whether boot diagnostics should be enabled on the Virtual Machine.withStorageUri(String storageUri) Set the storageUri property: Uri of the storage account to use for placing the console output and screenshot.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
-
BootDiagnostics
public BootDiagnostics()Creates an instance of BootDiagnostics class.
-
-
Method Details
-
enabled
Get the enabled property: Whether boot diagnostics should be enabled on the Virtual Machine.- Returns:
- the enabled value.
-
withEnabled
Set the enabled property: Whether boot diagnostics should be enabled on the Virtual Machine.- Parameters:
enabled- the enabled value to set.- Returns:
- the BootDiagnostics object itself.
-
storageUri
Get the storageUri property: Uri of the storage account to use for placing the console output and screenshot. If storageUri is not specified while enabling boot diagnostics, managed storage will be used.- Returns:
- the storageUri value.
-
withStorageUri
Set the storageUri property: Uri of the storage account to use for placing the console output and screenshot. If storageUri is not specified while enabling boot diagnostics, managed storage will be used.- Parameters:
storageUri- the storageUri value to set.- Returns:
- the BootDiagnostics object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<BootDiagnostics>- Throws:
IOException
-
fromJson
Reads an instance of BootDiagnostics from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of BootDiagnostics 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 BootDiagnostics.
-