Class HttpLogsConfig

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

public final class HttpLogsConfig extends Object implements com.azure.json.JsonSerializable<HttpLogsConfig>
Http logs configuration.
  • Constructor Details

    • HttpLogsConfig

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

    • fileSystem

      public FileSystemHttpLogsConfig fileSystem()
      Get the fileSystem property: Http logs to file system configuration.
      Returns:
      the fileSystem value.
    • withFileSystem

      public HttpLogsConfig withFileSystem(FileSystemHttpLogsConfig fileSystem)
      Set the fileSystem property: Http logs to file system configuration.
      Parameters:
      fileSystem - the fileSystem value to set.
      Returns:
      the HttpLogsConfig object itself.
    • azureBlobStorage

      public AzureBlobStorageHttpLogsConfig azureBlobStorage()
      Get the azureBlobStorage property: Http logs to azure blob storage configuration.
      Returns:
      the azureBlobStorage value.
    • withAzureBlobStorage

      public HttpLogsConfig withAzureBlobStorage(AzureBlobStorageHttpLogsConfig azureBlobStorage)
      Set the azureBlobStorage property: Http logs to azure blob storage configuration.
      Parameters:
      azureBlobStorage - the azureBlobStorage value to set.
      Returns:
      the HttpLogsConfig 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<HttpLogsConfig>
      Throws:
      IOException
    • fromJson

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