LocalTimestampTimeZoneOffset Class

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

Implements

public final class LocalTimestampTimeZoneOffset
implements JsonSerializable<LocalTimestampTimeZoneOffset>

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

Constructor Summary

Constructor Description
LocalTimestampTimeZoneOffset()

Creates an instance of LocalTimestampTimeZoneOffset class.

Method Summary

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

Reads an instance of LocalTimestampTimeZoneOffset from the JsonReader.

String propertyName()

Get the propertyName property: The event property that will be contain the offset information to calculate the local timestamp.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

LocalTimestampTimeZoneOffset withPropertyName(String propertyName)

Set the propertyName property: The event property that will be contain the offset information to calculate the local timestamp.

Methods inherited from java.lang.Object

Constructor Details

LocalTimestampTimeZoneOffset

public LocalTimestampTimeZoneOffset()

Creates an instance of LocalTimestampTimeZoneOffset class.

Method Details

fromJson

public static LocalTimestampTimeZoneOffset fromJson(JsonReader jsonReader)

Reads an instance of LocalTimestampTimeZoneOffset from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

propertyName

public String propertyName()

Get the propertyName property: The event property that will be contain the offset information to calculate the local timestamp. When the LocalTimestampFormat is Iana, the property name will contain the name of the column which contains IANA Timezone Name (eg: Americas/Los Angeles). When LocalTimestampFormat is Timespan, it contains the name of property which contains values representing the offset (eg: P1D or 1.00:00:00).

Returns:

the propertyName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withPropertyName

public LocalTimestampTimeZoneOffset withPropertyName(String propertyName)

Set the propertyName property: The event property that will be contain the offset information to calculate the local timestamp. When the LocalTimestampFormat is Iana, the property name will contain the name of the column which contains IANA Timezone Name (eg: Americas/Los Angeles). When LocalTimestampFormat is Timespan, it contains the name of property which contains values representing the offset (eg: P1D or 1.00:00:00).

Parameters:

propertyName - the propertyName value to set.

Returns:

the LocalTimestampTimeZoneOffset object itself.

Applies to