code: public RedisFirewallRuleInner createOrUpdate(String resourceGroupName, String cacheName, String ruleName, RedisFirewallRuleCreateParameters parameters) {
          return createOrUpdateWithServiceResponseAsync(resourceGroupName, cacheName, ruleName, parameters).toBlocking().single().body();
      }
docs: Create or update a redis cache firewall rule.
  
  @param resourceGroupName The name of the resource group.
  @param cacheName The name of the Redis cache.
  @param ruleName The name of the firewall rule.
  @param parameters Parameters supplied to the create or update redis firewall rule operation.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws CloudException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the RedisFirewallRuleInner object if successful.