code: public PagedList<SyncGroupLogPropertiesInner> listLogs(final String resourceGroupName, final String serverName, final String databaseName, final String syncGroupName, final String startTime, final String endTime, final String type) {
          ServiceResponse<Page<SyncGroupLogPropertiesInner>> response = listLogsSinglePageAsync(resourceGroupName, serverName, databaseName, syncGroupName, startTime, endTime, type).toBlocking().single();
          return new PagedList<SyncGroupLogPropertiesInner>(response.body()) {
              @Override
              public Page<SyncGroupLogPropertiesInner> nextPage(String nextPageLink) {
                  return listLogsNextSinglePageAsync(nextPageLink).toBlocking().single().body();
              }
          };
      }
docs: Gets a collection of sync group logs.
  
  @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  @param serverName The name of the server.
  @param databaseName The name of the database on which the sync group is hosted.
  @param syncGroupName The name of the sync group.
  @param startTime Get logs generated after this time.
  @param endTime Get logs generated before this time.
  @param type The types of logs to retrieve. Possible values include: 'All', 'Error', 'Warning', 'Success'
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws CloudException 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;SyncGroupLogPropertiesInner&gt; object if successful.