AWS SDK for C++  1.8.96
AWS SDK for C++
Public Member Functions | List of all members
Aws::Lightsail::Model::CacheBehavior Class Reference

#include <CacheBehavior.h>

Public Member Functions

 CacheBehavior ()
 
 CacheBehavior (Aws::Utils::Json::JsonView jsonValue)
 
CacheBehavioroperator= (Aws::Utils::Json::JsonView jsonValue)
 
Aws::Utils::Json::JsonValue Jsonize () const
 
const BehaviorEnumGetBehavior () const
 
bool BehaviorHasBeenSet () const
 
void SetBehavior (const BehaviorEnum &value)
 
void SetBehavior (BehaviorEnum &&value)
 
CacheBehaviorWithBehavior (const BehaviorEnum &value)
 
CacheBehaviorWithBehavior (BehaviorEnum &&value)
 

Detailed Description

Describes the default cache behavior of an Amazon Lightsail content delivery network (CDN) distribution.

See Also:

AWS API Reference

Definition at line 32 of file CacheBehavior.h.

Constructor & Destructor Documentation

◆ CacheBehavior() [1/2]

Aws::Lightsail::Model::CacheBehavior::CacheBehavior ( )

◆ CacheBehavior() [2/2]

Aws::Lightsail::Model::CacheBehavior::CacheBehavior ( Aws::Utils::Json::JsonView  jsonValue)

Member Function Documentation

◆ BehaviorHasBeenSet()

bool Aws::Lightsail::Model::CacheBehavior::BehaviorHasBeenSet ( ) const
inline

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.

Definition at line 71 of file CacheBehavior.h.

◆ GetBehavior()

const BehaviorEnum& Aws::Lightsail::Model::CacheBehavior::GetBehavior ( ) const
inline

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.

Definition at line 55 of file CacheBehavior.h.

◆ Jsonize()

Aws::Utils::Json::JsonValue Aws::Lightsail::Model::CacheBehavior::Jsonize ( ) const

◆ operator=()

CacheBehavior& Aws::Lightsail::Model::CacheBehavior::operator= ( Aws::Utils::Json::JsonView  jsonValue)

◆ SetBehavior() [1/2]

void Aws::Lightsail::Model::CacheBehavior::SetBehavior ( const BehaviorEnum value)
inline

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.

Definition at line 87 of file CacheBehavior.h.

◆ SetBehavior() [2/2]

void Aws::Lightsail::Model::CacheBehavior::SetBehavior ( BehaviorEnum &&  value)
inline

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.

Definition at line 103 of file CacheBehavior.h.

◆ WithBehavior() [1/2]

CacheBehavior& Aws::Lightsail::Model::CacheBehavior::WithBehavior ( const BehaviorEnum value)
inline

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.

Definition at line 119 of file CacheBehavior.h.

◆ WithBehavior() [2/2]

CacheBehavior& Aws::Lightsail::Model::CacheBehavior::WithBehavior ( BehaviorEnum &&  value)
inline

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.

Definition at line 135 of file CacheBehavior.h.


The documentation for this class was generated from the following file: