AWS SDK for C++  1.8.184
AWS SDK for C++
Public Member Functions | List of all members
Aws::CloudFront::Model::CachedMethods Class Reference

#include <CachedMethods.h>

Public Member Functions

 CachedMethods ()
 
 CachedMethods (const Aws::Utils::Xml::XmlNode &xmlNode)
 
CachedMethodsoperator= (const Aws::Utils::Xml::XmlNode &xmlNode)
 
void AddToNode (Aws::Utils::Xml::XmlNode &parentNode) const
 
int GetQuantity () const
 
bool QuantityHasBeenSet () const
 
void SetQuantity (int value)
 
CachedMethodsWithQuantity (int value)
 
const Aws::Vector< Method > & GetItems () const
 
bool ItemsHasBeenSet () const
 
void SetItems (const Aws::Vector< Method > &value)
 
void SetItems (Aws::Vector< Method > &&value)
 
CachedMethodsWithItems (const Aws::Vector< Method > &value)
 
CachedMethodsWithItems (Aws::Vector< Method > &&value)
 
CachedMethodsAddItems (const Method &value)
 
CachedMethodsAddItems (Method &&value)
 

Detailed Description

A complex type that controls whether CloudFront caches the response to requests using the specified HTTP methods. There are two choices:

If you pick the second choice for your Amazon S3 Origin, you may need to forward Access-Control-Request-Method, Access-Control-Request-Headers, and Origin headers for the responses to be cached correctly.

See Also:

AWS API Reference

Definition at line 38 of file CachedMethods.h.

Constructor & Destructor Documentation

◆ CachedMethods() [1/2]

Aws::CloudFront::Model::CachedMethods::CachedMethods ( )

◆ CachedMethods() [2/2]

Aws::CloudFront::Model::CachedMethods::CachedMethods ( const Aws::Utils::Xml::XmlNode xmlNode)

Member Function Documentation

◆ AddItems() [1/2]

CachedMethods& Aws::CloudFront::Model::CachedMethods::AddItems ( const Method value)
inline

A complex type that contains the HTTP methods that you want CloudFront to cache responses to.

Definition at line 121 of file CachedMethods.h.

◆ AddItems() [2/2]

CachedMethods& Aws::CloudFront::Model::CachedMethods::AddItems ( Method &&  value)
inline

A complex type that contains the HTTP methods that you want CloudFront to cache responses to.

Definition at line 127 of file CachedMethods.h.

◆ AddToNode()

void Aws::CloudFront::Model::CachedMethods::AddToNode ( Aws::Utils::Xml::XmlNode parentNode) const

◆ GetItems()

const Aws::Vector<Method>& Aws::CloudFront::Model::CachedMethods::GetItems ( ) const
inline

A complex type that contains the HTTP methods that you want CloudFront to cache responses to.

Definition at line 85 of file CachedMethods.h.

◆ GetQuantity()

int Aws::CloudFront::Model::CachedMethods::GetQuantity ( ) const
inline

The number of HTTP methods for which you want CloudFront to cache responses. Valid values are 2 (for caching responses to GET and HEAD requests) and 3 (for caching responses to GET, HEAD, and OPTIONS requests).

Definition at line 54 of file CachedMethods.h.

◆ ItemsHasBeenSet()

bool Aws::CloudFront::Model::CachedMethods::ItemsHasBeenSet ( ) const
inline

A complex type that contains the HTTP methods that you want CloudFront to cache responses to.

Definition at line 91 of file CachedMethods.h.

◆ operator=()

CachedMethods& Aws::CloudFront::Model::CachedMethods::operator= ( const Aws::Utils::Xml::XmlNode xmlNode)

◆ QuantityHasBeenSet()

bool Aws::CloudFront::Model::CachedMethods::QuantityHasBeenSet ( ) const
inline

The number of HTTP methods for which you want CloudFront to cache responses. Valid values are 2 (for caching responses to GET and HEAD requests) and 3 (for caching responses to GET, HEAD, and OPTIONS requests).

Definition at line 62 of file CachedMethods.h.

◆ SetItems() [1/2]

void Aws::CloudFront::Model::CachedMethods::SetItems ( Aws::Vector< Method > &&  value)
inline

A complex type that contains the HTTP methods that you want CloudFront to cache responses to.

Definition at line 103 of file CachedMethods.h.

◆ SetItems() [2/2]

void Aws::CloudFront::Model::CachedMethods::SetItems ( const Aws::Vector< Method > &  value)
inline

A complex type that contains the HTTP methods that you want CloudFront to cache responses to.

Definition at line 97 of file CachedMethods.h.

◆ SetQuantity()

void Aws::CloudFront::Model::CachedMethods::SetQuantity ( int  value)
inline

The number of HTTP methods for which you want CloudFront to cache responses. Valid values are 2 (for caching responses to GET and HEAD requests) and 3 (for caching responses to GET, HEAD, and OPTIONS requests).

Definition at line 70 of file CachedMethods.h.

◆ WithItems() [1/2]

CachedMethods& Aws::CloudFront::Model::CachedMethods::WithItems ( Aws::Vector< Method > &&  value)
inline

A complex type that contains the HTTP methods that you want CloudFront to cache responses to.

Definition at line 115 of file CachedMethods.h.

◆ WithItems() [2/2]

CachedMethods& Aws::CloudFront::Model::CachedMethods::WithItems ( const Aws::Vector< Method > &  value)
inline

A complex type that contains the HTTP methods that you want CloudFront to cache responses to.

Definition at line 109 of file CachedMethods.h.

◆ WithQuantity()

CachedMethods& Aws::CloudFront::Model::CachedMethods::WithQuantity ( int  value)
inline

The number of HTTP methods for which you want CloudFront to cache responses. Valid values are 2 (for caching responses to GET and HEAD requests) and 3 (for caching responses to GET, HEAD, and OPTIONS requests).

Definition at line 78 of file CachedMethods.h.


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