public BatchStatementResponse withError(BatchStatementError error) {
        setError(error);
        return this;
    }
<p>
The error associated with a failed PartiQL batch statement.
</p>

@param error
       The error associated with a failed PartiQL batch statement.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/model/BatchStatementResponse.java