Class MicrosoftGraphShiftItem
java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphScheduleEntity
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphShiftItem
- Direct Known Subclasses:
MicrosoftGraphOpenShiftItem
shiftItem.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MicrosoftGraphShiftItem class. -
Method Summary
Modifier and TypeMethodDescriptionGet the activities property: An incremental part of a shift which can cover details of when and where an employee is during their shift.Get the additionalProperties property: shiftItem.Get the displayName property: The shift label of the shiftItem.notes()Get the notes property: The shift notes for the shiftItem.voidvalidate()Validates the instance.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.withAdditionalProperties(Map<String, Object> additionalProperties) Set the additionalProperties property: shiftItem.withDisplayName(String displayName) Set the displayName property: The shift label of the shiftItem.withEndDateTime(OffsetDateTime endDateTime) Set the endDateTime property: The endDateTime property.Set the notes property: The shift notes for the shiftItem.withStartDateTime(OffsetDateTime startDateTime) Set the startDateTime property: The startDateTime property.Set the theme property: scheduleEntityTheme.Methods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphScheduleEntity
endDateTime, startDateTime, theme
-
Constructor Details
-
MicrosoftGraphShiftItem
public MicrosoftGraphShiftItem()Creates an instance of MicrosoftGraphShiftItem class.
-
-
Method Details
-
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
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
Get the displayName property: The shift label of the shiftItem.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: The shift label of the shiftItem.- Parameters:
displayName- the displayName value to set.- Returns:
- the MicrosoftGraphShiftItem object itself.
-
notes
Get the notes property: The shift notes for the shiftItem.- Returns:
- the notes value.
-
withNotes
Set the notes property: The shift notes for the shiftItem.- Parameters:
notes- the notes value to set.- Returns:
- the MicrosoftGraphShiftItem object itself.
-
additionalProperties
Get the additionalProperties property: shiftItem.- Overrides:
additionalPropertiesin classMicrosoftGraphScheduleEntity- Returns:
- the additionalProperties value.
-
withAdditionalProperties
Set the additionalProperties property: shiftItem.- Overrides:
withAdditionalPropertiesin classMicrosoftGraphScheduleEntity- Parameters:
additionalProperties- the additionalProperties value to set.- Returns:
- the MicrosoftGraphShiftItem object itself.
-
withEndDateTime
Set the endDateTime property: The endDateTime property.- Overrides:
withEndDateTimein classMicrosoftGraphScheduleEntity- Parameters:
endDateTime- the endDateTime value to set.- Returns:
- the MicrosoftGraphScheduleEntity object itself.
-
withStartDateTime
Set the startDateTime property: The startDateTime property.- Overrides:
withStartDateTimein classMicrosoftGraphScheduleEntity- Parameters:
startDateTime- the startDateTime value to set.- Returns:
- the MicrosoftGraphScheduleEntity object itself.
-
withTheme
Set the theme property: scheduleEntityTheme.- 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.
-