public VirtualHubInner createOrUpdate(String resourceGroupName, String virtualHubName, VirtualHubInner virtualHubParameters) {
        return createOrUpdateWithServiceResponseAsync(resourceGroupName, virtualHubName, virtualHubParameters).toBlocking().last().body();
    }
public VirtualHubInner createOrUpdate ( String resourceGroupName , String virtualHubName , VirtualHubInner virtualHubParameters ) { return createOrUpdateWithServiceResponseAsync ( resourceGroupName , virtualHubName , virtualHubParameters ) . toBlocking ( ) . last ( ) . body ( ) ; }
Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub.

@param resourceGroupName The resource group name of the VirtualHub.
@param virtualHubName The name of the VirtualHub.
@param virtualHubParameters Parameters supplied to create or update VirtualHub.
@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 VirtualHubInner object if successful.