Class TimeZone
java.lang.Object
com.azure.analytics.purview.datamap.models.TimeZone
- All Implemented Interfaces:
com.azure.json.JsonSerializable<TimeZone>
The timezone information.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TimeZonefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TimeZone from the JsonReader.Get the availableIds property: An array of available IDs.Get the defaultProperty property: The timezone information.Get the displayName property: The display name of the timezone.Get the dstSavings property: The value of the daylight saving time.getId()Get the id property: The ID of the timezone.Get the rawOffset property: The raw offset of the timezone.setAvailableIds(List<String> availableIds) Set the availableIds property: An array of available IDs.setDefaultProperty(TimeZone defaultProperty) Set the defaultProperty property: The timezone information.setDisplayName(String displayName) Set the displayName property: The display name of the timezone.setDstSavings(Integer dstSavings) Set the dstSavings property: The value of the daylight saving time.Set the id property: The ID of the timezone.setRawOffset(Integer rawOffset) Set the rawOffset property: The raw offset of the timezone.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
TimeZone
public TimeZone()Creates an instance of TimeZone class.
-
-
Method Details
-
getDstSavings
Get the dstSavings property: The value of the daylight saving time.- Returns:
- the dstSavings value.
-
setDstSavings
Set the dstSavings property: The value of the daylight saving time.- Parameters:
dstSavings- the dstSavings value to set.- Returns:
- the TimeZone object itself.
-
getId
Get the id property: The ID of the timezone.- Returns:
- the id value.
-
setId
Set the id property: The ID of the timezone.- Parameters:
id- the id value to set.- Returns:
- the TimeZone object itself.
-
getAvailableIds
Get the availableIds property: An array of available IDs.- Returns:
- the availableIds value.
-
setAvailableIds
Set the availableIds property: An array of available IDs.- Parameters:
availableIds- the availableIds value to set.- Returns:
- the TimeZone object itself.
-
getDefaultProperty
Get the defaultProperty property: The timezone information.- Returns:
- the defaultProperty value.
-
setDefaultProperty
Set the defaultProperty property: The timezone information.- Parameters:
defaultProperty- the defaultProperty value to set.- Returns:
- the TimeZone object itself.
-
getDisplayName
Get the displayName property: The display name of the timezone.- Returns:
- the displayName value.
-
setDisplayName
Set the displayName property: The display name of the timezone.- Parameters:
displayName- the displayName value to set.- Returns:
- the TimeZone object itself.
-
getRawOffset
Get the rawOffset property: The raw offset of the timezone.- Returns:
- the rawOffset value.
-
setRawOffset
Set the rawOffset property: The raw offset of the timezone.- Parameters:
rawOffset- the rawOffset value to set.- Returns:
- the TimeZone object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<TimeZone>- Throws:
IOException
-
fromJson
Reads an instance of TimeZone from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of TimeZone 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 TimeZone.
-