Class CustomBatchRequestBuilder

java.lang.Object
com.microsoft.graph.core.requests.BatchRequestBuilder
com.microsoft.graph.serviceclient.CustomBatchRequestBuilder

public class CustomBatchRequestBuilder extends com.microsoft.graph.core.requests.BatchRequestBuilder
CustomBatchRequestBuilder extends BatchRequestBuilder to include graph specific default error mappings.
  • Constructor Summary

    Constructors
    Constructor
    Description
    CustomBatchRequestBuilder(com.microsoft.kiota.RequestAdapter requestAdapter)
    Instantiates a new CustomBatchRequestBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    com.microsoft.graph.core.content.BatchResponseContentCollection
    post(com.microsoft.graph.core.content.BatchRequestContentCollection requestContentCollection, Map<String,com.microsoft.kiota.serialization.ParsableFactory<? extends com.microsoft.kiota.serialization.Parsable>> errorMappings)
    Sends out the BatchRequestContentCollection using the POST method.
    com.microsoft.graph.core.content.BatchResponseContent
    post(com.microsoft.graph.core.content.BatchRequestContent requestContent, Map<String,com.microsoft.kiota.serialization.ParsableFactory<? extends com.microsoft.kiota.serialization.Parsable>> errorMappings)
    Sends out the BatchRequestContent using the POST method.

    Methods inherited from class com.microsoft.graph.core.requests.BatchRequestBuilder

    getRequestAdapter, toPostRequestInformation

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CustomBatchRequestBuilder

      public CustomBatchRequestBuilder(@Nonnull com.microsoft.kiota.RequestAdapter requestAdapter)
      Instantiates a new CustomBatchRequestBuilder
      Parameters:
      requestAdapter - the request adapter to use to execute the requests
  • Method Details

    • post

      @Nonnull public com.microsoft.graph.core.content.BatchResponseContent post(@Nonnull com.microsoft.graph.core.content.BatchRequestContent requestContent, @Nullable Map<String,com.microsoft.kiota.serialization.ParsableFactory<? extends com.microsoft.kiota.serialization.Parsable>> errorMappings) throws IOException
      Sends out the BatchRequestContent using the POST method.
      Overrides:
      post in class com.microsoft.graph.core.requests.BatchRequestBuilder
      Parameters:
      requestContent - the BatchRequestContent to post.
      errorMappings - the error mappings to use when parsing the response.
      Returns:
      the batchResponseContent.
      Throws:
      IOException
    • post

      @Nonnull public com.microsoft.graph.core.content.BatchResponseContentCollection post(@Nonnull com.microsoft.graph.core.content.BatchRequestContentCollection requestContentCollection, @Nullable Map<String,com.microsoft.kiota.serialization.ParsableFactory<? extends com.microsoft.kiota.serialization.Parsable>> errorMappings) throws IOException
      Sends out the BatchRequestContentCollection using the POST method.
      Overrides:
      post in class com.microsoft.graph.core.requests.BatchRequestBuilder
      Parameters:
      requestContentCollection - the BatchRequestContentCollection to post.
      errorMappings - the error mappings to use when parsing the response.
      Returns:
      the responseContentCollection.
      Throws:
      IOException