Package com.microsoft.graph.core.models
Class BatchRequestStep
java.lang.Object
com.microsoft.graph.core.models.BatchRequestStep
Represents a single request in a batch request
-
Constructor Summary
ConstructorsConstructorDescriptionBatchRequestStep(String requestId, okhttp3.Request request) Creates a new BatchRequestStepBatchRequestStep(String requestId, okhttp3.Request request, List<String> dependsOn) Creates a new BatchRequestStep -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDependsOnId(String id) Adds a request id to the dependsOn list.Gets the ids of the requests that this request depends onokhttp3.RequestGets the requestGets the id of the requestbooleanRemoves a request id from the dependsOn list.voidsetDependsOn(List<String> dependsOn) Sets the ids of the requests that this request depends on
-
Constructor Details
-
BatchRequestStep
Creates a new BatchRequestStep- Parameters:
requestId- The id of the requestrequest- The request
-
BatchRequestStep
public BatchRequestStep(@Nonnull String requestId, @Nonnull okhttp3.Request request, @Nonnull List<String> dependsOn) Creates a new BatchRequestStep- Parameters:
requestId- The id of the requestrequest- The requestdependsOn- The ids of the requests that this request depends on
-
-
Method Details
-
getRequest
@Nonnull public okhttp3.Request getRequest()Gets the request- Returns:
- The request
-
getRequestId
Gets the id of the request- Returns:
- The id of the request
-
getDependsOn
Gets the ids of the requests that this request depends on- Returns:
- The ids of the requests that this request depends on
-
setDependsOn
Sets the ids of the requests that this request depends on- Parameters:
dependsOn- The ids of the requests that this request depends on
-
addDependsOnId
Adds a request id to the dependsOn list.- Parameters:
id- The id of the request to add to the dependsOn list.
-
removeDependsOnId
Removes a request id from the dependsOn list.- Parameters:
id- The id of the request to remove.- Returns:
- true if the request id is no longer present in the dependsOn collection, false if dependsOn is null.
-