Class ConnectionMonitorOutput

java.lang.Object
com.azure.resourcemanager.network.models.ConnectionMonitorOutput
All Implemented Interfaces:
com.azure.json.JsonSerializable<ConnectionMonitorOutput>

public final class ConnectionMonitorOutput extends Object implements com.azure.json.JsonSerializable<ConnectionMonitorOutput>
Describes a connection monitor output destination.
  • Constructor Details

    • ConnectionMonitorOutput

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

    • type

      public OutputType type()
      Get the type property: Connection monitor output destination type. Currently, only "Workspace" is supported.
      Returns:
      the type value.
    • withType

      public ConnectionMonitorOutput withType(OutputType type)
      Set the type property: Connection monitor output destination type. Currently, only "Workspace" is supported.
      Parameters:
      type - the type value to set.
      Returns:
      the ConnectionMonitorOutput object itself.
    • workspaceSettings

      public ConnectionMonitorWorkspaceSettings workspaceSettings()
      Get the workspaceSettings property: Describes the settings for producing output into a log analytics workspace.
      Returns:
      the workspaceSettings value.
    • withWorkspaceSettings

      public ConnectionMonitorOutput withWorkspaceSettings(ConnectionMonitorWorkspaceSettings workspaceSettings)
      Set the workspaceSettings property: Describes the settings for producing output into a log analytics workspace.
      Parameters:
      workspaceSettings - the workspaceSettings value to set.
      Returns:
      the ConnectionMonitorOutput 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<ConnectionMonitorOutput>
      Throws:
      IOException
    • fromJson

      public static ConnectionMonitorOutput fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ConnectionMonitorOutput from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ConnectionMonitorOutput 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 ConnectionMonitorOutput.