MicrosoftGraphOpenShiftItem Class

public final class MicrosoftGraphOpenShiftItem
extends MicrosoftGraphShiftItem

openShiftItem.

Constructor Summary

Constructor Description
MicrosoftGraphOpenShiftItem()

Creates an instance of MicrosoftGraphOpenShiftItem class.

Method Summary

Modifier and Type Method and 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: scheduleEntityTheme.

Methods inherited from MicrosoftGraphScheduleEntity

Methods inherited from MicrosoftGraphShiftItem

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphOpenShiftItem

public MicrosoftGraphOpenShiftItem()

Creates an instance of MicrosoftGraphOpenShiftItem class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: openShiftItem.

Overrides:

MicrosoftGraphOpenShiftItem.additionalProperties()

Returns:

the additionalProperties value.

openSlotCount

public Integer openSlotCount()

Get the openSlotCount property: Count of the number of slots for the given open shift.

Returns:

the openSlotCount value.

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphOpenShiftItem.validate()

withActivities

public MicrosoftGraphOpenShiftItem withActivities(List 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:

MicrosoftGraphOpenShiftItem.withActivities(List<MicrosoftGraphShiftActivity> activities)

Parameters:

activities

withAdditionalProperties

public MicrosoftGraphOpenShiftItem withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: openShiftItem.

Overrides:

MicrosoftGraphOpenShiftItem.withAdditionalProperties(Map<String,Object> additionalProperties)

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphOpenShiftItem object itself.

withDisplayName

public MicrosoftGraphOpenShiftItem withDisplayName(String displayName)

Set the displayName property: The shift label of the shiftItem.

Overrides:

MicrosoftGraphOpenShiftItem.withDisplayName(String displayName)

Parameters:

displayName

withEndDateTime

public MicrosoftGraphOpenShiftItem withEndDateTime(OffsetDateTime endDateTime)

Set the endDateTime property: The endDateTime property.

Overrides:

MicrosoftGraphOpenShiftItem.withEndDateTime(OffsetDateTime endDateTime)

Parameters:

endDateTime

withNotes

public MicrosoftGraphOpenShiftItem withNotes(String notes)

Set the notes property: The shift notes for the shiftItem.

Overrides:

MicrosoftGraphOpenShiftItem.withNotes(String notes)

Parameters:

notes

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.

withStartDateTime

public MicrosoftGraphOpenShiftItem withStartDateTime(OffsetDateTime startDateTime)

Set the startDateTime property: The startDateTime property.

Overrides:

MicrosoftGraphOpenShiftItem.withStartDateTime(OffsetDateTime startDateTime)

Parameters:

startDateTime

withTheme

public MicrosoftGraphOpenShiftItem withTheme(MicrosoftGraphScheduleEntityTheme theme)

Set the theme property: scheduleEntityTheme.

Overrides:

MicrosoftGraphOpenShiftItem.withTheme(MicrosoftGraphScheduleEntityTheme theme)

Parameters:

theme

Applies to