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 Summary
Constructors Constructor Description MicrosoftGraphShiftItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.Map<String,Object>additionalProperties()Get the additionalProperties property: shiftItem.StringdisplayName()Get the displayName property: The shift label of the shiftItem.Stringnotes()Get the notes property: The shift notes for the shiftItem.voidvalidate()Validates the instance.MicrosoftGraphShiftItemwithActivities(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.MicrosoftGraphShiftItemwithAdditionalProperties(Map<String,Object> additionalProperties)Set the additionalProperties property: shiftItem.MicrosoftGraphShiftItemwithDisplayName(String displayName)Set the displayName property: The shift label of the shiftItem.MicrosoftGraphShiftItemwithEndDateTime(OffsetDateTime endDateTime)Set the endDateTime property: The endDateTime property.MicrosoftGraphShiftItemwithNotes(String notes)Set the notes property: The shift notes for the shiftItem.MicrosoftGraphShiftItemwithStartDateTime(OffsetDateTime startDateTime)Set the startDateTime property: The startDateTime property.MicrosoftGraphShiftItemwithTheme(MicrosoftGraphScheduleEntityTheme theme)Set the theme property: The theme property.-
Methods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphScheduleEntity
endDateTime, startDateTime, theme
-
-
-
-
Method Detail
-
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:
additionalPropertiesin classMicrosoftGraphScheduleEntity- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphShiftItem withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: shiftItem.- Overrides:
withAdditionalPropertiesin classMicrosoftGraphScheduleEntity- 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:
withEndDateTimein classMicrosoftGraphScheduleEntity- 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:
withStartDateTimein classMicrosoftGraphScheduleEntity- Parameters:
startDateTime- the startDateTime value to set.- Returns:
- the MicrosoftGraphScheduleEntity object itself.
-
withTheme
public MicrosoftGraphShiftItem withTheme(MicrosoftGraphScheduleEntityTheme theme)
Set the theme property: The theme property.- Overrides:
withThemein classMicrosoftGraphScheduleEntity- Parameters:
theme- the theme value to set.- Returns:
- the MicrosoftGraphScheduleEntity object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classMicrosoftGraphScheduleEntity- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-