Class LoginPagesRequestBuilder

java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.security.attacksimulation.loginpages.LoginPagesRequestBuilder

@Generated("com.microsoft.kiota") public class LoginPagesRequestBuilder extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the loginPages property of the microsoft.graph.attackSimulationRoot entity.
  • Constructor Details

    • LoginPagesRequestBuilder

      public LoginPagesRequestBuilder(@Nonnull HashMap<String,Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter)
      Instantiates a new LoginPagesRequestBuilder and sets the default values.
      Parameters:
      pathParameters - Path parameters for the request
      requestAdapter - The request adapter to use to execute the requests.
    • LoginPagesRequestBuilder

      public LoginPagesRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter)
      Instantiates a new LoginPagesRequestBuilder 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

    • count

      @Nonnull public CountRequestBuilder count()
      Provides operations to count the resources in the collection.
      Returns:
      a CountRequestBuilder
    • byLoginPageId

      @Nonnull public LoginPageItemRequestBuilder byLoginPageId(@Nonnull String loginPageId)
      Provides operations to manage the loginPages property of the microsoft.graph.attackSimulationRoot entity.
      Parameters:
      loginPageId - The unique identifier of loginPage
      Returns:
      a LoginPageItemRequestBuilder
    • get

      @Nullable public LoginPageCollectionResponse get()
      Get a list of the loginPage objects and their properties.
      Returns:
      a LoginPageCollectionResponse
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • get

      @Nullable public LoginPageCollectionResponse get(@Nullable Consumer<LoginPagesRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Get a list of the loginPage objects and their properties.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a LoginPageCollectionResponse
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • post

      @Nullable public LoginPage post(@Nonnull LoginPage body)
      Create new navigation property to loginPages for security
      Parameters:
      body - The request body
      Returns:
      a LoginPage
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • post

      @Nullable public LoginPage post(@Nonnull LoginPage body, @Nullable Consumer<LoginPagesRequestBuilder.PostRequestConfiguration> requestConfiguration)
      Create new navigation property to loginPages for security
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a LoginPage
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()
      Get a list of the loginPage objects and their properties.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<LoginPagesRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Get a list of the loginPage objects and their properties.
      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 LoginPage body)
      Create new navigation property to loginPages for security
      Parameters:
      body - The request body
      Returns:
      a RequestInformation
    • toPostRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull LoginPage body, @Nullable Consumer<LoginPagesRequestBuilder.PostRequestConfiguration> requestConfiguration)
      Create new navigation property to loginPages for security
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

      @Nonnull public LoginPagesRequestBuilder 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 LoginPagesRequestBuilder