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 Summary
ConstructorsConstructorDescriptionCreates an instance of NspLoggingConfigurationProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the enabledLogCategories property: The log categories to enable in the NSP logging configuration.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of NspLoggingConfigurationProperties from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.version()Get the version property: The version of the NSP logging configuration.withEnabledLogCategories(List<String> enabledLogCategories) Set the enabledLogCategories property: The log categories to enable in the NSP logging configuration.withVersion(String version) Set the version property: The version of the NSP logging configuration.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
NspLoggingConfigurationProperties
public NspLoggingConfigurationProperties()Creates an instance of NspLoggingConfigurationProperties class.
-
-
Method Details
-
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
Get the version property: The version of the NSP logging configuration.- Returns:
- the version value.
-
withVersion
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
- Specified by:
toJsonin interfacecom.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.
-