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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassConfiguration for the request such as headers, query parameters, and middleware options.classRead the properties and relationships of a community object.classConfiguration for the request such as headers, query parameters, and middleware options.classConfiguration for the request such as headers, query parameters, and middleware options. -
Field Summary
Fields inherited from class com.microsoft.kiota.BaseRequestBuilder
pathParameters, requestAdapter, urlTemplate -
Constructor Summary
ConstructorsConstructorDescriptionCommunityItemRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newCommunityItemRequestBuilderand sets the default values.CommunityItemRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newCommunityItemRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()Delete a Viva Engage community along with all associated Microsoft 365 content, including the connected Microsoft 365 group, OneNote notebook, and Planner plans.voiddelete(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.get()Read the properties and relationships of a community object.get(Consumer<CommunityItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Read the properties and relationships of a community object.group()Provides operations to manage the group property of the microsoft.graph.community entity.owners()Provides operations to manage the owners property of the microsoft.graph.community entity.ownersWithUserPrincipalName(String userPrincipalName) Provides operations to manage the owners property of the microsoft.graph.community entity.Update the properties of an existing Viva Engage community.patch(Community body, Consumer<CommunityItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the properties of an existing Viva Engage community.com.microsoft.kiota.RequestInformationDelete a Viva Engage community along with all associated Microsoft 365 content, including the connected Microsoft 365 group, OneNote notebook, and Planner plans.com.microsoft.kiota.RequestInformationtoDeleteRequestInformation(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.com.microsoft.kiota.RequestInformationRead the properties and relationships of a community object.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<CommunityItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Read the properties and relationships of a community object.com.microsoft.kiota.RequestInformationUpdate the properties of an existing Viva Engage community.com.microsoft.kiota.RequestInformationtoPatchRequestInformation(Community body, Consumer<CommunityItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the properties of an existing Viva Engage community.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
CommunityItemRequestBuilder
public CommunityItemRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newCommunityItemRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
CommunityItemRequestBuilder
public CommunityItemRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newCommunityItemRequestBuilderand 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
Provides operations to manage the group property of the microsoft.graph.community entity.- Returns:
- a
GroupRequestBuilder
-
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
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
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 bodyrequestConfiguration- 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 bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
withUrl
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
-