Class UserSettings

java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.UserSettings
All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class UserSettings extends Entity implements com.microsoft.kiota.serialization.Parsable
  • Constructor Details

    • UserSettings

      public UserSettings()
      Instantiates a new UserSettings and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static UserSettings createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode)
      Creates a new instance of the appropriate class based on discriminator value
      Parameters:
      parseNode - The parse node to use to read the discriminator value and create the object
      Returns:
      a UserSettings
    • getContributionToContentDiscoveryAsOrganizationDisabled

      @Nullable public Boolean getContributionToContentDiscoveryAsOrganizationDisabled()
      Gets the contributionToContentDiscoveryAsOrganizationDisabled property value. Reflects the organization level setting controlling delegate access to the trending API. When set to true, the organization doesn't have access to Office Delve. The relevancy of the content displayed in Microsoft 365, for example in Suggested sites in SharePoint Home and the Discover view in OneDrive for work or school is affected for the whole organization. This setting is read-only and can only be changed by administrators in the SharePoint admin center.
      Returns:
      a Boolean
    • getContributionToContentDiscoveryDisabled

      @Nullable public Boolean getContributionToContentDiscoveryDisabled()
      Gets the contributionToContentDiscoveryDisabled property value. When set to true, the delegate access to the user's trending API is disabled. When set to true, documents in the user's Office Delve are disabled. When set to true, the relevancy of the content displayed in Microsoft 365, for example in Suggested sites in SharePoint Home and the Discover view in OneDrive for work or school is affected. Users can control this setting in Office Delve.
      Returns:
      a Boolean
    • getFieldDeserializers

      @Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()
      The deserialization information for the current model
      Specified by:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class Entity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getItemInsights

      @Nullable public UserInsightsSettings getItemInsights()
      Gets the itemInsights property value. The user's settings for the visibility of meeting hour insights, and insights derived between a user and other items in Microsoft 365, such as documents or sites. Get userInsightsSettings through this navigation property.
      Returns:
      a UserInsightsSettings
    • getShiftPreferences

      @Nullable public ShiftPreferences getShiftPreferences()
      Gets the shiftPreferences property value. The shiftPreferences property
      Returns:
      a ShiftPreferences
    • getStorage

      @Nullable public UserStorage getStorage()
      Gets the storage property value. The storage property
      Returns:
      a UserStorage
    • getWindows

      @Nullable public List<WindowsSetting> getWindows()
      Gets the windows property value. The windows property
      Returns:
      a List<WindowsSetting>
    • serialize

      public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer)
      Serializes information the current object
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class Entity
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setContributionToContentDiscoveryAsOrganizationDisabled

      public void setContributionToContentDiscoveryAsOrganizationDisabled(@Nullable Boolean value)
      Sets the contributionToContentDiscoveryAsOrganizationDisabled property value. Reflects the organization level setting controlling delegate access to the trending API. When set to true, the organization doesn't have access to Office Delve. The relevancy of the content displayed in Microsoft 365, for example in Suggested sites in SharePoint Home and the Discover view in OneDrive for work or school is affected for the whole organization. This setting is read-only and can only be changed by administrators in the SharePoint admin center.
      Parameters:
      value - Value to set for the contributionToContentDiscoveryAsOrganizationDisabled property.
    • setContributionToContentDiscoveryDisabled

      public void setContributionToContentDiscoveryDisabled(@Nullable Boolean value)
      Sets the contributionToContentDiscoveryDisabled property value. When set to true, the delegate access to the user's trending API is disabled. When set to true, documents in the user's Office Delve are disabled. When set to true, the relevancy of the content displayed in Microsoft 365, for example in Suggested sites in SharePoint Home and the Discover view in OneDrive for work or school is affected. Users can control this setting in Office Delve.
      Parameters:
      value - Value to set for the contributionToContentDiscoveryDisabled property.
    • setItemInsights

      public void setItemInsights(@Nullable UserInsightsSettings value)
      Sets the itemInsights property value. The user's settings for the visibility of meeting hour insights, and insights derived between a user and other items in Microsoft 365, such as documents or sites. Get userInsightsSettings through this navigation property.
      Parameters:
      value - Value to set for the itemInsights property.
    • setShiftPreferences

      public void setShiftPreferences(@Nullable ShiftPreferences value)
      Sets the shiftPreferences property value. The shiftPreferences property
      Parameters:
      value - Value to set for the shiftPreferences property.
    • setStorage

      public void setStorage(@Nullable UserStorage value)
      Sets the storage property value. The storage property
      Parameters:
      value - Value to set for the storage property.
    • setWindows

      public void setWindows(@Nullable List<WindowsSetting> value)
      Sets the windows property value. The windows property
      Parameters:
      value - Value to set for the windows property.