Interface CacheBehavior.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<CacheBehavior.Builder,CacheBehavior>,SdkBuilder<CacheBehavior.Builder,CacheBehavior>,SdkPojo
- Enclosing class:
- CacheBehavior
public static interface CacheBehavior.Builder extends SdkPojo, CopyableBuilder<CacheBehavior.Builder,CacheBehavior>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CacheBehavior.Builderbehavior(String behavior)The cache behavior of the distribution.CacheBehavior.Builderbehavior(BehaviorEnum behavior)The cache behavior of the distribution.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
behavior
CacheBehavior.Builder behavior(String behavior)
The cache behavior of the distribution.
The following cache behaviors can be specified:
-
cache- This option is best for static sites. When specified, your distribution caches and serves your entire website as static content. This behavior is ideal for websites with static content that doesn't change depending on who views it, or for websites that don't use cookies, headers, or query strings to personalize content. -
dont-cache- This option is best for sites that serve a mix of static and dynamic content. When specified, your distribution caches and serve only the content that is specified in the distribution'sCacheBehaviorPerPathparameter. This behavior is ideal for websites or web applications that use cookies, headers, and query strings to personalize content for individual users.
- Parameters:
behavior- The cache behavior of the distribution.The following cache behaviors can be specified:
-
cache- This option is best for static sites. When specified, your distribution caches and serves your entire website as static content. This behavior is ideal for websites with static content that doesn't change depending on who views it, or for websites that don't use cookies, headers, or query strings to personalize content. -
dont-cache- This option is best for sites that serve a mix of static and dynamic content. When specified, your distribution caches and serve only the content that is specified in the distribution'sCacheBehaviorPerPathparameter. This behavior is ideal for websites or web applications that use cookies, headers, and query strings to personalize content for individual users.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
BehaviorEnum,BehaviorEnum
-
-
behavior
CacheBehavior.Builder behavior(BehaviorEnum behavior)
The cache behavior of the distribution.
The following cache behaviors can be specified:
-
cache- This option is best for static sites. When specified, your distribution caches and serves your entire website as static content. This behavior is ideal for websites with static content that doesn't change depending on who views it, or for websites that don't use cookies, headers, or query strings to personalize content. -
dont-cache- This option is best for sites that serve a mix of static and dynamic content. When specified, your distribution caches and serve only the content that is specified in the distribution'sCacheBehaviorPerPathparameter. This behavior is ideal for websites or web applications that use cookies, headers, and query strings to personalize content for individual users.
- Parameters:
behavior- The cache behavior of the distribution.The following cache behaviors can be specified:
-
cache- This option is best for static sites. When specified, your distribution caches and serves your entire website as static content. This behavior is ideal for websites with static content that doesn't change depending on who views it, or for websites that don't use cookies, headers, or query strings to personalize content. -
dont-cache- This option is best for sites that serve a mix of static and dynamic content. When specified, your distribution caches and serve only the content that is specified in the distribution'sCacheBehaviorPerPathparameter. This behavior is ideal for websites or web applications that use cookies, headers, and query strings to personalize content for individual users.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
BehaviorEnum,BehaviorEnum
-
-
-