Package com.microsoft.graph.models
Class CustomTimeZone
java.lang.Object
com.microsoft.graph.models.TimeZoneBase
com.microsoft.graph.models.CustomTimeZone
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder,com.microsoft.kiota.serialization.Parsable,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class CustomTimeZone
extends TimeZoneBase
implements com.microsoft.kiota.serialization.Parsable
-
Field Summary
Fields inherited from class com.microsoft.graph.models.TimeZoneBase
backingStore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomTimeZonecreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valuegetBias()Gets the bias property value.Gets the daylightOffset property value.The deserialization information for the current modelGets the standardOffset property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidSets the bias property value.voidSets the daylightOffset property value.voidSets the standardOffset property value.Methods inherited from class com.microsoft.graph.models.TimeZoneBase
getAdditionalData, getBackingStore, getName, getOdataType, setAdditionalData, setBackingStore, setName, setOdataType
-
Constructor Details
-
CustomTimeZone
public CustomTimeZone()Instantiates a newCustomTimeZoneand sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static CustomTimeZone createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator value- Parameters:
parseNode- The parse node to use to read the discriminator value and create the object- Returns:
- a
CustomTimeZone
-
getBias
Gets the bias property value. The time offset of the time zone from Coordinated Universal Time (UTC). This value is in minutes.Time zones that are ahead of UTC have a positive offset; time zones that are behind UTC have a negative offset.- Returns:
- a
Integer
-
getDaylightOffset
Gets the daylightOffset property value. Specifies when the time zone switches from standard time to daylight saving time.- Returns:
- a
DaylightTimeZoneOffset
-
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model- Specified by:
getFieldDeserializersin interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
getFieldDeserializersin classTimeZoneBase- Returns:
- a
Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getStandardOffset
Gets the standardOffset property value. Specifies when the time zone switches from daylight saving time to standard time.- Returns:
- a
StandardTimeZoneOffset
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object- Specified by:
serializein interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
serializein classTimeZoneBase- Parameters:
writer- Serialization writer to use to serialize this model
-
setBias
Sets the bias property value. The time offset of the time zone from Coordinated Universal Time (UTC). This value is in minutes.Time zones that are ahead of UTC have a positive offset; time zones that are behind UTC have a negative offset.- Parameters:
value- Value to set for the bias property.
-
setDaylightOffset
Sets the daylightOffset property value. Specifies when the time zone switches from standard time to daylight saving time.- Parameters:
value- Value to set for the daylightOffset property.
-
setStandardOffset
Sets the standardOffset property value. Specifies when the time zone switches from daylight saving time to standard time.- Parameters:
value- Value to set for the standardOffset property.
-