Class NspLoggingConfigurationProperties

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

public final class NspLoggingConfigurationProperties extends Object implements com.azure.json.JsonSerializable<NspLoggingConfigurationProperties>
The NSP logging configuration properties.
  • Constructor Details

    • NspLoggingConfigurationProperties

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

    • enabledLogCategories

      public List<String> enabledLogCategories()
      Get the enabledLogCategories property: The log categories to enable in the NSP logging configuration.
      Returns:
      the enabledLogCategories value.
    • withEnabledLogCategories

      public NspLoggingConfigurationProperties withEnabledLogCategories(List<String> enabledLogCategories)
      Set the enabledLogCategories property: The log categories to enable in the NSP logging configuration.
      Parameters:
      enabledLogCategories - the enabledLogCategories value to set.
      Returns:
      the NspLoggingConfigurationProperties object itself.
    • version

      public String version()
      Get the version property: The version of the NSP logging configuration.
      Returns:
      the version value.
    • withVersion

      public NspLoggingConfigurationProperties withVersion(String version)
      Set the version property: The version of the NSP logging configuration.
      Parameters:
      version - the version value to set.
      Returns:
      the NspLoggingConfigurationProperties 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<NspLoggingConfigurationProperties>
      Throws:
      IOException
    • fromJson

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