code: public PagedList<NetworkWatcherInner> listByResourceGroup(String resourceGroupName) {
          PageImpl1<NetworkWatcherInner> page = new PageImpl1<>();
          page.setItems(listByResourceGroupWithServiceResponseAsync(resourceGroupName).toBlocking().single().body());
          page.setNextPageLink(null);
          return new PagedList<NetworkWatcherInner>(page) {
              @Override
              public Page<NetworkWatcherInner> nextPage(String nextPageLink) {
                  return null;
              }
          };
      }
docs: Gets all network watchers by resource group.
  
  @param resourceGroupName The name of the resource group.
  @return the PagedList<NetworkWatcherInner> object if successful.