code: public Observable<ServiceResponse<NetworkInterfaceTapConfigurationInner>> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String networkInterfaceName, String tapConfigurationName, NetworkInterfaceTapConfigurationInner tapConfigurationParameters) {
          if (resourceGroupName == null) {
              throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
          }
          if (networkInterfaceName == null) {
              throw new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.");
          }
          if (tapConfigurationName == null) {
              throw new IllegalArgumentException("Parameter tapConfigurationName is required and cannot be null.");
          }
          if (this.client.subscriptionId() == null) {
              throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
          }
          if (tapConfigurationParameters == null) {
              throw new IllegalArgumentException("Parameter tapConfigurationParameters is required and cannot be null.");
          }
          Validator.validate(tapConfigurationParameters);
          final String apiVersion = "2018-08-01";
          Observable<Response<ResponseBody>> observable = service.createOrUpdate(resourceGroupName, networkInterfaceName, tapConfigurationName, this.client.subscriptionId(), tapConfigurationParameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent());
          return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken<NetworkInterfaceTapConfigurationInner>() { }.getType());
      }
docs: Creates or updates a Tap configuration in the specified NetworkInterface.
  
  @param resourceGroupName The name of the resource group.
  @param networkInterfaceName The name of the network interface.
  @param tapConfigurationName The name of the tap configuration.
  @param tapConfigurationParameters Parameters supplied to the create or update tap configuration operation.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable for the request