code: public Observable<ServiceResponse<InboundNatRuleInner>> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String loadBalancerName, String inboundNatRuleName, InboundNatRuleInner inboundNatRuleParameters) {
          if (resourceGroupName == null) {
              throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
          }
          if (loadBalancerName == null) {
              throw new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.");
          }
          if (inboundNatRuleName == null) {
              throw new IllegalArgumentException("Parameter inboundNatRuleName 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 (inboundNatRuleParameters == null) {
              throw new IllegalArgumentException("Parameter inboundNatRuleParameters is required and cannot be null.");
          }
          Validator.validate(inboundNatRuleParameters);
          final String apiVersion = "2018-04-01";
          Observable<Response<ResponseBody>> observable = service.createOrUpdate(resourceGroupName, loadBalancerName, inboundNatRuleName, this.client.subscriptionId(), inboundNatRuleParameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent());
          return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken<InboundNatRuleInner>() { }.getType());
      }
docs: Creates or updates a load balancer inbound nat rule.
  
  @param resourceGroupName The name of the resource group.
  @param loadBalancerName The name of the load balancer.
  @param inboundNatRuleName The name of the inbound nat rule.
  @param inboundNatRuleParameters Parameters supplied to the create or update inbound nat rule operation.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable for the request