Class GroupSettingsRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.groupsettings.GroupSettingsRequestBuilder
@Generated("com.microsoft.kiota")
public class GroupSettingsRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the collection of groupSetting entities.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassRetrieve a list of tenant-level or group-specific group settings objects.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
ConstructorsConstructorDescriptionGroupSettingsRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newGroupSettingsRequestBuilderand sets the default values.GroupSettingsRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newGroupSettingsRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionbyGroupSettingId(String groupSettingId) Provides operations to manage the collection of groupSetting entities.count()Provides operations to count the resources in the collection.get()Retrieve a list of tenant-level or group-specific group settings objects.get(Consumer<GroupSettingsRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve a list of tenant-level or group-specific group settings objects.post(GroupSetting body) Create a new group setting based on the templates available in groupSettingTemplates.post(GroupSetting body, Consumer<GroupSettingsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new group setting based on the templates available in groupSettingTemplates.com.microsoft.kiota.RequestInformationRetrieve a list of tenant-level or group-specific group settings objects.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<GroupSettingsRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve a list of tenant-level or group-specific group settings objects.com.microsoft.kiota.RequestInformationCreate a new group setting based on the templates available in groupSettingTemplates.com.microsoft.kiota.RequestInformationtoPostRequestInformation(GroupSetting body, Consumer<GroupSettingsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new group setting based on the templates available in groupSettingTemplates.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
GroupSettingsRequestBuilder
public GroupSettingsRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newGroupSettingsRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
GroupSettingsRequestBuilder
public GroupSettingsRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newGroupSettingsRequestBuilderand 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
-
count
Provides operations to count the resources in the collection.- Returns:
- a
CountRequestBuilder
-
byGroupSettingId
Provides operations to manage the collection of groupSetting entities.- Parameters:
groupSettingId- The unique identifier of groupSetting- Returns:
- a
GroupSettingItemRequestBuilder
-
get
Retrieve a list of tenant-level or group-specific group settings objects.- Returns:
- a
GroupSettingCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
@Nullable public GroupSettingCollectionResponse get(@Nullable Consumer<GroupSettingsRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve a list of tenant-level or group-specific group settings objects.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
GroupSettingCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
post
Create a new group setting based on the templates available in groupSettingTemplates. These settings can be at the tenant-level or at the group level. Group settings apply to only Microsoft 365 groups. The template named Group.Unified can be used to configure tenant-wide Microsoft 365 group settings, while the template named Group.Unified.Guest can be used to configure group-specific settings.- Parameters:
body- The request body- Returns:
- a
GroupSetting - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
post
@Nullable public GroupSetting post(@Nonnull GroupSetting body, @Nullable Consumer<GroupSettingsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new group setting based on the templates available in groupSettingTemplates. These settings can be at the tenant-level or at the group level. Group settings apply to only Microsoft 365 groups. The template named Group.Unified can be used to configure tenant-wide Microsoft 365 group settings, while the template named Group.Unified.Guest can be used to configure group-specific settings.- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
GroupSetting - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()Retrieve a list of tenant-level or group-specific group settings objects.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<GroupSettingsRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve a list of tenant-level or group-specific group settings objects.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull GroupSetting body) Create a new group setting based on the templates available in groupSettingTemplates. These settings can be at the tenant-level or at the group level. Group settings apply to only Microsoft 365 groups. The template named Group.Unified can be used to configure tenant-wide Microsoft 365 group settings, while the template named Group.Unified.Guest can be used to configure group-specific settings.- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull GroupSetting body, @Nullable Consumer<GroupSettingsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new group setting based on the templates available in groupSettingTemplates. These settings can be at the tenant-level or at the group level. Group settings apply to only Microsoft 365 groups. The template named Group.Unified can be used to configure tenant-wide Microsoft 365 group settings, while the template named Group.Unified.Guest can be used to configure group-specific settings.- 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
GroupSettingsRequestBuilder
-