code: public PagedList<P2SVpnServerConfigurationInner> listByVirtualWan(final String resourceGroupName, final String virtualWanName) {
          ServiceResponse<Page<P2SVpnServerConfigurationInner>> response = listByVirtualWanSinglePageAsync(resourceGroupName, virtualWanName).toBlocking().single();
          return new PagedList<P2SVpnServerConfigurationInner>(response.body()) {
              @Override
              public Page<P2SVpnServerConfigurationInner> nextPage(String nextPageLink) {
                  return listByVirtualWanNextSinglePageAsync(nextPageLink).toBlocking().single().body();
              }
          };
      }
docs: Retrieves all P2SVpnServerConfigurations for a particular VirtualWan.
  
  @param resourceGroupName The resource group name of the VirtualWan.
  @param virtualWanName The name of the VirtualWan.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws ErrorException 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;P2SVpnServerConfigurationInner&gt; object if successful.