Class MicrosoftGraphTimeOffReason


public final class MicrosoftGraphTimeOffReason extends MicrosoftGraphChangeTrackedEntity
timeOffReason.
  • Constructor Details

    • MicrosoftGraphTimeOffReason

      public MicrosoftGraphTimeOffReason()
      Creates an instance of MicrosoftGraphTimeOffReason class.
  • Method Details

    • displayName

      public String displayName()
      Get the displayName property: The name of the timeOffReason. Required.
      Returns:
      the displayName value.
    • withDisplayName

      public MicrosoftGraphTimeOffReason withDisplayName(String displayName)
      Set the displayName property: The name of the timeOffReason. Required.
      Parameters:
      displayName - the displayName value to set.
      Returns:
      the MicrosoftGraphTimeOffReason object itself.
    • iconType

      Get the iconType property: timeOffReasonIconType.
      Returns:
      the iconType value.
    • withIconType

      Set the iconType property: timeOffReasonIconType.
      Parameters:
      iconType - the iconType value to set.
      Returns:
      the MicrosoftGraphTimeOffReason object itself.
    • isActive

      public Boolean isActive()
      Get the isActive property: Indicates whether the timeOffReason can be used when creating new entities or updating existing ones. Required.
      Returns:
      the isActive value.
    • withIsActive

      public MicrosoftGraphTimeOffReason withIsActive(Boolean isActive)
      Set the isActive property: Indicates whether the timeOffReason can be used when creating new entities or updating existing ones. Required.
      Parameters:
      isActive - the isActive value to set.
      Returns:
      the MicrosoftGraphTimeOffReason object itself.
    • additionalProperties

      public Map<String,Object> additionalProperties()
      Get the additionalProperties property: timeOffReason.
      Overrides:
      additionalProperties in class MicrosoftGraphChangeTrackedEntity
      Returns:
      the additionalProperties value.
    • withAdditionalProperties

      public MicrosoftGraphTimeOffReason withAdditionalProperties(Map<String,Object> additionalProperties)
      Set the additionalProperties property: timeOffReason.
      Overrides:
      withAdditionalProperties in class MicrosoftGraphChangeTrackedEntity
      Parameters:
      additionalProperties - the additionalProperties value to set.
      Returns:
      the MicrosoftGraphTimeOffReason object itself.
    • withCreatedDateTime

      public MicrosoftGraphTimeOffReason withCreatedDateTime(OffsetDateTime createdDateTime)
      Set the createdDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'.
      Overrides:
      withCreatedDateTime in class MicrosoftGraphChangeTrackedEntity
      Parameters:
      createdDateTime - the createdDateTime value to set.
      Returns:
      the MicrosoftGraphChangeTrackedEntity object itself.
    • withLastModifiedBy

      public MicrosoftGraphTimeOffReason withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)
      Set the lastModifiedBy property: identitySet.
      Overrides:
      withLastModifiedBy in class MicrosoftGraphChangeTrackedEntity
      Parameters:
      lastModifiedBy - the lastModifiedBy value to set.
      Returns:
      the MicrosoftGraphChangeTrackedEntity object itself.
    • withLastModifiedDateTime

      public MicrosoftGraphTimeOffReason withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
      Set the lastModifiedDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'.
      Overrides:
      withLastModifiedDateTime in class MicrosoftGraphChangeTrackedEntity
      Parameters:
      lastModifiedDateTime - the lastModifiedDateTime value to set.
      Returns:
      the MicrosoftGraphChangeTrackedEntity object itself.
    • withId

      public MicrosoftGraphTimeOffReason withId(String id)
      Set the id property: Read-only.
      Overrides:
      withId in class MicrosoftGraphChangeTrackedEntity
      Parameters:
      id - the id value to set.
      Returns:
      the MicrosoftGraphEntity object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class MicrosoftGraphChangeTrackedEntity
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.