LocalTimestamp Class

  • java.lang.Object
    • com.azure.resourcemanager.timeseriesinsights.models.LocalTimestamp

Implements

public final class LocalTimestamp
implements JsonSerializable<LocalTimestamp>

An object that represents the local timestamp property. It contains the format of local timestamp that needs to be used and the corresponding timezone offset information. If a value isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed with the events.

Constructor Summary

Constructor Description
LocalTimestamp()

Creates an instance of LocalTimestamp class.

Method Summary

Modifier and Type Method and Description
LocalTimestampFormat format()

Get the format property: An enum that represents the format of the local timestamp property that needs to be set.

static LocalTimestamp fromJson(JsonReader jsonReader)

Reads an instance of LocalTimestamp from the JsonReader.

LocalTimestampTimeZoneOffset timeZoneOffset()

Get the timeZoneOffset property: An object that represents the offset information for the local timestamp format specified.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

LocalTimestamp withFormat(LocalTimestampFormat format)

Set the format property: An enum that represents the format of the local timestamp property that needs to be set.

LocalTimestamp withTimeZoneOffset(LocalTimestampTimeZoneOffset timeZoneOffset)

Set the timeZoneOffset property: An object that represents the offset information for the local timestamp format specified.

Methods inherited from java.lang.Object

Constructor Details

LocalTimestamp

public LocalTimestamp()

Creates an instance of LocalTimestamp class.

Method Details

format

public LocalTimestampFormat format()

Get the format property: An enum that represents the format of the local timestamp property that needs to be set.

Returns:

the format value.

fromJson

public static LocalTimestamp fromJson(JsonReader jsonReader)

Reads an instance of LocalTimestamp from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

timeZoneOffset

public LocalTimestampTimeZoneOffset timeZoneOffset()

Get the timeZoneOffset property: An object that represents the offset information for the local timestamp format specified. Should not be specified for LocalTimestampFormat - Embedded.

Returns:

the timeZoneOffset value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withFormat

public LocalTimestamp withFormat(LocalTimestampFormat format)

Set the format property: An enum that represents the format of the local timestamp property that needs to be set.

Parameters:

format - the format value to set.

Returns:

the LocalTimestamp object itself.

withTimeZoneOffset

public LocalTimestamp withTimeZoneOffset(LocalTimestampTimeZoneOffset timeZoneOffset)

Set the timeZoneOffset property: An object that represents the offset information for the local timestamp format specified. Should not be specified for LocalTimestampFormat - Embedded.

Parameters:

timeZoneOffset - the timeZoneOffset value to set.

Returns:

the LocalTimestamp object itself.

Applies to