Class LoggingProperties
java.lang.Object
com.azure.resourcemanager.containerregistry.models.LoggingProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<LoggingProperties>
public final class LoggingProperties
extends Object
implements com.azure.json.JsonSerializable<LoggingProperties>
The logging properties of the connected registry.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the auditLogStatus property: Indicates whether audit logs are enabled on the connected registry.static LoggingPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of LoggingProperties from the JsonReader.logLevel()Get the logLevel property: The verbosity of logs persisted on the connected registry.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAuditLogStatus(AuditLogStatus auditLogStatus) Set the auditLogStatus property: Indicates whether audit logs are enabled on the connected registry.withLogLevel(LogLevel logLevel) Set the logLevel property: The verbosity of logs persisted on the connected registry.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
-
LoggingProperties
public LoggingProperties()Creates an instance of LoggingProperties class.
-
-
Method Details
-
logLevel
Get the logLevel property: The verbosity of logs persisted on the connected registry.- Returns:
- the logLevel value.
-
withLogLevel
Set the logLevel property: The verbosity of logs persisted on the connected registry.- Parameters:
logLevel- the logLevel value to set.- Returns:
- the LoggingProperties object itself.
-
auditLogStatus
Get the auditLogStatus property: Indicates whether audit logs are enabled on the connected registry.- Returns:
- the auditLogStatus value.
-
withAuditLogStatus
Set the auditLogStatus property: Indicates whether audit logs are enabled on the connected registry.- Parameters:
auditLogStatus- the auditLogStatus value to set.- Returns:
- the LoggingProperties 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<LoggingProperties>- Throws:
IOException
-
fromJson
Reads an instance of LoggingProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of LoggingProperties 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 LoggingProperties.
-