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

MicrosoftGraphShift Class

public final class MicrosoftGraphShift
extends MicrosoftGraphChangeTrackedEntity

shift.

Constructor Summary

Constructor Description
MicrosoftGraphShift()

Creates an instance of MicrosoftGraphShift class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: shift.

MicrosoftGraphShiftItem draftShift()

Get the draftShift property: shiftItem.

static MicrosoftGraphShift fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphShift from the JsonReader.

String schedulingGroupId()

Get the schedulingGroupId property: ID of the scheduling group the shift is part of.

MicrosoftGraphShiftItem sharedShift()

Get the sharedShift property: shiftItem.

JsonWriter toJson(JsonWriter jsonWriter)
String userId()

Get the userId property: ID of the user assigned to the shift.

void validate()

Validates the instance.

MicrosoftGraphShift withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: shift.

MicrosoftGraphShift withCreatedDateTime(OffsetDateTime createdDateTime)

Set the createdDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time.

MicrosoftGraphShift withDraftShift(MicrosoftGraphShiftItem draftShift)

Set the draftShift property: shiftItem.

MicrosoftGraphShift withId(String id)

Set the id property: Read-only.

MicrosoftGraphShift withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)

Set the lastModifiedBy property: identitySet.

MicrosoftGraphShift withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)

Set the lastModifiedDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time.

MicrosoftGraphShift withSchedulingGroupId(String schedulingGroupId)

Set the schedulingGroupId property: ID of the scheduling group the shift is part of.

MicrosoftGraphShift withSharedShift(MicrosoftGraphShiftItem sharedShift)

Set the sharedShift property: shiftItem.

MicrosoftGraphShift withUserId(String userId)

Set the userId property: ID of the user assigned to the shift.

Methods inherited from MicrosoftGraphChangeTrackedEntity

Methods inherited from MicrosoftGraphEntity

id

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphShift

public MicrosoftGraphShift()

Creates an instance of MicrosoftGraphShift class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: shift.

Overrides:

MicrosoftGraphShift.additionalProperties()

Returns:

the additionalProperties value.

draftShift

public MicrosoftGraphShiftItem draftShift()

Get the draftShift property: shiftItem.

Returns:

the draftShift value.

fromJson

public static MicrosoftGraphShift fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphShift from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphShift 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 MicrosoftGraphShift.

schedulingGroupId

public String schedulingGroupId()

Get the schedulingGroupId property: ID of the scheduling group the shift is part of. Required.

Returns:

the schedulingGroupId value.

sharedShift

public MicrosoftGraphShiftItem sharedShift()

Get the sharedShift property: shiftItem.

Returns:

the sharedShift value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphShift.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

userId

public String userId()

Get the userId property: ID of the user assigned to the shift. Required.

Returns:

the userId value.

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphShift.validate()

withAdditionalProperties

public MicrosoftGraphShift withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: shift.

Overrides:

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

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphShift object itself.

withCreatedDateTime

public MicrosoftGraphShift withCreatedDateTime(OffsetDateTime createdDateTime)

Set the createdDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'.

Overrides:

MicrosoftGraphShift.withCreatedDateTime(OffsetDateTime createdDateTime)

Parameters:

createdDateTime

withDraftShift

public MicrosoftGraphShift withDraftShift(MicrosoftGraphShiftItem draftShift)

Set the draftShift property: shiftItem.

Parameters:

draftShift - the draftShift value to set.

Returns:

the MicrosoftGraphShift object itself.

withId

public MicrosoftGraphShift withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphShift.withId(String id)

Parameters:

id

withLastModifiedBy

public MicrosoftGraphShift withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)

Set the lastModifiedBy property: identitySet.

Overrides:

MicrosoftGraphShift.withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)

Parameters:

lastModifiedBy

withLastModifiedDateTime

public MicrosoftGraphShift withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)

Set the lastModifiedDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'.

Overrides:

MicrosoftGraphShift.withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)

Parameters:

lastModifiedDateTime

withSchedulingGroupId

public MicrosoftGraphShift withSchedulingGroupId(String schedulingGroupId)

Set the schedulingGroupId property: ID of the scheduling group the shift is part of. Required.

Parameters:

schedulingGroupId - the schedulingGroupId value to set.

Returns:

the MicrosoftGraphShift object itself.

withSharedShift

public MicrosoftGraphShift withSharedShift(MicrosoftGraphShiftItem sharedShift)

Set the sharedShift property: shiftItem.

Parameters:

sharedShift - the sharedShift value to set.

Returns:

the MicrosoftGraphShift object itself.

withUserId

public MicrosoftGraphShift withUserId(String userId)

Set the userId property: ID of the user assigned to the shift. Required.

Parameters:

userId - the userId value to set.

Returns:

the MicrosoftGraphShift object itself.

Applies to