Class LocalTimestamp
java.lang.Object
com.azure.resourcemanager.timeseriesinsights.models.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
-
Method Summary
Modifier and TypeMethodDescriptionformat()
Get the format property: An enum that represents the format of the local timestamp property that needs to be set.Get the timeZoneOffset property: An object that represents the offset information for the local timestamp format specified.void
validate()
Validates the instance.withFormat
(LocalTimestampFormat format) Set the format property: An enum that represents the format of the local timestamp property that needs to be set.withTimeZoneOffset
(LocalTimestampTimeZoneOffset timeZoneOffset) Set the timeZoneOffset property: An object that represents the offset information for the local timestamp format specified.
-
Constructor Details
-
LocalTimestamp
public LocalTimestamp()Creates an instance of LocalTimestamp class.
-
-
Method Details
-
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.
-
withFormat
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.
-
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.
-
withTimeZoneOffset
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-