Class SettingsRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.groups.item.settings.SettingsRequestBuilder
@Generated("com.microsoft.kiota")
public class SettingsRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the settings property of the microsoft.graph.group entity.
-
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
ConstructorsConstructorDescriptionSettingsRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newSettingsRequestBuilderand sets the default values.SettingsRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newSettingsRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionbyGroupSettingId(String groupSettingId) Provides operations to manage the settings property of the microsoft.graph.group entity.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<SettingsRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve a list of tenant-level or group-specific group settings objects.post(GroupSetting body) Create a new setting based on the templates available in groupSettingTemplates.post(GroupSetting body, Consumer<SettingsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new 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<SettingsRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve a list of tenant-level or group-specific group settings objects.com.microsoft.kiota.RequestInformationCreate a new setting based on the templates available in groupSettingTemplates.com.microsoft.kiota.RequestInformationtoPostRequestInformation(GroupSetting body, Consumer<SettingsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new setting based on the templates available in groupSettingTemplates.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
SettingsRequestBuilder
public SettingsRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newSettingsRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
SettingsRequestBuilder
public SettingsRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newSettingsRequestBuilderand 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 settings property of the microsoft.graph.group entity.- 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<SettingsRequestBuilder.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 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<SettingsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new 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<SettingsRequestBuilder.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 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<SettingsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new 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
SettingsRequestBuilder
-