FileSystemHttpLogsConfig Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. FileSystemHttpLogsConfig
- com.
Implements
public final class FileSystemHttpLogsConfig
implements JsonSerializable<FileSystemHttpLogsConfig>
Http logs to file system configuration.
Constructor Summary
Constructor | Description |
---|---|
FileSystemHttpLogsConfig() |
Creates an instance of File |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
enabled()
Get the enabled property: True if configuration is enabled, false if it is disabled and null if configuration is not set. |
static
File |
fromJson(JsonReader jsonReader)
Reads an instance of File |
Integer |
retentionInDays()
Get the retention |
Integer |
retentionInMb()
Get the retention |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
File |
withEnabled(Boolean enabled)
Set the enabled property: True if configuration is enabled, false if it is disabled and null if configuration is not set. |
File |
withRetentionInDays(Integer retentionInDays)
Set the retention |
File |
withRetentionInMb(Integer retentionInMb)
Set the retention |
Methods inherited from java.lang.Object
Constructor Details
FileSystemHttpLogsConfig
public FileSystemHttpLogsConfig()
Creates an instance of FileSystemHttpLogsConfig class.
Method Details
enabled
public Boolean enabled()
Get the enabled property: True if configuration is enabled, false if it is disabled and null if configuration is not set.
Returns:
fromJson
public static FileSystemHttpLogsConfig fromJson(JsonReader jsonReader)
Reads an instance of FileSystemHttpLogsConfig from the JsonReader.
Parameters:
Returns:
Throws:
retentionInDays
public Integer retentionInDays()
Get the retentionInDays property: Retention in days. Remove files older than X days. 0 or lower means no retention.
Returns:
retentionInMb
public Integer retentionInMb()
Get the retentionInMb property: Maximum size in megabytes that http log files can use. When reached old log files will be removed to make space for new ones. Value can range between 25 and 100.
Returns:
toJson
validate
public void validate()
Validates the instance.
withEnabled
public FileSystemHttpLogsConfig withEnabled(Boolean enabled)
Set the enabled property: True if configuration is enabled, false if it is disabled and null if configuration is not set.
Parameters:
Returns:
withRetentionInDays
public FileSystemHttpLogsConfig withRetentionInDays(Integer retentionInDays)
Set the retentionInDays property: Retention in days. Remove files older than X days. 0 or lower means no retention.
Parameters:
Returns:
withRetentionInMb
public FileSystemHttpLogsConfig withRetentionInMb(Integer retentionInMb)
Set the retentionInMb property: Maximum size in megabytes that http log files can use. When reached old log files will be removed to make space for new ones. Value can range between 25 and 100.
Parameters:
Returns:
Applies to
Azure SDK for Java