code: public ServiceFuture<RedisFirewallRuleInner> createOrUpdateAsync(String resourceGroupName, String cacheName, String ruleName, RedisFirewallRuleCreateParameters parameters, final ServiceCallback<RedisFirewallRuleInner> serviceCallback) {
          return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, cacheName, ruleName, parameters), serviceCallback);
      }
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.
  @param serviceCallback the async ServiceCallback to handle successful and failed responses.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the {@link ServiceFuture} object