public OvhCacheRule serviceName_domains_domain_cacheRules_POST(String serviceName, String domain, OvhCacheRuleCacheTypeEnum cacheType, String fileMatch, OvhCacheRuleFileTypeEnum fileType, Long ttl) throws IOException {
		String qPath = "/cdn/dedicated/{serviceName}/domains/{domain}/cacheRules";
		StringBuilder sb = path(qPath, serviceName, domain);
		HashMap<String, Object>o = new HashMap<String, Object>();
		addBody(o, "cacheType", cacheType);
		addBody(o, "fileMatch", fileMatch);
		addBody(o, "fileType", fileType);
		addBody(o, "ttl", ttl);
		String resp = exec(qPath, "POST", sb.toString(), o);
		return convertTo(resp, OvhCacheRule.class);
	}
public OvhCacheRule serviceName_domains_domain_cacheRules_POST ( String serviceName , String domain , OvhCacheRuleCacheTypeEnum cacheType , String fileMatch , OvhCacheRuleFileTypeEnum fileType , Long ttl ) throws IOException { String qPath = "/cdn/dedicated/{serviceName}/domains/{domain}/cacheRules" ; StringBuilder sb = path ( qPath , serviceName , domain ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "cacheType" , cacheType ) ; addBody ( o , "fileMatch" , fileMatch ) ; addBody ( o , "fileType" , fileType ) ; addBody ( o , "ttl" , ttl ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhCacheRule . class ) ; }
Add a cache rule to a domain

REST: POST /cdn/dedicated/{serviceName}/domains/{domain}/cacheRules
@param cacheType [required] Type of cache rule to add to the domain
@param ttl [required] ttl for cache rule to add to the domain
@param fileMatch [required] File match for cache rule to add to the domain
@param fileType [required] File type for cache rule to add to the domain
@param serviceName [required] The internal name of your CDN offer
@param domain [required] Domain of this object