Class BootDiagnostics
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.BootDiagnostics
-
public final class BootDiagnostics extends Object
Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. <br><br> You can easily view the output of your console log. <br><br> Azure also enables you to see a screenshot of the VM from the hypervisor.
-
-
Constructor Summary
Constructors Constructor Description BootDiagnostics()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Booleanenabled()Get the enabled property: Whether boot diagnostics should be enabled on the Virtual Machine.StringstorageUri()Get the storageUri property: Uri of the storage account to use for placing the console output and screenshot.voidvalidate()Validates the instance.BootDiagnosticswithEnabled(Boolean enabled)Set the enabled property: Whether boot diagnostics should be enabled on the Virtual Machine.BootDiagnosticswithStorageUri(String storageUri)Set the storageUri property: Uri of the storage account to use for placing the console output and screenshot.
-
-
-
Method Detail
-
enabled
public Boolean enabled()
Get the enabled property: Whether boot diagnostics should be enabled on the Virtual Machine.- Returns:
- the enabled value.
-
withEnabled
public BootDiagnostics withEnabled(Boolean enabled)
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
public String storageUri()
Get the storageUri property: Uri of the storage account to use for placing the console output and screenshot. <br><br>If storageUri is not specified while enabling boot diagnostics, managed storage will be used.- Returns:
- the storageUri value.
-
withStorageUri
public BootDiagnostics withStorageUri(String storageUri)
Set the storageUri property: Uri of the storage account to use for placing the console output and screenshot. <br><br>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.
-
-