public BatchWriteItemResult batchWriteItem(BatchWriteItemRequest batchWriteItemRequest)
            throws AmazonServiceException, AmazonClientException {
        ExecutionContext executionContext = createExecutionContext(batchWriteItemRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        Request<BatchWriteItemRequest> request = marshall(
                batchWriteItemRequest, new BatchWriteItemRequestMarshaller(),
                executionContext.getAwsRequestMetrics());
        // Binds the request metrics to the current request.
        request.setAWSRequestMetrics(awsRequestMetrics);
        Unmarshaller<BatchWriteItemResult, JsonUnmarshallerContext> unmarshaller = new BatchWriteItemResultJsonUnmarshaller();
        JsonResponseHandler<BatchWriteItemResult> responseHandler = new JsonResponseHandler<BatchWriteItemResult>(unmarshaller);
        return invoke(request, responseHandler, executionContext);
    }
public BatchWriteItemResult batchWriteItem ( BatchWriteItemRequest batchWriteItemRequest ) throws AmazonServiceException , AmazonClientException { ExecutionContext executionContext = createExecutionContext ( batchWriteItemRequest ) ; AWSRequestMetrics awsRequestMetrics = executionContext . getAwsRequestMetrics ( ) ; Request < BatchWriteItemRequest > request = marshall ( batchWriteItemRequest , new BatchWriteItemRequestMarshaller ( ) , executionContext . getAwsRequestMetrics ( ) ) ; request . setAWSRequestMetrics ( awsRequestMetrics ) ; Unmarshaller < BatchWriteItemResult , JsonUnmarshallerContext > unmarshaller = new BatchWriteItemResultJsonUnmarshaller ( ) ; JsonResponseHandler < BatchWriteItemResult > responseHandler = new JsonResponseHandler < BatchWriteItemResult > ( unmarshaller ) ; return invoke ( request , responseHandler , executionContext ) ; }
<p>
Allows to execute a batch of Put and/or Delete Requests for many
tables in a single call. A total of 25 requests are allowed.
</p>
<p>
There are no transaction guarantees provided by this API. It does not
allow conditional puts nor does it support return values.
</p>

@param batchWriteItemRequest Container for the necessary parameters to
execute the BatchWriteItem service method on AmazonDynamoDB.

@return The response from the BatchWriteItem service method, as
returned by AmazonDynamoDB.

@throws LimitExceededException
@throws ProvisionedThroughputExceededException
@throws InternalServerErrorException
@throws ResourceNotFoundException

@throws AmazonClientException
If any internal errors are encountered inside the client while
attempting to make the request or handle the response.  For example
if a network connection is not available.
@throws AmazonServiceException
If an error response is returned by AmazonDynamoDB indicating
either a problem with the data in the request, or a server side issue.