Class MembersRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.memberentitlementmanagement.members.MembersRequestBuilder
Provides functionality to work with Members Api.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents the query parameters.static class
Request configuration object for the query parameters.Nested classes/interfaces inherited from class org.azd.abstractions.BaseRequestBuilder
BaseRequestBuilder.ProjectExcludeParameter
-
Field Summary
Fields inherited from class org.azd.abstractions.BaseRequestBuilder
accessTokenCredential, apiVersion, area, locationId, organizationUrl, serializer
-
Constructor Summary
ConstructorDescriptionMembersRequestBuilder
(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionAdd a member to a Group.Add a member to a Group.Get direct members of a Group.get
(String groupId, Consumer<MembersRequestBuilder.RequestConfiguration> requestConfiguration) Get direct members of a Group.Get direct members of a Group.getAsync
(String groupId, Consumer<MembersRequestBuilder.RequestConfiguration> requestConfiguration) Get direct members of a Group.removeMember
(String groupId, String memberId) Remove a member from a Group.removeMemberAsync
(String groupId, String memberId) Remove a member from a Group.Methods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
MembersRequestBuilder
Instantiates a new RequestBuilder instance and sets the default values.- Parameters:
organizationUrl
- Represents organization location request url.accessTokenCredential
- Access token credential object.
-
-
Method Details
-
addAsync
Add a member to a Group.- Parameters:
groupId
- Id of the Group.memberId
- Id of the member to add.- Throws:
AzDException
- Default Api exception handler
-
getAsync
Get direct members of a Group.- Parameters:
groupId
- Id of the Group.- Returns:
- Collection of graph member.
PagedGraphMemberList
- Throws:
AzDException
- Default Api exception handler
-
getAsync
public CompletableFuture<PagedGraphMemberList> getAsync(String groupId, Consumer<MembersRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Get direct members of a Group.- Parameters:
groupId
- Id of the Group.requestConfiguration
- Consumer of request configuration that represents the query parameters.- Returns:
- Collection of graph member.
PagedGraphMemberList
- Throws:
AzDException
- Default Api exception handler
-
removeMemberAsync
public CompletableFuture<Void> removeMemberAsync(String groupId, String memberId) throws AzDException Remove a member from a Group.- Parameters:
groupId
- Id of the Group.memberId
- Id of the member to add.- Throws:
AzDException
- Default Api exception handler
-
add
Add a member to a Group.- Parameters:
groupId
- Id of the Group.memberId
- Id of the member to add.- Throws:
AzDException
- Default Api exception handler
-
get
Get direct members of a Group.- Parameters:
groupId
- Id of the Group.- Returns:
- Collection of graph member.
PagedGraphMemberList
- Throws:
AzDException
- Default Api exception handler
-
get
public PagedGraphMemberList get(String groupId, Consumer<MembersRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Get direct members of a Group.- Parameters:
groupId
- Id of the Group.requestConfiguration
- Consumer of request configuration that represents the query parameters.- Returns:
- Collection of graph member.
PagedGraphMemberList
- Throws:
AzDException
- Default Api exception handler
-
removeMember
Remove a member from a Group.- Parameters:
groupId
- Id of the Group.memberId
- Id of the member to add.- Throws:
AzDException
- Default Api exception handler
-