Class RunsRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.security.attacksimulation.simulationautomations.item.runs.RunsRequestBuilder
@Generated("com.microsoft.kiota")
public class RunsRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the runs property of the microsoft.graph.simulationAutomation entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassGet a list of the attack simulation automation runs for a tenant.classConfiguration for the request such as headers, query parameters, and middleware options.classConfiguration 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
ConstructorsConstructorDescriptionRunsRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newRunsRequestBuilderand sets the default values.RunsRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newRunsRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionbySimulationAutomationRunId(String simulationAutomationRunId) Provides operations to manage the runs property of the microsoft.graph.simulationAutomation entity.count()Provides operations to count the resources in the collection.get()Get a list of the attack simulation automation runs for a tenant.get(Consumer<RunsRequestBuilder.GetRequestConfiguration> requestConfiguration) Get a list of the attack simulation automation runs for a tenant.post(SimulationAutomationRun body) Create new navigation property to runs for securitypost(SimulationAutomationRun body, Consumer<RunsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create new navigation property to runs for securitycom.microsoft.kiota.RequestInformationGet a list of the attack simulation automation runs for a tenant.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<RunsRequestBuilder.GetRequestConfiguration> requestConfiguration) Get a list of the attack simulation automation runs for a tenant.com.microsoft.kiota.RequestInformationCreate new navigation property to runs for securitycom.microsoft.kiota.RequestInformationtoPostRequestInformation(SimulationAutomationRun body, Consumer<RunsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create new navigation property to runs for securityReturns a request builder with the provided arbitrary URL.
-
Constructor Details
-
RunsRequestBuilder
public RunsRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newRunsRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
RunsRequestBuilder
public RunsRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newRunsRequestBuilderand 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
Provides operations to count the resources in the collection.- Returns:
- a
CountRequestBuilder
-
bySimulationAutomationRunId
@Nonnull public SimulationAutomationRunItemRequestBuilder bySimulationAutomationRunId(@Nonnull String simulationAutomationRunId) Provides operations to manage the runs property of the microsoft.graph.simulationAutomation entity.- Parameters:
simulationAutomationRunId- The unique identifier of simulationAutomationRun- Returns:
- a
SimulationAutomationRunItemRequestBuilder
-
get
Get a list of the attack simulation automation runs for a tenant.- Returns:
- a
SimulationAutomationRunCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
@Nullable public SimulationAutomationRunCollectionResponse get(@Nullable Consumer<RunsRequestBuilder.GetRequestConfiguration> requestConfiguration) Get a list of the attack simulation automation runs for a tenant.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
SimulationAutomationRunCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
post
Create new navigation property to runs for security- Parameters:
body- The request body- Returns:
- a
SimulationAutomationRun - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
post
@Nullable public SimulationAutomationRun post(@Nonnull SimulationAutomationRun body, @Nullable Consumer<RunsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create new navigation property to runs for security- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
SimulationAutomationRun - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()Get a list of the attack simulation automation runs for a tenant.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<RunsRequestBuilder.GetRequestConfiguration> requestConfiguration) Get a list of the attack simulation automation runs for a tenant.- 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 SimulationAutomationRun body) Create new navigation property to runs for security- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull SimulationAutomationRun body, @Nullable Consumer<RunsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create new navigation property to runs for security- 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
RunsRequestBuilder
-