Class CachingRule.Builder
- java.lang.Object
- 
- com.oracle.bmc.waas.model.CachingRule.Builder
 
- 
- Enclosing class:
- CachingRule
 
 public static class CachingRule.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description CachingRule.Builderaction(CachingRule.Action action)The action to take when the criteria of a caching rule are met.CachingRulebuild()CachingRule.BuildercachingDuration(String cachingDuration)The duration to cache content for the caching rule, specified in ISO 8601 extended format.CachingRule.BuilderclientCachingDuration(String clientCachingDuration)The duration to cache content in the user’s browser, specified in ISO 8601 extended format.CachingRule.Buildercopy(CachingRule model)CachingRule.Buildercriteria(List<CachingRuleCriteria> criteria)The array of the rule criteria with condition and value.CachingRule.BuilderisClientCachingEnabled(Boolean isClientCachingEnabled)Enables or disables client caching.CachingRule.Builderkey(String key)The unique key for the caching rule.CachingRule.Buildername(String name)The name of the caching rule.
 
- 
- 
- 
Method Detail- 
keypublic CachingRule.Builder key(String key) The unique key for the caching rule.- Parameters:
- key- the value to set
- Returns:
- this builder
 
 - 
namepublic CachingRule.Builder name(String name) The name of the caching rule.- Parameters:
- name- the value to set
- Returns:
- this builder
 
 - 
actionpublic CachingRule.Builder action(CachingRule.Action action) The action to take when the criteria of a caching rule are met.- CACHE: Caches requested content when the criteria of the rule are met.
 - **BYPASS_CACHE:** Allows requests to bypass the cache and be directed to the origin when the criteria of the rule is met. - Parameters:
- action- the value to set
- Returns:
- this builder
 
 - 
cachingDurationpublic CachingRule.Builder cachingDuration(String cachingDuration) The duration to cache content for the caching rule, specified in ISO 8601 extended format.Supported units: seconds, minutes, hours, days, weeks, months. The maximum value that can be set for any unit is 99. Mixing of multiple units is not supported. Only applies when the action is set to CACHE. Example: PT1H - Parameters:
- cachingDuration- the value to set
- Returns:
- this builder
 
 - 
isClientCachingEnabledpublic CachingRule.Builder isClientCachingEnabled(Boolean isClientCachingEnabled) Enables or disables client caching.Browsers use the Cache-Control header value for caching content locally in the browser. This setting overrides the addition of a Cache-Control header in responses. - Parameters:
- isClientCachingEnabled- the value to set
- Returns:
- this builder
 
 - 
clientCachingDurationpublic CachingRule.Builder clientCachingDuration(String clientCachingDuration) The duration to cache content in the user’s browser, specified in ISO 8601 extended format.Supported units: seconds, minutes, hours, days, weeks, months. The maximum value that can be set for any unit is 99. Mixing of multiple units is not supported. Only applies when the action is set to CACHE. Example: PT1H - Parameters:
- clientCachingDuration- the value to set
- Returns:
- this builder
 
 - 
criteriapublic CachingRule.Builder criteria(List<CachingRuleCriteria> criteria) The array of the rule criteria with condition and value.The caching rule would be applied for the requests that matched any of the listed conditions. - Parameters:
- criteria- the value to set
- Returns:
- this builder
 
 - 
buildpublic CachingRule build() 
 - 
copypublic CachingRule.Builder copy(CachingRule model) 
 
- 
 
-