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

MicrosoftGraphUserSettings Class

public final class MicrosoftGraphUserSettings
extends MicrosoftGraphEntity

userSettings.

Constructor Summary

Constructor Description
MicrosoftGraphUserSettings()

Creates an instance of MicrosoftGraphUserSettings class.

Method Summary

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

Get the additionalProperties property: userSettings.

Boolean contributionToContentDiscoveryAsOrganizationDisabled()

Get the contributionToContentDiscoveryAsOrganizationDisabled property: The contributionToContentDiscoveryAsOrganizationDisabled property.

Boolean contributionToContentDiscoveryDisabled()

Get the contributionToContentDiscoveryDisabled property: The contributionToContentDiscoveryDisabled property.

static MicrosoftGraphUserSettings fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphUserSettings from the JsonReader.

MicrosoftGraphShiftPreferences shiftPreferences()

Get the shiftPreferences property: shiftPreferences.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphUserSettings withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: userSettings.

MicrosoftGraphUserSettings withContributionToContentDiscoveryAsOrganizationDisabled(Boolean contributionToContentDiscoveryAsOrganizationDisabled)

Set the contributionToContentDiscoveryAsOrganizationDisabled property: The contributionToContentDiscoveryAsOrganizationDisabled property.

MicrosoftGraphUserSettings withContributionToContentDiscoveryDisabled(Boolean contributionToContentDiscoveryDisabled)

Set the contributionToContentDiscoveryDisabled property: The contributionToContentDiscoveryDisabled property.

MicrosoftGraphUserSettings withId(String id)

Set the id property: Read-only.

MicrosoftGraphUserSettings withShiftPreferences(MicrosoftGraphShiftPreferences shiftPreferences)

Set the shiftPreferences property: shiftPreferences.

Methods inherited from MicrosoftGraphEntity

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphUserSettings

public MicrosoftGraphUserSettings()

Creates an instance of MicrosoftGraphUserSettings class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: userSettings.

Overrides:

MicrosoftGraphUserSettings.additionalProperties()

Returns:

the additionalProperties value.

contributionToContentDiscoveryAsOrganizationDisabled

public Boolean contributionToContentDiscoveryAsOrganizationDisabled()

Get the contributionToContentDiscoveryAsOrganizationDisabled property: The contributionToContentDiscoveryAsOrganizationDisabled property.

Returns:

the contributionToContentDiscoveryAsOrganizationDisabled value.

contributionToContentDiscoveryDisabled

public Boolean contributionToContentDiscoveryDisabled()

Get the contributionToContentDiscoveryDisabled property: The contributionToContentDiscoveryDisabled property.

Returns:

the contributionToContentDiscoveryDisabled value.

fromJson

public static MicrosoftGraphUserSettings fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphUserSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

shiftPreferences

public MicrosoftGraphShiftPreferences shiftPreferences()

Get the shiftPreferences property: shiftPreferences.

Returns:

the shiftPreferences value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphUserSettings.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphUserSettings.validate()

withAdditionalProperties

public MicrosoftGraphUserSettings withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: userSettings.

Overrides:

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

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphUserSettings object itself.

withContributionToContentDiscoveryAsOrganizationDisabled

public MicrosoftGraphUserSettings withContributionToContentDiscoveryAsOrganizationDisabled(Boolean contributionToContentDiscoveryAsOrganizationDisabled)

Set the contributionToContentDiscoveryAsOrganizationDisabled property: The contributionToContentDiscoveryAsOrganizationDisabled property.

Parameters:

contributionToContentDiscoveryAsOrganizationDisabled - the contributionToContentDiscoveryAsOrganizationDisabled value to set.

Returns:

the MicrosoftGraphUserSettings object itself.

withContributionToContentDiscoveryDisabled

public MicrosoftGraphUserSettings withContributionToContentDiscoveryDisabled(Boolean contributionToContentDiscoveryDisabled)

Set the contributionToContentDiscoveryDisabled property: The contributionToContentDiscoveryDisabled property.

Parameters:

contributionToContentDiscoveryDisabled - the contributionToContentDiscoveryDisabled value to set.

Returns:

the MicrosoftGraphUserSettings object itself.

withId

public MicrosoftGraphUserSettings withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphUserSettings.withId(String id)

Parameters:

id

withShiftPreferences

public MicrosoftGraphUserSettings withShiftPreferences(MicrosoftGraphShiftPreferences shiftPreferences)

Set the shiftPreferences property: shiftPreferences.

Parameters:

shiftPreferences - the shiftPreferences value to set.

Returns:

the MicrosoftGraphUserSettings object itself.

Applies to