Class NetworkVirtualApplianceBootDiagnosticParameters
java.lang.Object
com.azure.resourcemanager.network.models.NetworkVirtualApplianceBootDiagnosticParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<NetworkVirtualApplianceBootDiagnosticParameters>
public final class NetworkVirtualApplianceBootDiagnosticParameters
extends Object
implements com.azure.json.JsonSerializable<NetworkVirtualApplianceBootDiagnosticParameters>
Specifies input parameters required to retrieve the boot diagnostic logs for an NVA instance.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of NetworkVirtualApplianceBootDiagnosticParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the consoleScreenshotStorageSasUrl property: Specifies the sas-url to the storage blob into which console screen shot for the requested instance will be written.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of NetworkVirtualApplianceBootDiagnosticParameters from the JsonReader.Get the instanceId property: The network virtual appliance instance id for which boot diagnostic logs is being requested.Get the serialConsoleStorageSasUrl property: Specifies the sas-url to the storage blob into which serial console logs for the requested instance will be written.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withConsoleScreenshotStorageSasUrl(String consoleScreenshotStorageSasUrl) Set the consoleScreenshotStorageSasUrl property: Specifies the sas-url to the storage blob into which console screen shot for the requested instance will be written.withInstanceId(Integer instanceId) Set the instanceId property: The network virtual appliance instance id for which boot diagnostic logs is being requested.withSerialConsoleStorageSasUrl(String serialConsoleStorageSasUrl) Set the serialConsoleStorageSasUrl property: Specifies the sas-url to the storage blob into which serial console logs for the requested instance will be written.Methods inherited from class 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
-
NetworkVirtualApplianceBootDiagnosticParameters
public NetworkVirtualApplianceBootDiagnosticParameters()Creates an instance of NetworkVirtualApplianceBootDiagnosticParameters class.
-
-
Method Details
-
instanceId
Get the instanceId property: The network virtual appliance instance id for which boot diagnostic logs is being requested.- Returns:
- the instanceId value.
-
withInstanceId
Set the instanceId property: The network virtual appliance instance id for which boot diagnostic logs is being requested.- Parameters:
instanceId- the instanceId value to set.- Returns:
- the NetworkVirtualApplianceBootDiagnosticParameters object itself.
-
serialConsoleStorageSasUrl
Get the serialConsoleStorageSasUrl property: Specifies the sas-url to the storage blob into which serial console logs for the requested instance will be written.- Returns:
- the serialConsoleStorageSasUrl value.
-
withSerialConsoleStorageSasUrl
public NetworkVirtualApplianceBootDiagnosticParameters withSerialConsoleStorageSasUrl(String serialConsoleStorageSasUrl) Set the serialConsoleStorageSasUrl property: Specifies the sas-url to the storage blob into which serial console logs for the requested instance will be written.- Parameters:
serialConsoleStorageSasUrl- the serialConsoleStorageSasUrl value to set.- Returns:
- the NetworkVirtualApplianceBootDiagnosticParameters object itself.
-
consoleScreenshotStorageSasUrl
Get the consoleScreenshotStorageSasUrl property: Specifies the sas-url to the storage blob into which console screen shot for the requested instance will be written.- Returns:
- the consoleScreenshotStorageSasUrl value.
-
withConsoleScreenshotStorageSasUrl
public NetworkVirtualApplianceBootDiagnosticParameters withConsoleScreenshotStorageSasUrl(String consoleScreenshotStorageSasUrl) Set the consoleScreenshotStorageSasUrl property: Specifies the sas-url to the storage blob into which console screen shot for the requested instance will be written.- Parameters:
consoleScreenshotStorageSasUrl- the consoleScreenshotStorageSasUrl value to set.- Returns:
- the NetworkVirtualApplianceBootDiagnosticParameters 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<NetworkVirtualApplianceBootDiagnosticParameters>- Throws:
IOException
-
fromJson
public static NetworkVirtualApplianceBootDiagnosticParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of NetworkVirtualApplianceBootDiagnosticParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of NetworkVirtualApplianceBootDiagnosticParameters 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 NetworkVirtualApplianceBootDiagnosticParameters.
-