code: public PagedList<ProjectTaskInner> list(final String groupName, final String serviceName, final String projectName) {
          ServiceResponse<Page<ProjectTaskInner>> response = listSinglePageAsync(groupName, serviceName, projectName).toBlocking().single();
          return new PagedList<ProjectTaskInner>(response.body()) {
              @Override
              public Page<ProjectTaskInner> nextPage(String nextPageLink) {
                  return listNextSinglePageAsync(nextPageLink).toBlocking().single().body();
              }
          };
      }
docs: Get tasks in a service.
  The services resource is the top-level resource that represents the Data Migration Service. This method returns a list of tasks owned by a service resource. Some tasks may have a status of Unknown, which indicates that an error occurred while querying the status of that task.
  
  @param groupName Name of the resource group
  @param serviceName Name of the service
  @param projectName Name of the project
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws ApiErrorException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the PagedList&lt;ProjectTaskInner&gt; object if successful.