Class ConnectionMonitorWorkspaceSettings

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

public final class ConnectionMonitorWorkspaceSettings extends Object implements com.azure.json.JsonSerializable<ConnectionMonitorWorkspaceSettings>
Describes the settings for producing output into a log analytics workspace.
  • Constructor Details

    • ConnectionMonitorWorkspaceSettings

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

    • workspaceResourceId

      public String workspaceResourceId()
      Get the workspaceResourceId property: Log analytics workspace resource ID.
      Returns:
      the workspaceResourceId value.
    • withWorkspaceResourceId

      public ConnectionMonitorWorkspaceSettings withWorkspaceResourceId(String workspaceResourceId)
      Set the workspaceResourceId property: Log analytics workspace resource ID.
      Parameters:
      workspaceResourceId - the workspaceResourceId value to set.
      Returns:
      the ConnectionMonitorWorkspaceSettings 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<ConnectionMonitorWorkspaceSettings>
      Throws:
      IOException
    • fromJson

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