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 Details

    • LoggingProperties

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

    • logLevel

      public LogLevel logLevel()
      Get the logLevel property: The verbosity of logs persisted on the connected registry.
      Returns:
      the logLevel value.
    • withLogLevel

      public LoggingProperties withLogLevel(LogLevel logLevel)
      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

      public AuditLogStatus auditLogStatus()
      Get the auditLogStatus property: Indicates whether audit logs are enabled on the connected registry.
      Returns:
      the auditLogStatus value.
    • withAuditLogStatus

      public LoggingProperties withAuditLogStatus(AuditLogStatus auditLogStatus)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<LoggingProperties>
      Throws:
      IOException
    • fromJson

      public static LoggingProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.