Class IisLogsDataSource

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

public final class IisLogsDataSource extends Object implements com.azure.json.JsonSerializable<IisLogsDataSource>
Enables IIS logs to be collected by this data collection rule.
  • Constructor Details

    • IisLogsDataSource

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

    • streams

      public List<String> streams()
      Get the streams property: IIS streams.
      Returns:
      the streams value.
    • withStreams

      public IisLogsDataSource withStreams(List<String> streams)
      Set the streams property: IIS streams.
      Parameters:
      streams - the streams value to set.
      Returns:
      the IisLogsDataSource object itself.
    • logDirectories

      public List<String> logDirectories()
      Get the logDirectories property: Absolute paths file location.
      Returns:
      the logDirectories value.
    • withLogDirectories

      public IisLogsDataSource withLogDirectories(List<String> logDirectories)
      Set the logDirectories property: Absolute paths file location.
      Parameters:
      logDirectories - the logDirectories value to set.
      Returns:
      the IisLogsDataSource object itself.
    • name

      public String name()
      Get the name property: A friendly name for the data source. This name should be unique across all data sources (regardless of type) within the data collection rule.
      Returns:
      the name value.
    • withName

      public IisLogsDataSource withName(String name)
      Set the name property: A friendly name for the data source. This name should be unique across all data sources (regardless of type) within the data collection rule.
      Parameters:
      name - the name value to set.
      Returns:
      the IisLogsDataSource 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<IisLogsDataSource>
      Throws:
      IOException
    • fromJson

      public static IisLogsDataSource fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of IisLogsDataSource from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of IisLogsDataSource if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the IisLogsDataSource.