code: public PagedList<VpnConnectionInner> listByVpnGateway(final String resourceGroupName, final String gatewayName) {
          ServiceResponse<Page<VpnConnectionInner>> response = listByVpnGatewaySinglePageAsync(resourceGroupName, gatewayName).toBlocking().single();
          return new PagedList<VpnConnectionInner>(response.body()) {
              @Override
              public Page<VpnConnectionInner> nextPage(String nextPageLink) {
                  return listByVpnGatewayNextSinglePageAsync(nextPageLink).toBlocking().single().body();
              }
          };
      }
docs: Retrieves all vpn connections for a particular virtual wan vpn gateway.
  
  @param resourceGroupName The resource group name of the VpnGateway.
  @param gatewayName The name of the gateway.
  @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;VpnConnectionInner&gt; object if successful.