code: public PagedList<SyncAgentLinkedDatabaseInner> listLinkedDatabases(final String resourceGroupName, final String serverName, final String syncAgentName) {
          ServiceResponse<Page<SyncAgentLinkedDatabaseInner>> response = listLinkedDatabasesSinglePageAsync(resourceGroupName, serverName, syncAgentName).toBlocking().single();
          return new PagedList<SyncAgentLinkedDatabaseInner>(response.body()) {
              @Override
              public Page<SyncAgentLinkedDatabaseInner> nextPage(String nextPageLink) {
                  return listLinkedDatabasesNextSinglePageAsync(nextPageLink).toBlocking().single().body();
              }
          };
      }
docs: Lists databases linked to a sync agent.
  
  @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 on which the sync agent is hosted.
  @param syncAgentName The name of the sync agent.
  @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;SyncAgentLinkedDatabaseInner&gt; object if successful.