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.Integer
openSlotCount()
Get the openSlotCount property: Count of the number of slots for the given open shift.void
validate()
Validates the instance.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.MicrosoftGraphOpenShiftItem
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: openShiftItem.MicrosoftGraphOpenShiftItem
withDisplayName(String displayName)
Set the displayName property: The shift label of the shiftItem.MicrosoftGraphOpenShiftItem
withEndDateTime(OffsetDateTime endDateTime)
Set the endDateTime property: The endDateTime property.MicrosoftGraphOpenShiftItem
withNotes(String notes)
Set the notes property: The shift notes for the shiftItem.MicrosoftGraphOpenShiftItem
withOpenSlotCount(Integer openSlotCount)
Set the openSlotCount property: Count of the number of slots for the given open shift.MicrosoftGraphOpenShiftItem
withStartDateTime(OffsetDateTime startDateTime)
Set the startDateTime property: The startDateTime property.MicrosoftGraphOpenShiftItem
withTheme(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:
additionalProperties
in classMicrosoftGraphShiftItem
- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphOpenShiftItem withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: openShiftItem.- Overrides:
withAdditionalProperties
in 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:
withActivities
in 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:
withDisplayName
in 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:
withNotes
in 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:
withEndDateTime
in 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:
withStartDateTime
in 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:
withTheme
in classMicrosoftGraphShiftItem
- Parameters:
theme
- the theme value to set.- Returns:
- the MicrosoftGraphScheduleEntity object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classMicrosoftGraphShiftItem
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-