閱讀英文

共用方式為


LogFileTextSettings Class

  • java.lang.Object
    • com.azure.resourcemanager.monitor.models.LogFileTextSettings

Implements

public class LogFileTextSettings
implements JsonSerializable<LogFileTextSettings>

Settings for text log files.

Constructor Summary

Constructor Description
LogFileTextSettings()

Creates an instance of LogFileTextSettings class.

Method Summary

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

Reads an instance of LogFileTextSettings from the JsonReader.

KnownLogFileTextSettingsRecordStartTimestampFormat recordStartTimestampFormat()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

LogFileTextSettings withRecordStartTimestampFormat(KnownLogFileTextSettingsRecordStartTimestampFormat recordStartTimestampFormat)

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

Methods inherited from java.lang.Object

Constructor Details

LogFileTextSettings

public LogFileTextSettings()

Creates an instance of LogFileTextSettings class.

Method Details

fromJson

public static LogFileTextSettings fromJson(JsonReader jsonReader)

Reads an instance of LogFileTextSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

recordStartTimestampFormat

public KnownLogFileTextSettingsRecordStartTimestampFormat recordStartTimestampFormat()

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

Returns:

the recordStartTimestampFormat value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withRecordStartTimestampFormat

public LogFileTextSettings withRecordStartTimestampFormat(KnownLogFileTextSettingsRecordStartTimestampFormat recordStartTimestampFormat)

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

Parameters:

recordStartTimestampFormat - the recordStartTimestampFormat value to set.

Returns:

the LogFileTextSettings object itself.

Applies to

Azure SDK for Java

Latest