Class MicrosoftGraphShift


public final class MicrosoftGraphShift extends MicrosoftGraphChangeTrackedEntity
shift.
  • Constructor Details

    • MicrosoftGraphShift

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

    • draftShift

      public MicrosoftGraphShiftItem draftShift()
      Get the draftShift property: shiftItem.
      Returns:
      the draftShift value.
    • withDraftShift

      public MicrosoftGraphShift withDraftShift(MicrosoftGraphShiftItem draftShift)
      Set the draftShift property: shiftItem.
      Parameters:
      draftShift - the draftShift value to set.
      Returns:
      the MicrosoftGraphShift object itself.
    • schedulingGroupId

      public String schedulingGroupId()
      Get the schedulingGroupId property: ID of the scheduling group the shift is part of. Required.
      Returns:
      the schedulingGroupId value.
    • withSchedulingGroupId

      public MicrosoftGraphShift withSchedulingGroupId(String schedulingGroupId)
      Set the schedulingGroupId property: ID of the scheduling group the shift is part of. Required.
      Parameters:
      schedulingGroupId - the schedulingGroupId value to set.
      Returns:
      the MicrosoftGraphShift object itself.
    • sharedShift

      public MicrosoftGraphShiftItem sharedShift()
      Get the sharedShift property: shiftItem.
      Returns:
      the sharedShift value.
    • withSharedShift

      public MicrosoftGraphShift withSharedShift(MicrosoftGraphShiftItem sharedShift)
      Set the sharedShift property: shiftItem.
      Parameters:
      sharedShift - the sharedShift value to set.
      Returns:
      the MicrosoftGraphShift object itself.
    • userId

      public String userId()
      Get the userId property: ID of the user assigned to the shift. Required.
      Returns:
      the userId value.
    • withUserId

      public MicrosoftGraphShift withUserId(String userId)
      Set the userId property: ID of the user assigned to the shift. Required.
      Parameters:
      userId - the userId value to set.
      Returns:
      the MicrosoftGraphShift object itself.
    • additionalProperties

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

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

      public MicrosoftGraphShift 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 MicrosoftGraphShift 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 MicrosoftGraphShift 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 MicrosoftGraphShift 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.