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
ConstructorsConstructorDescriptionCustomBatchRequestBuilder(com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a new CustomBatchRequestBuilder -
Method Summary
Modifier and TypeMethodDescriptioncom.microsoft.graph.core.content.BatchResponseContentCollectionpost(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.BatchResponseContentpost(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
-
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 IOExceptionSends out the BatchRequestContent using the POST method.- Overrides:
postin classcom.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 IOExceptionSends out the BatchRequestContentCollection using the POST method.- Overrides:
postin classcom.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
-