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

MicrosoftGraphShiftPreferences Class

public final class MicrosoftGraphShiftPreferences
extends MicrosoftGraphChangeTrackedEntity

shiftPreferences.

Constructor Summary

Constructor Description
MicrosoftGraphShiftPreferences()

Creates an instance of MicrosoftGraphShiftPreferences class.

Method Summary

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

Get the additionalProperties property: shiftPreferences.

List<MicrosoftGraphShiftAvailability> availability()

Get the availability property: Availability of the user to be scheduled for work and its recurrence pattern.

static MicrosoftGraphShiftPreferences fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphShiftPreferences from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphShiftPreferences withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: shiftPreferences.

MicrosoftGraphShiftPreferences withAvailability(List<MicrosoftGraphShiftAvailability> availability)

Set the availability property: Availability of the user to be scheduled for work and its recurrence pattern.

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

MicrosoftGraphShiftPreferences withId(String id)

Set the id property: Read-only.

MicrosoftGraphShiftPreferences withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)

Set the lastModifiedBy property: identitySet.

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

Methods inherited from MicrosoftGraphChangeTrackedEntity

Methods inherited from MicrosoftGraphEntity

id

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphShiftPreferences

public MicrosoftGraphShiftPreferences()

Creates an instance of MicrosoftGraphShiftPreferences class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: shiftPreferences.

Overrides:

MicrosoftGraphShiftPreferences.additionalProperties()

Returns:

the additionalProperties value.

availability

public List availability()

Get the availability property: Availability of the user to be scheduled for work and its recurrence pattern.

Returns:

the availability value.

fromJson

public static MicrosoftGraphShiftPreferences fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphShiftPreferences from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphShiftPreferences.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphShiftPreferences.validate()

withAdditionalProperties

public MicrosoftGraphShiftPreferences withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: shiftPreferences.

Overrides:

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

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphShiftPreferences object itself.

withAvailability

public MicrosoftGraphShiftPreferences withAvailability(List availability)

Set the availability property: Availability of the user to be scheduled for work and its recurrence pattern.

Parameters:

availability - the availability value to set.

Returns:

the MicrosoftGraphShiftPreferences object itself.

withCreatedDateTime

public MicrosoftGraphShiftPreferences 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:

MicrosoftGraphShiftPreferences.withCreatedDateTime(OffsetDateTime createdDateTime)

Parameters:

createdDateTime

withId

public MicrosoftGraphShiftPreferences withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphShiftPreferences.withId(String id)

Parameters:

id

withLastModifiedBy

public MicrosoftGraphShiftPreferences withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)

Set the lastModifiedBy property: identitySet.

Overrides:

MicrosoftGraphShiftPreferences.withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)

Parameters:

lastModifiedBy

withLastModifiedDateTime

public MicrosoftGraphShiftPreferences 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:

MicrosoftGraphShiftPreferences.withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)

Parameters:

lastModifiedDateTime

Applies to