Class BatchRequestStep

java.lang.Object
com.microsoft.graph.core.models.BatchRequestStep

public class BatchRequestStep extends Object
Represents a single request in a batch request
  • Constructor Details

    • BatchRequestStep

      public BatchRequestStep(@Nonnull String requestId, @Nonnull okhttp3.Request request)
      Creates a new BatchRequestStep
      Parameters:
      requestId - The id of the request
      request - 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 request
      request - The request
      dependsOn - 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

      @Nonnull public String getRequestId()
      Gets the id of the request
      Returns:
      The id of the request
    • getDependsOn

      @Nonnull public List<String> getDependsOn()
      Gets the ids of the requests that this request depends on
      Returns:
      The ids of the requests that this request depends on
    • setDependsOn

      public void setDependsOn(@Nonnull List<String> dependsOn)
      Sets the ids of the requests that this request depends on
      Parameters:
      dependsOn - The ids of the requests that this request depends on
    • addDependsOnId

      public void addDependsOnId(@Nonnull String id)
      Adds a request id to the dependsOn list.
      Parameters:
      id - The id of the request to add to the dependsOn list.
    • removeDependsOnId

      public boolean removeDependsOnId(@Nonnull String id)
      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.