LocalTimestamp Class
- java.
lang. Object - com.
azure. resourcemanager. timeseriesinsights. models. LocalTimestamp
- com.
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 Local |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Local |
format()
Get the format property: An enum that represents the format of the local timestamp property that needs to be set. |
|
static
Local |
fromJson(JsonReader jsonReader)
Reads an instance of Local |
|
Local |
timeZoneOffset()
Get the time |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Local |
withFormat(LocalTimestampFormat format)
Set the format property: An enum that represents the format of the local timestamp property that needs to be set. |
|
Local |
withTimeZoneOffset(LocalTimestampTimeZoneOffset timeZoneOffset)
Set the time |
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:
fromJson
public static LocalTimestamp fromJson(JsonReader jsonReader)
Reads an instance of LocalTimestamp from the JsonReader.
Parameters:
Returns:
Throws:
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:
toJson
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:
Returns:
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:
Returns: