Class AttackSimulationRequestBuilder

java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.security.attacksimulation.AttackSimulationRequestBuilder

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

    • AttackSimulationRequestBuilder

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

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

    • endUserNotifications

      @Nonnull public EndUserNotificationsRequestBuilder endUserNotifications()
      Provides operations to manage the endUserNotifications property of the microsoft.graph.attackSimulationRoot entity.
      Returns:
      a EndUserNotificationsRequestBuilder
    • landingPages

      @Nonnull public LandingPagesRequestBuilder landingPages()
      Provides operations to manage the landingPages property of the microsoft.graph.attackSimulationRoot entity.
      Returns:
      a LandingPagesRequestBuilder
    • loginPages

      @Nonnull public LoginPagesRequestBuilder loginPages()
      Provides operations to manage the loginPages property of the microsoft.graph.attackSimulationRoot entity.
      Returns:
      a LoginPagesRequestBuilder
    • operations

      @Nonnull public OperationsRequestBuilder operations()
      Provides operations to manage the operations property of the microsoft.graph.attackSimulationRoot entity.
      Returns:
      a OperationsRequestBuilder
    • payloads

      @Nonnull public PayloadsRequestBuilder payloads()
      Provides operations to manage the payloads property of the microsoft.graph.attackSimulationRoot entity.
      Returns:
      a PayloadsRequestBuilder
    • simulationAutomations

      @Nonnull public SimulationAutomationsRequestBuilder simulationAutomations()
      Provides operations to manage the simulationAutomations property of the microsoft.graph.attackSimulationRoot entity.
      Returns:
      a SimulationAutomationsRequestBuilder
    • simulations

      @Nonnull public SimulationsRequestBuilder simulations()
      Provides operations to manage the simulations property of the microsoft.graph.attackSimulationRoot entity.
      Returns:
      a SimulationsRequestBuilder
    • trainings

      @Nonnull public TrainingsRequestBuilder trainings()
      Provides operations to manage the trainings property of the microsoft.graph.attackSimulationRoot entity.
      Returns:
      a TrainingsRequestBuilder
    • delete

      public void delete()
      Delete navigation property attackSimulation for security
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • delete

      public void delete(@Nullable Consumer<AttackSimulationRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete navigation property attackSimulation for security
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • get

      @Nullable public AttackSimulationRoot get()
      Get attackSimulation from security
      Returns:
      a AttackSimulationRoot
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • get

      @Nullable public AttackSimulationRoot get(@Nullable Consumer<AttackSimulationRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Get attackSimulation from security
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a AttackSimulationRoot
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • patch

      @Nullable public AttackSimulationRoot patch(@Nonnull AttackSimulationRoot body)
      Update the navigation property attackSimulation in security
      Parameters:
      body - The request body
      Returns:
      a AttackSimulationRoot
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • patch

      @Nullable public AttackSimulationRoot patch(@Nonnull AttackSimulationRoot body, @Nullable Consumer<AttackSimulationRequestBuilder.PatchRequestConfiguration> requestConfiguration)
      Update the navigation property attackSimulation in security
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a AttackSimulationRoot
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • toDeleteRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()
      Delete navigation property attackSimulation for security
      Returns:
      a RequestInformation
    • toDeleteRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<AttackSimulationRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete navigation property attackSimulation for security
      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()
      Get attackSimulation from security
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<AttackSimulationRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Get attackSimulation from security
      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 AttackSimulationRoot body)
      Update the navigation property attackSimulation in security
      Parameters:
      body - The request body
      Returns:
      a RequestInformation
    • toPatchRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull AttackSimulationRoot body, @Nullable Consumer<AttackSimulationRequestBuilder.PatchRequestConfiguration> requestConfiguration)
      Update the navigation property attackSimulation in 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 AttackSimulationRequestBuilder 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 AttackSimulationRequestBuilder