Interface HttpRequestCacheConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<HttpRequestCacheConfiguration.Builder,,HttpRequestCacheConfiguration> SdkBuilder<HttpRequestCacheConfiguration.Builder,,HttpRequestCacheConfiguration> SdkPojo
- Enclosing class:
HttpRequestCacheConfiguration
@Mutable
@NotThreadSafe
public static interface HttpRequestCacheConfiguration.Builder
extends SdkPojo, CopyableBuilder<HttpRequestCacheConfiguration.Builder,HttpRequestCacheConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptionA JSONata expression that MediaTailor evaluates to a custom cache key.ttlMaximumSeconds(Integer ttlMaximumSeconds) The upper bound, in seconds, on how long MediaTailor caches a response.ttlMinimumSeconds(Integer ttlMinimumSeconds) The lower bound, in seconds, on how long MediaTailor caches a response.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
ttlMinimumSeconds
The lower bound, in seconds, on how long MediaTailor caches a response. MediaTailor also uses this value as the cache duration when a response has no
Cache-Controlmax-agedirective.- Parameters:
ttlMinimumSeconds- The lower bound, in seconds, on how long MediaTailor caches a response. MediaTailor also uses this value as the cache duration when a response has noCache-Controlmax-agedirective.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ttlMaximumSeconds
The upper bound, in seconds, on how long MediaTailor caches a response. This value must be greater than or equal to
TtlMinimumSeconds.- Parameters:
ttlMaximumSeconds- The upper bound, in seconds, on how long MediaTailor caches a response. This value must be greater than or equal toTtlMinimumSeconds.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
key
A JSONata expression that MediaTailor evaluates to a custom cache key. By default, the cache key is a hash of the HTTP URL, the request body, and the HTTP method; request headers are not included. You can specify a custom cache key expression to vary caching by request headers and more. The evaluated key must be smaller than 1 KB; otherwise the HTTP function will fail.
- Parameters:
key- A JSONata expression that MediaTailor evaluates to a custom cache key. By default, the cache key is a hash of the HTTP URL, the request body, and the HTTP method; request headers are not included. You can specify a custom cache key expression to vary caching by request headers and more. The evaluated key must be smaller than 1 KB; otherwise the HTTP function will fail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-