@Generated(value="software.amazon.awssdk:codegen") public final class CacheBehavior extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CacheBehavior.Builder,CacheBehavior>
Describes the default cache behavior of an Amazon Lightsail content delivery network (CDN) distribution.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CacheBehavior.Builder |
| Modifier and Type | Method and Description |
|---|---|
BehaviorEnum |
behavior()
The cache behavior of the distribution.
|
String |
behaviorAsString()
The cache behavior of the distribution.
|
static CacheBehavior.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends CacheBehavior.Builder> |
serializableBuilderClass() |
CacheBehavior.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final 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's
CacheBehaviorPerPath parameter. This behavior is ideal for websites or web applications that use
cookies, headers, and query strings to personalize content for individual users.
If the service returns an enum value that is not available in the current SDK version, behavior will
return BehaviorEnum.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
behaviorAsString().
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's CacheBehaviorPerPath parameter. This behavior is ideal for websites or web
applications that use cookies, headers, and query strings to personalize content for individual users.
BehaviorEnumpublic final String behaviorAsString()
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's
CacheBehaviorPerPath parameter. This behavior is ideal for websites or web applications that use
cookies, headers, and query strings to personalize content for individual users.
If the service returns an enum value that is not available in the current SDK version, behavior will
return BehaviorEnum.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
behaviorAsString().
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's CacheBehaviorPerPath parameter. This behavior is ideal for websites or web
applications that use cookies, headers, and query strings to personalize content for individual users.
BehaviorEnumpublic CacheBehavior.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CacheBehavior.Builder,CacheBehavior>public static CacheBehavior.Builder builder()
public static Class<? extends CacheBehavior.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.