Class CommunityItemRequestBuilder

java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.employeeexperience.communities.item.CommunityItemRequestBuilder

@Generated("com.microsoft.kiota") public class CommunityItemRequestBuilder extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the communities property of the microsoft.graph.employeeExperience entity.
  • Constructor Details

    • CommunityItemRequestBuilder

      public CommunityItemRequestBuilder(@Nonnull HashMap<String,Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter)
      Instantiates a new CommunityItemRequestBuilder and sets the default values.
      Parameters:
      pathParameters - Path parameters for the request
      requestAdapter - The request adapter to use to execute the requests.
    • CommunityItemRequestBuilder

      public CommunityItemRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter)
      Instantiates a new CommunityItemRequestBuilder and sets the default values.
      Parameters:
      rawUrl - The raw URL to use for the request builder.
      requestAdapter - The request adapter to use to execute the requests.
  • Method Details

    • group

      @Nonnull public GroupRequestBuilder group()
      Provides operations to manage the group property of the microsoft.graph.community entity.
      Returns:
      a GroupRequestBuilder
    • owners

      @Nonnull public OwnersRequestBuilder owners()
      Provides operations to manage the owners property of the microsoft.graph.community entity.
      Returns:
      a OwnersRequestBuilder
    • delete

      public void delete()
      Delete a Viva Engage community along with all associated Microsoft 365 content, including the connected Microsoft 365 group, OneNote notebook, and Planner plans. For more information, see What happens if I delete a Viva Engage community connected to Microsoft 365 groups.
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • delete

      public void delete(@Nullable Consumer<CommunityItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete a Viva Engage community along with all associated Microsoft 365 content, including the connected Microsoft 365 group, OneNote notebook, and Planner plans. For more information, see What happens if I delete a Viva Engage community connected to Microsoft 365 groups.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • get

      @Nullable public Community get()
      Read the properties and relationships of a community object.
      Returns:
      a Community
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • get

      @Nullable public Community get(@Nullable Consumer<CommunityItemRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Read the properties and relationships of a community object.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a Community
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • ownersWithUserPrincipalName

      @Nonnull public OwnersWithUserPrincipalNameRequestBuilder ownersWithUserPrincipalName(@Nonnull String userPrincipalName)
      Provides operations to manage the owners property of the microsoft.graph.community entity.
      Parameters:
      userPrincipalName - Alternate key of user
      Returns:
      a OwnersWithUserPrincipalNameRequestBuilder
    • patch

      @Nullable public Community patch(@Nonnull Community body)
      Update the properties of an existing Viva Engage community.
      Parameters:
      body - The request body
      Returns:
      a Community
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • patch

      @Nullable public Community patch(@Nonnull Community body, @Nullable Consumer<CommunityItemRequestBuilder.PatchRequestConfiguration> requestConfiguration)
      Update the properties of an existing Viva Engage community.
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a Community
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • toDeleteRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()
      Delete a Viva Engage community along with all associated Microsoft 365 content, including the connected Microsoft 365 group, OneNote notebook, and Planner plans. For more information, see What happens if I delete a Viva Engage community connected to Microsoft 365 groups.
      Returns:
      a RequestInformation
    • toDeleteRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<CommunityItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete a Viva Engage community along with all associated Microsoft 365 content, including the connected Microsoft 365 group, OneNote notebook, and Planner plans. For more information, see What happens if I delete a Viva Engage community connected to Microsoft 365 groups.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()
      Read the properties and relationships of a community object.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<CommunityItemRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Read the properties and relationships of a community object.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • toPatchRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull Community body)
      Update the properties of an existing Viva Engage community.
      Parameters:
      body - The request body
      Returns:
      a RequestInformation
    • toPatchRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull Community body, @Nullable Consumer<CommunityItemRequestBuilder.PatchRequestConfiguration> requestConfiguration)
      Update the properties of an existing Viva Engage community.
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

      @Nonnull public CommunityItemRequestBuilder withUrl(@Nonnull String rawUrl)
      Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
      Parameters:
      rawUrl - The raw URL to use for the request builder.
      Returns:
      a CommunityItemRequestBuilder