Partilhar via


LogFileSettingsText Class

public final class LogFileSettingsText
extends LogFileTextSettings

Text settings.

Constructor Summary

Constructor Description
LogFileSettingsText()

Creates an instance of LogFileSettingsText class.

Method Summary

Modifier and Type Method and Description
static LogFileSettingsText fromJson(JsonReader jsonReader)

Reads an instance of LogFileSettingsText from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

LogFileSettingsText withRecordStartTimestampFormat(KnownLogFileTextSettingsRecordStartTimestampFormat recordStartTimestampFormat)

Set the recordStartTimestampFormat property: One of the supported timestamp formats.

Methods inherited from LogFileTextSettings

Methods inherited from java.lang.Object

Constructor Details

LogFileSettingsText

public LogFileSettingsText()

Creates an instance of LogFileSettingsText class.

Method Details

fromJson

public static LogFileSettingsText fromJson(JsonReader jsonReader)

Reads an instance of LogFileSettingsText from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of LogFileSettingsText if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

LogFileSettingsText.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

LogFileSettingsText.validate()

withRecordStartTimestampFormat

public LogFileSettingsText withRecordStartTimestampFormat(KnownLogFileTextSettingsRecordStartTimestampFormat recordStartTimestampFormat)

Set the recordStartTimestampFormat property: One of the supported timestamp formats.

Overrides:

LogFileSettingsText.withRecordStartTimestampFormat(KnownLogFileTextSettingsRecordStartTimestampFormat recordStartTimestampFormat)

Parameters:

recordStartTimestampFormat

Applies to