Interface CacheSettings.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<CacheSettings.Builder,,- CacheSettings> - SdkBuilder<CacheSettings.Builder,,- CacheSettings> - SdkPojo
- Enclosing class:
- CacheSettings
- 
Method SummaryModifier and TypeMethodDescriptionallowedHTTPMethods(String allowedHTTPMethods) The HTTP methods that are processed and forwarded to the distribution's origin.cachedHTTPMethods(String cachedHTTPMethods) The HTTP method responses that are cached by your distribution.defaultTTL(Long defaultTTL) The default amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the content has been updated.default CacheSettings.BuilderforwardedCookies(Consumer<CookieObject.Builder> forwardedCookies) An object that describes the cookies that are forwarded to the origin.forwardedCookies(CookieObject forwardedCookies) An object that describes the cookies that are forwarded to the origin.default CacheSettings.BuilderforwardedHeaders(Consumer<HeaderObject.Builder> forwardedHeaders) An object that describes the headers that are forwarded to the origin.forwardedHeaders(HeaderObject forwardedHeaders) An object that describes the headers that are forwarded to the origin.default CacheSettings.BuilderforwardedQueryStrings(Consumer<QueryStringObject.Builder> forwardedQueryStrings) An object that describes the query strings that are forwarded to the origin.forwardedQueryStrings(QueryStringObject forwardedQueryStrings) An object that describes the query strings that are forwarded to the origin.maximumTTL(Long maximumTTL) The maximum amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the object has been updated.minimumTTL(Long minimumTTL) The minimum amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the object has been updated.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
defaultTTLThe default amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the content has been updated. The value specified applies only when the origin does not add HTTP headers such as Cache-Control max-age,Cache-Control s-maxage, andExpiresto objects.- Parameters:
- defaultTTL- The default amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the content has been updated.- The value specified applies only when the origin does not add HTTP headers such as - Cache-Control max-age,- Cache-Control s-maxage, and- Expiresto objects.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
minimumTTLThe minimum amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the object has been updated. A value of 0must be specified forminimumTTLif the distribution is configured to forward all headers to the origin.- Parameters:
- minimumTTL- The minimum amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the object has been updated.- A value of - 0must be specified for- minimumTTLif the distribution is configured to forward all headers to the origin.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
maximumTTLThe maximum amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the object has been updated. The value specified applies only when the origin adds HTTP headers such as Cache-Control max-age,Cache-Control s-maxage, andExpiresto objects.- Parameters:
- maximumTTL- The maximum amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the object has been updated.- The value specified applies only when the origin adds HTTP headers such as - Cache-Control max-age,- Cache-Control s-maxage, and- Expiresto objects.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
allowedHTTPMethodsThe HTTP methods that are processed and forwarded to the distribution's origin. You can specify the following options: - 
 GET,HEAD- The distribution forwards theGETandHEADmethods.
- 
 GET,HEAD,OPTIONS- The distribution forwards theGET,HEAD, andOPTIONSmethods.
- 
 GET,HEAD,OPTIONS,PUT,PATCH,POST,DELETE- The distribution forwards theGET,HEAD,OPTIONS,PUT,PATCH,POST, andDELETEmethods.
 If you specify the third option, you might need to restrict access to your distribution's origin so users can't perform operations that you don't want them to. For example, you might not want users to have permission to delete objects from your origin. - Parameters:
- allowedHTTPMethods- The HTTP methods that are processed and forwarded to the distribution's origin.- You can specify the following options: - 
        GET,HEAD- The distribution forwards theGETandHEADmethods.
- 
        GET,HEAD,OPTIONS- The distribution forwards theGET,HEAD, andOPTIONSmethods.
- 
        GET,HEAD,OPTIONS,PUT,PATCH,POST,DELETE- The distribution forwards theGET,HEAD,OPTIONS,PUT,PATCH,POST, andDELETEmethods.
 - If you specify the third option, you might need to restrict access to your distribution's origin so users can't perform operations that you don't want them to. For example, you might not want users to have permission to delete objects from your origin. 
- 
        
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
 
- 
cachedHTTPMethodsThe HTTP method responses that are cached by your distribution. You can specify the following options: - 
 GET,HEAD- The distribution caches responses to theGETandHEADmethods.
- 
 GET,HEAD,OPTIONS- The distribution caches responses to theGET,HEAD, andOPTIONSmethods.
 - Parameters:
- cachedHTTPMethods- The HTTP method responses that are cached by your distribution.- You can specify the following options: - 
        GET,HEAD- The distribution caches responses to theGETandHEADmethods.
- 
        GET,HEAD,OPTIONS- The distribution caches responses to theGET,HEAD, andOPTIONSmethods.
 
- 
        
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
 
- 
forwardedCookiesAn object that describes the cookies that are forwarded to the origin. Your content is cached based on the cookies that are forwarded. - Parameters:
- forwardedCookies- An object that describes the cookies that are forwarded to the origin. Your content is cached based on the cookies that are forwarded.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
forwardedCookiesAn object that describes the cookies that are forwarded to the origin. Your content is cached based on the cookies that are forwarded. This is a convenience method that creates an instance of theCookieObject.Builderavoiding the need to create one manually viaCookieObject.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toforwardedCookies(CookieObject).- Parameters:
- forwardedCookies- a consumer that will call methods on- CookieObject.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
forwardedHeadersAn object that describes the headers that are forwarded to the origin. Your content is cached based on the headers that are forwarded. - Parameters:
- forwardedHeaders- An object that describes the headers that are forwarded to the origin. Your content is cached based on the headers that are forwarded.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
forwardedHeadersAn object that describes the headers that are forwarded to the origin. Your content is cached based on the headers that are forwarded. This is a convenience method that creates an instance of theHeaderObject.Builderavoiding the need to create one manually viaHeaderObject.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toforwardedHeaders(HeaderObject).- Parameters:
- forwardedHeaders- a consumer that will call methods on- HeaderObject.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
forwardedQueryStringsAn object that describes the query strings that are forwarded to the origin. Your content is cached based on the query strings that are forwarded. - Parameters:
- forwardedQueryStrings- An object that describes the query strings that are forwarded to the origin. Your content is cached based on the query strings that are forwarded.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
forwardedQueryStringsdefault CacheSettings.Builder forwardedQueryStrings(Consumer<QueryStringObject.Builder> forwardedQueryStrings) An object that describes the query strings that are forwarded to the origin. Your content is cached based on the query strings that are forwarded. This is a convenience method that creates an instance of theQueryStringObject.Builderavoiding the need to create one manually viaQueryStringObject.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toforwardedQueryStrings(QueryStringObject).- Parameters:
- forwardedQueryStrings- a consumer that will call methods on- QueryStringObject.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
 
-