BootDiagnostics Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. BootDiagnostics
- com.
Implements
public final class BootDiagnostics
implements 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
Constructor | Description |
---|---|
BootDiagnostics() |
Creates an instance of Boot |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
enabled()
Get the enabled property: Whether boot diagnostics should be enabled on the Virtual Machine. |
static
Boot |
fromJson(JsonReader jsonReader)
Reads an instance of Boot |
String |
storageUri()
Get the storage |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Boot |
withEnabled(Boolean enabled)
Set the enabled property: Whether boot diagnostics should be enabled on the Virtual Machine. |
Boot |
withStorageUri(String storageUri)
Set the storage |
Methods inherited from java.lang.Object
Constructor Details
BootDiagnostics
public BootDiagnostics()
Creates an instance of BootDiagnostics class.
Method Details
enabled
public Boolean enabled()
Get the enabled property: Whether boot diagnostics should be enabled on the Virtual Machine.
Returns:
fromJson
public static BootDiagnostics fromJson(JsonReader jsonReader)
Reads an instance of BootDiagnostics from the JsonReader.
Parameters:
Returns:
Throws:
storageUri
public String 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:
toJson
validate
public void validate()
Validates the instance.
withEnabled
public BootDiagnostics withEnabled(Boolean enabled)
Set the enabled property: Whether boot diagnostics should be enabled on the Virtual Machine.
Parameters:
Returns:
withStorageUri
public BootDiagnostics withStorageUri(String storageUri)
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:
Returns:
Applies to
Azure SDK for Java