AzureBlobStorageApplicationLogsConfig Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. AzureBlobStorageApplicationLogsConfig
- com.
Implements
public final class AzureBlobStorageApplicationLogsConfig
implements JsonSerializable<AzureBlobStorageApplicationLogsConfig>
Application logs azure blob storage configuration.
Constructor Summary
Constructor | Description |
---|---|
AzureBlobStorageApplicationLogsConfig() |
Creates an instance of Azure |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Azure |
fromJson(JsonReader jsonReader)
Reads an instance of Azure |
Log |
level()
Get the level property: Log level. |
Integer |
retentionInDays()
Get the retention |
String |
sasUrl()
Get the sas |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Azure |
withLevel(LogLevel level)
Set the level property: Log level. |
Azure |
withRetentionInDays(Integer retentionInDays)
Set the retention |
Azure |
withSasUrl(String sasUrl)
Set the sas |
Methods inherited from java.lang.Object
Constructor Details
AzureBlobStorageApplicationLogsConfig
public AzureBlobStorageApplicationLogsConfig()
Creates an instance of AzureBlobStorageApplicationLogsConfig class.
Method Details
fromJson
public static AzureBlobStorageApplicationLogsConfig fromJson(JsonReader jsonReader)
Reads an instance of AzureBlobStorageApplicationLogsConfig from the JsonReader.
Parameters:
Returns:
Throws:
level
public LogLevel level()
Get the level property: Log level.
Returns:
retentionInDays
public Integer retentionInDays()
Get the retentionInDays property: Retention in days. Remove blobs older than X days. 0 or lower means no retention.
Returns:
sasUrl
public String sasUrl()
Get the sasUrl property: SAS url to a azure blob container with read/write/list/delete permissions.
Returns:
toJson
validate
public void validate()
Validates the instance.
withLevel
public AzureBlobStorageApplicationLogsConfig withLevel(LogLevel level)
Set the level property: Log level.
Parameters:
Returns:
withRetentionInDays
public AzureBlobStorageApplicationLogsConfig withRetentionInDays(Integer retentionInDays)
Set the retentionInDays property: Retention in days. Remove blobs older than X days. 0 or lower means no retention.
Parameters:
Returns:
withSasUrl
public AzureBlobStorageApplicationLogsConfig withSasUrl(String sasUrl)
Set the sasUrl property: SAS url to a azure blob container with read/write/list/delete permissions.
Parameters:
Returns:
Applies to
Azure SDK for Java