Class 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
  • Constructor Details

    • TimeOffReason

      public TimeOffReason()
      Instantiates a new TimeOffReason and 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

      @Nullable public String 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

      @Nullable public 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:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class ChangeTrackedEntity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getIconType

      @Nullable public TimeOffReasonIconType 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

      @Nullable public Boolean 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:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class ChangeTrackedEntity
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setCode

      public void setCode(@Nullable String value)
      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

      public void setDisplayName(@Nullable String value)
      Sets the displayName property value. The name of the timeOffReason. Required.
      Parameters:
      value - Value to set for the displayName property.
    • setIconType

      public void setIconType(@Nullable TimeOffReasonIconType value)
      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

      public void setIsActive(@Nullable Boolean value)
      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.