code: public ConnectionMonitorResultInner createOrUpdate(String resourceGroupName, String networkWatcherName, String connectionMonitorName, ConnectionMonitorInner parameters) {
          return createOrUpdateWithServiceResponseAsync(resourceGroupName, networkWatcherName, connectionMonitorName, parameters).toBlocking().last().body();
      }
docs: Create or update a connection monitor.
  
  @param resourceGroupName The name of the resource group containing Network Watcher.
  @param networkWatcherName The name of the Network Watcher resource.
  @param connectionMonitorName The name of the connection monitor.
  @param parameters Parameters that define the operation to create a connection monitor.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws ErrorResponseException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the ConnectionMonitorResultInner object if successful.