public ServiceFuture<VirtualNetworkRuleInner> beginCreateOrUpdateAsync(String resourceGroupName, String serverName, String virtualNetworkRuleName, VirtualNetworkRuleInner parameters, final ServiceCallback<VirtualNetworkRuleInner> serviceCallback) {
        return ServiceFuture.fromResponse(beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, serverName, virtualNetworkRuleName, parameters), serviceCallback);
    }
public ServiceFuture < VirtualNetworkRuleInner > beginCreateOrUpdateAsync ( String resourceGroupName , String serverName , String virtualNetworkRuleName , VirtualNetworkRuleInner parameters , final ServiceCallback < VirtualNetworkRuleInner > serviceCallback ) { return ServiceFuture . fromResponse ( beginCreateOrUpdateWithServiceResponseAsync ( resourceGroupName , serverName , virtualNetworkRuleName , parameters ) , serviceCallback ) ; }
Creates or updates an existing virtual network rule.

@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.
@param virtualNetworkRuleName The name of the virtual network rule.
@param parameters The requested virtual Network Rule Resource state.
@param serviceCallback the async ServiceCallback to handle successful and failed responses.
@throws IllegalArgumentException thrown if parameters fail the validation
@return the {@link ServiceFuture} object