Class UsersWithUserPrincipalNameRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.userswithuserprincipalname.UsersWithUserPrincipalNameRequestBuilder
@Generated("com.microsoft.kiota")
public class UsersWithUserPrincipalNameRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the collection of user entities.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
Configuration for the request such as headers, query parameters, and middleware options.class
Read properties and relationships of the user object.class
Configuration for the request such as headers, query parameters, and middleware options.class
Configuration 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
ConstructorsConstructorDescriptionUsersWithUserPrincipalNameRequestBuilder
(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newUsersWithUserPrincipalNameRequestBuilder
and sets the default values.UsersWithUserPrincipalNameRequestBuilder
(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter, String userPrincipalName) Instantiates a newUsersWithUserPrincipalNameRequestBuilder
and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
Deletes a user.void
delete
(Consumer<UsersWithUserPrincipalNameRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Deletes a user.get()
Read properties and relationships of the user object.get
(Consumer<UsersWithUserPrincipalNameRequestBuilder.GetRequestConfiguration> requestConfiguration) Read properties and relationships of the user object.Update the properties of a user object.patch
(User body, Consumer<UsersWithUserPrincipalNameRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the properties of a user object.com.microsoft.kiota.RequestInformation
Deletes a user.com.microsoft.kiota.RequestInformation
toDeleteRequestInformation
(Consumer<UsersWithUserPrincipalNameRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Deletes a user.com.microsoft.kiota.RequestInformation
Read properties and relationships of the user object.com.microsoft.kiota.RequestInformation
toGetRequestInformation
(Consumer<UsersWithUserPrincipalNameRequestBuilder.GetRequestConfiguration> requestConfiguration) Read properties and relationships of the user object.com.microsoft.kiota.RequestInformation
Update the properties of a user object.com.microsoft.kiota.RequestInformation
toPatchRequestInformation
(User body, Consumer<UsersWithUserPrincipalNameRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the properties of a user object.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
UsersWithUserPrincipalNameRequestBuilder
public UsersWithUserPrincipalNameRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter, @Nullable String userPrincipalName) Instantiates a newUsersWithUserPrincipalNameRequestBuilder
and sets the default values.- Parameters:
pathParameters
- Path parameters for the requestrequestAdapter
- The request adapter to use to execute the requests.userPrincipalName
- Alternate key of user
-
UsersWithUserPrincipalNameRequestBuilder
public UsersWithUserPrincipalNameRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newUsersWithUserPrincipalNameRequestBuilder
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
-
delete
public void delete()Deletes a user.- Throws:
ODataError
- When receiving a 4XX or 5XX status code- See Also:
-
delete
public void delete(@Nullable Consumer<UsersWithUserPrincipalNameRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Deletes a user.- 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 properties and relationships of the user object.- Returns:
- a
User
- Throws:
ODataError
- When receiving a 4XX or 5XX status code- See Also:
-
get
@Nullable public User get(@Nullable Consumer<UsersWithUserPrincipalNameRequestBuilder.GetRequestConfiguration> requestConfiguration) Read properties and relationships of the user object.- Parameters:
requestConfiguration
- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
User
- Throws:
ODataError
- When receiving a 4XX or 5XX status code- See Also:
-
patch
Update the properties of a user object.- Parameters:
body
- The request body- Returns:
- a
User
- Throws:
ODataError
- When receiving a 4XX or 5XX status code- See Also:
-
patch
@Nullable public User patch(@Nonnull User body, @Nullable Consumer<UsersWithUserPrincipalNameRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the properties of a user object.- Parameters:
body
- The request bodyrequestConfiguration
- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
User
- Throws:
ODataError
- When receiving a 4XX or 5XX status code- See Also:
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()Deletes a user.- Returns:
- a
RequestInformation
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<UsersWithUserPrincipalNameRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Deletes a user.- 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 properties and relationships of the user object.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<UsersWithUserPrincipalNameRequestBuilder.GetRequestConfiguration> requestConfiguration) Read properties and relationships of the user 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 User body) Update the properties of a user object.- Parameters:
body
- The request body- Returns:
- a
RequestInformation
-
toPatchRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull User body, @Nullable Consumer<UsersWithUserPrincipalNameRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the properties of a user object.- 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
UsersWithUserPrincipalNameRequestBuilder
-