Class MicrosoftGraphShiftItem

java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphScheduleEntity
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphShiftItem
Direct Known Subclasses:
MicrosoftGraphOpenShiftItem

public class MicrosoftGraphShiftItem extends MicrosoftGraphScheduleEntity
shiftItem.
  • Constructor Details

    • MicrosoftGraphShiftItem

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

    • activities

      public List<MicrosoftGraphShiftActivity> activities()
      Get the activities property: An incremental part of a shift which can cover details of when and where an employee is during their shift. For example, an assignment or a scheduled break or lunch. Required.
      Returns:
      the activities value.
    • withActivities

      public MicrosoftGraphShiftItem withActivities(List<MicrosoftGraphShiftActivity> activities)
      Set the activities property: An incremental part of a shift which can cover details of when and where an employee is during their shift. For example, an assignment or a scheduled break or lunch. Required.
      Parameters:
      activities - the activities value to set.
      Returns:
      the MicrosoftGraphShiftItem object itself.
    • displayName

      public String displayName()
      Get the displayName property: The shift label of the shiftItem.
      Returns:
      the displayName value.
    • withDisplayName

      public MicrosoftGraphShiftItem withDisplayName(String displayName)
      Set the displayName property: The shift label of the shiftItem.
      Parameters:
      displayName - the displayName value to set.
      Returns:
      the MicrosoftGraphShiftItem object itself.
    • notes

      public String notes()
      Get the notes property: The shift notes for the shiftItem.
      Returns:
      the notes value.
    • withNotes

      public MicrosoftGraphShiftItem withNotes(String notes)
      Set the notes property: The shift notes for the shiftItem.
      Parameters:
      notes - the notes value to set.
      Returns:
      the MicrosoftGraphShiftItem object itself.
    • additionalProperties

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

      public MicrosoftGraphShiftItem withAdditionalProperties(Map<String,Object> additionalProperties)
      Set the additionalProperties property: shiftItem.
      Overrides:
      withAdditionalProperties in class MicrosoftGraphScheduleEntity
      Parameters:
      additionalProperties - the additionalProperties value to set.
      Returns:
      the MicrosoftGraphShiftItem object itself.
    • withEndDateTime

      public MicrosoftGraphShiftItem withEndDateTime(OffsetDateTime endDateTime)
      Set the endDateTime property: The endDateTime property.
      Overrides:
      withEndDateTime in class MicrosoftGraphScheduleEntity
      Parameters:
      endDateTime - the endDateTime value to set.
      Returns:
      the MicrosoftGraphScheduleEntity object itself.
    • withStartDateTime

      public MicrosoftGraphShiftItem withStartDateTime(OffsetDateTime startDateTime)
      Set the startDateTime property: The startDateTime property.
      Overrides:
      withStartDateTime in class MicrosoftGraphScheduleEntity
      Parameters:
      startDateTime - the startDateTime value to set.
      Returns:
      the MicrosoftGraphScheduleEntity object itself.
    • withTheme

      Set the theme property: scheduleEntityTheme.
      Overrides:
      withTheme in class MicrosoftGraphScheduleEntity
      Parameters:
      theme - the theme value to set.
      Returns:
      the MicrosoftGraphScheduleEntity object itself.
    • validate

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