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
-
public final class MicrosoftGraphOpenShiftItem extends MicrosoftGraphShiftItem
openShiftItem.
-
-
Constructor Summary
Constructors Constructor Description MicrosoftGraphOpenShiftItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>additionalProperties()Get the additionalProperties property: openShiftItem.IntegeropenSlotCount()Get the openSlotCount property: Count of the number of slots for the given open shift.voidvalidate()Validates the instance.MicrosoftGraphOpenShiftItemwithActivities(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.MicrosoftGraphOpenShiftItemwithAdditionalProperties(Map<String,Object> additionalProperties)Set the additionalProperties property: openShiftItem.MicrosoftGraphOpenShiftItemwithDisplayName(String displayName)Set the displayName property: The shift label of the shiftItem.MicrosoftGraphOpenShiftItemwithEndDateTime(OffsetDateTime endDateTime)Set the endDateTime property: The endDateTime property.MicrosoftGraphOpenShiftItemwithNotes(String notes)Set the notes property: The shift notes for the shiftItem.MicrosoftGraphOpenShiftItemwithOpenSlotCount(Integer openSlotCount)Set the openSlotCount property: Count of the number of slots for the given open shift.MicrosoftGraphOpenShiftItemwithStartDateTime(OffsetDateTime startDateTime)Set the startDateTime property: The startDateTime property.MicrosoftGraphOpenShiftItemwithTheme(MicrosoftGraphScheduleEntityTheme theme)Set the theme property: The theme property.-
Methods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphShiftItem
activities, displayName, notes
-
Methods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphScheduleEntity
endDateTime, startDateTime, theme
-
-
-
-
Method Detail
-
openSlotCount
public Integer openSlotCount()
Get the openSlotCount property: Count of the number of slots for the given open shift.- Returns:
- the openSlotCount value.
-
withOpenSlotCount
public MicrosoftGraphOpenShiftItem withOpenSlotCount(Integer openSlotCount)
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
public Map<String,Object> 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
public MicrosoftGraphOpenShiftItem 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.- Overrides:
withActivitiesin classMicrosoftGraphShiftItem- Parameters:
activities- the activities value to set.- Returns:
- the MicrosoftGraphShiftItem object itself.
-
withDisplayName
public MicrosoftGraphOpenShiftItem withDisplayName(String displayName)
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
public MicrosoftGraphOpenShiftItem withNotes(String notes)
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
public MicrosoftGraphOpenShiftItem withEndDateTime(OffsetDateTime endDateTime)
Set the endDateTime property: The endDateTime property.- Overrides:
withEndDateTimein classMicrosoftGraphShiftItem- Parameters:
endDateTime- the endDateTime value to set.- Returns:
- the MicrosoftGraphScheduleEntity object itself.
-
withStartDateTime
public MicrosoftGraphOpenShiftItem withStartDateTime(OffsetDateTime startDateTime)
Set the startDateTime property: The startDateTime property.- Overrides:
withStartDateTimein classMicrosoftGraphShiftItem- Parameters:
startDateTime- the startDateTime value to set.- Returns:
- the MicrosoftGraphScheduleEntity object itself.
-
withTheme
public MicrosoftGraphOpenShiftItem withTheme(MicrosoftGraphScheduleEntityTheme theme)
Set the theme property: The theme property.- 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.
-
-