FileSystemHttpLogsConfig Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.FileSystemHttpLogsConfig

Implements

public final class FileSystemHttpLogsConfig
implements JsonSerializable<FileSystemHttpLogsConfig>

Http logs to file system configuration.

Constructor Summary

Constructor Description
FileSystemHttpLogsConfig()

Creates an instance of FileSystemHttpLogsConfig class.

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 FileSystemHttpLogsConfig fromJson(JsonReader jsonReader)

Reads an instance of FileSystemHttpLogsConfig from the JsonReader.

Integer retentionInDays()

Get the retentionInDays property: Retention in days.

Integer retentionInMb()

Get the retentionInMb property: Maximum size in megabytes that http log files can use.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

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.

FileSystemHttpLogsConfig withRetentionInDays(Integer retentionInDays)

Set the retentionInDays property: Retention in days.

FileSystemHttpLogsConfig withRetentionInMb(Integer retentionInMb)

Set the retentionInMb property: Maximum size in megabytes that http log files can use.

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:

the enabled value.

fromJson

public static FileSystemHttpLogsConfig fromJson(JsonReader jsonReader)

Reads an instance of FileSystemHttpLogsConfig from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of FileSystemHttpLogsConfig 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 FileSystemHttpLogsConfig.

retentionInDays

public Integer retentionInDays()

Get the retentionInDays property: Retention in days. Remove files older than X days. 0 or lower means no retention.

Returns:

the retentionInDays value.

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:

the retentionInMb value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

enabled - the enabled value to set.

Returns:

the FileSystemHttpLogsConfig object itself.

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:

retentionInDays - the retentionInDays value to set.

Returns:

the FileSystemHttpLogsConfig object itself.

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:

retentionInMb - the retentionInMb value to set.

Returns:

the FileSystemHttpLogsConfig object itself.

Applies to