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.
  • Constructor Details

    • UsersWithUserPrincipalNameRequestBuilder

      public UsersWithUserPrincipalNameRequestBuilder(@Nonnull HashMap<String,Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter, @Nullable String userPrincipalName)
      Instantiates a new UsersWithUserPrincipalNameRequestBuilder and sets the default values.
      Parameters:
      pathParameters - Path parameters for the request
      requestAdapter - 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 new UsersWithUserPrincipalNameRequestBuilder 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

      @Nullable public User 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

      @Nullable public User patch(@Nonnull User body)
      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 body
      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:
    • 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 body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

      @Nonnull public UsersWithUserPrincipalNameRequestBuilder withUrl(@Nonnull String rawUrl)
      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