@Generated(value="OracleSDKGenerator", comments="API Version: 20181116") public final class CachingRuleSummary extends Object
The caching rule settings.
Note: Objects should always be created or deserialized using the CachingRuleSummary.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of the CachingRuleSummary.Builder, which maintain a set of all explicitly set fields called __explicitlySet__. The hashCode() and equals(Object) methods are implemented to take __explicitlySet__ into account. The constructor, on the other hand, does not set __explicitlySet__ (since the constructor cannot distinguish explicit null from unset null).
| Modifier and Type | Class and Description |
|---|---|
static class |
CachingRuleSummary.Action
The action to take on matched caching rules.
|
static class |
CachingRuleSummary.Builder |
| Constructor and Description |
|---|
CachingRuleSummary(String key,
String name,
CachingRuleSummary.Action action,
String cachingDuration,
Boolean isClientCachingEnabled,
String clientCachingDuration,
List<CachingRuleCriteria> criteria)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static CachingRuleSummary.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Set<String> |
get__explicitlySet__() |
CachingRuleSummary.Action |
getAction()
The action to take on matched caching rules.
|
String |
getCachingDuration()
The caching duration (applies only to
CACHE action) specified in ISO 8601 extended format. |
String |
getClientCachingDuration()
The client caching duration (applies only to
CACHE action) specified in ISO 8601 extended format, in case client caching enabled. |
List<CachingRuleCriteria> |
getCriteria()
The array of the rule criteria with condition and value.
|
Boolean |
getIsClientCachingEnabled()
Enables or disables the client caching.
|
String |
getKey()
The unique key for the caching rule.
|
String |
getName()
The name of the caching rule.
|
int |
hashCode() |
String |
toString() |
@ConstructorProperties(value={"key","name","action","cachingDuration","isClientCachingEnabled","clientCachingDuration","criteria"}) @Deprecated public CachingRuleSummary(String key, String name, CachingRuleSummary.Action action, String cachingDuration, Boolean isClientCachingEnabled, String clientCachingDuration, List<CachingRuleCriteria> criteria)
public static CachingRuleSummary.Builder builder()
Create a new builder.
public String getKey()
The unique key for the caching rule.
public String getName()
The name of the caching rule.
public CachingRuleSummary.Action getAction()
The action to take on matched caching rules. - CACHE: Allow to set caching rule, which would be cached.
- BYPASS_CACHE: Allow to set caching rule, which would never be cached. e.g. all requests would be passed directly to origin for those file types.
public String getCachingDuration()
The caching duration (applies only to CACHE action) specified in ISO 8601 extended format. Supported units: seconds, minutes, hours, days, weeks, months. Max value - 99. Mixing of multiple units is not supported.
public Boolean getIsClientCachingEnabled()
Enables or disables the client caching. Browsers use the Cache-Control header value for caching content locally, in the browser. This setting will control the addition of a Cache-Control header to responses. It overrides existing Cache-Control headers.
public String getClientCachingDuration()
The client caching duration (applies only to CACHE action) specified in ISO 8601 extended format, in case client caching enabled. It sets Cache-Control header max-age time, i.e. the local browser cache expire time. Supported units: seconds, minutes, hours, days, weeks, months. Max value - 99. Mixing of multiple units is not supported.
public List<CachingRuleCriteria> getCriteria()
The array of the rule criteria with condition and value.
Copyright © 2016–2019. All rights reserved.