Class ApplicationLogsConfig
java.lang.Object
com.azure.resourcemanager.appservice.models.ApplicationLogsConfig
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ApplicationLogsConfig>
public final class ApplicationLogsConfig
extends Object
implements com.azure.json.JsonSerializable<ApplicationLogsConfig>
Application logs configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the azureBlobStorage property: Application logs to blob storage configuration.Get the azureTableStorage property: Application logs to azure table storage configuration.Get the fileSystem property: Application logs to file system configuration.static ApplicationLogsConfig
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ApplicationLogsConfig from the JsonReader.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withAzureBlobStorage
(AzureBlobStorageApplicationLogsConfig azureBlobStorage) Set the azureBlobStorage property: Application logs to blob storage configuration.withAzureTableStorage
(AzureTableStorageApplicationLogsConfig azureTableStorage) Set the azureTableStorage property: Application logs to azure table storage configuration.withFileSystem
(FileSystemApplicationLogsConfig fileSystem) Set the fileSystem property: Application logs to file system configuration.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ApplicationLogsConfig
public ApplicationLogsConfig()Creates an instance of ApplicationLogsConfig class.
-
-
Method Details
-
fileSystem
Get the fileSystem property: Application logs to file system configuration.- Returns:
- the fileSystem value.
-
withFileSystem
Set the fileSystem property: Application logs to file system configuration.- Parameters:
fileSystem
- the fileSystem value to set.- Returns:
- the ApplicationLogsConfig object itself.
-
azureTableStorage
Get the azureTableStorage property: Application logs to azure table storage configuration.- Returns:
- the azureTableStorage value.
-
withAzureTableStorage
public ApplicationLogsConfig withAzureTableStorage(AzureTableStorageApplicationLogsConfig azureTableStorage) Set the azureTableStorage property: Application logs to azure table storage configuration.- Parameters:
azureTableStorage
- the azureTableStorage value to set.- Returns:
- the ApplicationLogsConfig object itself.
-
azureBlobStorage
Get the azureBlobStorage property: Application logs to blob storage configuration.- Returns:
- the azureBlobStorage value.
-
withAzureBlobStorage
public ApplicationLogsConfig withAzureBlobStorage(AzureBlobStorageApplicationLogsConfig azureBlobStorage) Set the azureBlobStorage property: Application logs to blob storage configuration.- Parameters:
azureBlobStorage
- the azureBlobStorage value to set.- Returns:
- the ApplicationLogsConfig object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<ApplicationLogsConfig>
- Throws:
IOException
-
fromJson
public static ApplicationLogsConfig fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ApplicationLogsConfig from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ApplicationLogsConfig 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 ApplicationLogsConfig.
-