public ServiceFuture<GatewayRouteListResultInner> getLearnedRoutesAsync(String resourceGroupName, String virtualNetworkGatewayName, final ServiceCallback<GatewayRouteListResultInner> serviceCallback) {
        return ServiceFuture.fromResponse(getLearnedRoutesWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayName), serviceCallback);
    }
public ServiceFuture < GatewayRouteListResultInner > getLearnedRoutesAsync ( String resourceGroupName , String virtualNetworkGatewayName , final ServiceCallback < GatewayRouteListResultInner > serviceCallback ) { return ServiceFuture . fromResponse ( getLearnedRoutesWithServiceResponseAsync ( resourceGroupName , virtualNetworkGatewayName ) , serviceCallback ) ; }
This operation retrieves a list of routes the virtual network gateway has learned, including routes learned from BGP peers.

@param resourceGroupName The name of the resource group.
@param virtualNetworkGatewayName The name of the virtual network gateway.
@param serviceCallback the async ServiceCallback to handle successful and failed responses.
@throws IllegalArgumentException thrown if parameters fail the validation
@return the {@link ServiceFuture} object