Class MicrosoftGraphOpenShiftItem
java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphScheduleEntity
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphShiftItem
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphOpenShiftItem
openShiftItem.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MicrosoftGraphOpenShiftItem class. -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalProperties property: openShiftItem.Get the openSlotCount property: Count of the number of slots for the given open shift.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: openShiftItem.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.withOpenSlotCount(Integer openSlotCount) Set the openSlotCount property: Count of the number of slots for the given open shift.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.MicrosoftGraphShiftItem
activities, displayName, notesMethods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphScheduleEntity
endDateTime, startDateTime, theme
-
Constructor Details
-
MicrosoftGraphOpenShiftItem
public MicrosoftGraphOpenShiftItem()Creates an instance of MicrosoftGraphOpenShiftItem class.
-
-
Method Details
-
openSlotCount
Get the openSlotCount property: Count of the number of slots for the given open shift.- Returns:
- the openSlotCount value.
-
withOpenSlotCount
Set the openSlotCount property: Count of the number of slots for the given open shift.- Parameters:
openSlotCount- the openSlotCount value to set.- Returns:
- the MicrosoftGraphOpenShiftItem object itself.
-
additionalProperties
Get the additionalProperties property: openShiftItem.- Overrides:
additionalPropertiesin classMicrosoftGraphShiftItem- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphOpenShiftItem withAdditionalProperties(Map<String, Object> additionalProperties) Set the additionalProperties property: openShiftItem.- Overrides:
withAdditionalPropertiesin classMicrosoftGraphShiftItem- Parameters:
additionalProperties- the additionalProperties value to set.- Returns:
- the MicrosoftGraphOpenShiftItem object itself.
-
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.- Overrides:
withActivitiesin classMicrosoftGraphShiftItem- Parameters:
activities- the activities value to set.- Returns:
- the MicrosoftGraphShiftItem object itself.
-
withDisplayName
Set the displayName property: The shift label of the shiftItem.- Overrides:
withDisplayNamein classMicrosoftGraphShiftItem- Parameters:
displayName- the displayName value to set.- Returns:
- the MicrosoftGraphShiftItem object itself.
-
withNotes
Set the notes property: The shift notes for the shiftItem.- Overrides:
withNotesin classMicrosoftGraphShiftItem- Parameters:
notes- the notes value to set.- Returns:
- the MicrosoftGraphShiftItem object itself.
-
withEndDateTime
Set the endDateTime property: The endDateTime property.- Overrides:
withEndDateTimein classMicrosoftGraphShiftItem- Parameters:
endDateTime- the endDateTime value to set.- Returns:
- the MicrosoftGraphScheduleEntity object itself.
-
withStartDateTime
Set the startDateTime property: The startDateTime property.- Overrides:
withStartDateTimein classMicrosoftGraphShiftItem- Parameters:
startDateTime- the startDateTime value to set.- Returns:
- the MicrosoftGraphScheduleEntity object itself.
-
withTheme
Set the theme property: scheduleEntityTheme.- Overrides:
withThemein classMicrosoftGraphShiftItem- Parameters:
theme- the theme value to set.- Returns:
- the MicrosoftGraphScheduleEntity object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classMicrosoftGraphShiftItem- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-