Package com.microsoft.graph.models
Class TimeOffReason
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.ChangeTrackedEntity
com.microsoft.graph.models.TimeOffReason
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder,com.microsoft.kiota.serialization.Parsable,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class TimeOffReason
extends ChangeTrackedEntity
implements com.microsoft.kiota.serialization.Parsable
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TimeOffReasoncreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valuegetCode()Gets the code property value.Gets the displayName property value.The deserialization information for the current modelGets the iconType property value.Gets the isActive property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidSets the code property value.voidsetDisplayName(String value) Sets the displayName property value.voidsetIconType(TimeOffReasonIconType value) Sets the iconType property value.voidsetIsActive(Boolean value) Sets the isActive property value.Methods inherited from class com.microsoft.graph.models.ChangeTrackedEntity
getCreatedBy, getCreatedDateTime, getLastModifiedBy, getLastModifiedDateTime, setCreatedBy, setCreatedDateTime, setLastModifiedBy, setLastModifiedDateTimeMethods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
TimeOffReason
public TimeOffReason()Instantiates a newTimeOffReasonand sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static TimeOffReason 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
TimeOffReason
-
getCode
Gets the code property value. The code of the timeOffReason to represent an external identifier. This field must be unique within the team in Microsoft Teams and uses an alphanumeric format, with a maximum of 100 characters.- Returns:
- a
String
-
getDisplayName
Gets the displayName property value. The name of the timeOffReason. Required.- Returns:
- a
String
-
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 classChangeTrackedEntity- Returns:
- a
Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getIconType
Gets the iconType property value. Supported icon types are: none, car, calendar, running, plane, firstAid, doctor, notWorking, clock, juryDuty, globe, cup, phone, weather, umbrella, piggyBank, dog, cake, trafficCone, pin, sunny. Required.- Returns:
- a
TimeOffReasonIconType
-
getIsActive
Gets the isActive property value. Indicates whether the timeOffReason can be used when creating new entities or updating existing ones. Required.- Returns:
- a
Boolean
-
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 classChangeTrackedEntity- Parameters:
writer- Serialization writer to use to serialize this model
-
setCode
Sets the code property value. The code of the timeOffReason to represent an external identifier. This field must be unique within the team in Microsoft Teams and uses an alphanumeric format, with a maximum of 100 characters.- Parameters:
value- Value to set for the code property.
-
setDisplayName
Sets the displayName property value. The name of the timeOffReason. Required.- Parameters:
value- Value to set for the displayName property.
-
setIconType
Sets the iconType property value. Supported icon types are: none, car, calendar, running, plane, firstAid, doctor, notWorking, clock, juryDuty, globe, cup, phone, weather, umbrella, piggyBank, dog, cake, trafficCone, pin, sunny. Required.- Parameters:
value- Value to set for the iconType property.
-
setIsActive
Sets the isActive property value. Indicates whether the timeOffReason can be used when creating new entities or updating existing ones. Required.- Parameters:
value- Value to set for the isActive property.
-