code: public Observable<ConnectionMonitorResultInner> createOrUpdateAsync(String resourceGroupName, String networkWatcherName, String connectionMonitorName, ConnectionMonitorInner parameters) {
          return createOrUpdateWithServiceResponseAsync(resourceGroupName, networkWatcherName, connectionMonitorName, parameters).map(new Func1<ServiceResponse<ConnectionMonitorResultInner>, ConnectionMonitorResultInner>() {
              @Override
              public ConnectionMonitorResultInner call(ServiceResponse<ConnectionMonitorResultInner> response) {
                  return response.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
  @return the observable for the request