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 Details

    • NetworkVirtualApplianceBootDiagnosticParameters

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

    • instanceId

      public Integer instanceId()
      Get the instanceId property: The network virtual appliance instance id for which boot diagnostic logs is being requested.
      Returns:
      the instanceId value.
    • withInstanceId

      public NetworkVirtualApplianceBootDiagnosticParameters withInstanceId(Integer instanceId)
      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

      public String 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

      public String 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.