你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MicrosoftGraphShiftItem Class

public class MicrosoftGraphShiftItem
extends MicrosoftGraphScheduleEntity

shiftItem.

Constructor Summary

Constructor Description
MicrosoftGraphShiftItem()

Creates an instance of MicrosoftGraphShiftItem class.

Method Summary

Modifier and Type Method and Description
List<MicrosoftGraphShiftActivity> 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.

Map<String,Object> additionalProperties()

Get the additionalProperties property: shiftItem.

String displayName()

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

static MicrosoftGraphShiftItem fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphShiftItem from the JsonReader.

String notes()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphShiftItem 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.

MicrosoftGraphShiftItem withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: shiftItem.

MicrosoftGraphShiftItem withDisplayName(String displayName)

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

MicrosoftGraphShiftItem withEndDateTime(OffsetDateTime endDateTime)

Set the endDateTime property: The endDateTime property.

MicrosoftGraphShiftItem withNotes(String notes)

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

MicrosoftGraphShiftItem withStartDateTime(OffsetDateTime startDateTime)

Set the startDateTime property: The startDateTime property.

MicrosoftGraphShiftItem withTheme(MicrosoftGraphScheduleEntityTheme theme)

Set the theme property: scheduleEntityTheme.

Methods inherited from MicrosoftGraphScheduleEntity

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphShiftItem

public MicrosoftGraphShiftItem()

Creates an instance of MicrosoftGraphShiftItem class.

Method Details

activities

public List 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.

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: shiftItem.

Overrides:

MicrosoftGraphShiftItem.additionalProperties()

Returns:

the additionalProperties value.

displayName

public String displayName()

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

Returns:

the displayName value.

fromJson

public static MicrosoftGraphShiftItem fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphShiftItem from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphShiftItem if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the MicrosoftGraphShiftItem.

notes

public String notes()

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

Returns:

the notes value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphShiftItem.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphShiftItem.validate()

withActivities

public MicrosoftGraphShiftItem 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.

Parameters:

activities - the activities value to set.

Returns:

the MicrosoftGraphShiftItem object itself.

withAdditionalProperties

public MicrosoftGraphShiftItem withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: shiftItem.

Overrides:

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

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphShiftItem object itself.

withDisplayName

public MicrosoftGraphShiftItem withDisplayName(String displayName)

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

Parameters:

displayName - the displayName value to set.

Returns:

the MicrosoftGraphShiftItem object itself.

withEndDateTime

public MicrosoftGraphShiftItem withEndDateTime(OffsetDateTime endDateTime)

Set the endDateTime property: The endDateTime property.

Overrides:

MicrosoftGraphShiftItem.withEndDateTime(OffsetDateTime endDateTime)

Parameters:

endDateTime

withNotes

public MicrosoftGraphShiftItem withNotes(String notes)

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

Parameters:

notes - the notes value to set.

Returns:

the MicrosoftGraphShiftItem object itself.

withStartDateTime

public MicrosoftGraphShiftItem withStartDateTime(OffsetDateTime startDateTime)

Set the startDateTime property: The startDateTime property.

Overrides:

MicrosoftGraphShiftItem.withStartDateTime(OffsetDateTime startDateTime)

Parameters:

startDateTime

withTheme

public MicrosoftGraphShiftItem withTheme(MicrosoftGraphScheduleEntityTheme theme)

Set the theme property: scheduleEntityTheme.

Overrides:

MicrosoftGraphShiftItem.withTheme(MicrosoftGraphScheduleEntityTheme theme)

Parameters:

theme

Applies to