code: public VirtualHubInner beginCreateOrUpdate(String resourceGroupName, String virtualHubName, VirtualHubInner virtualHubParameters) {
          return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, virtualHubName, virtualHubParameters).toBlocking().single().body();
      }
docs: 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.