AWS SDK for C++  1.8.95
AWS SDK for C++
Public Member Functions | List of all members
Aws::S3::Model::CORSRule Class Reference

#include <CORSRule.h>

Public Member Functions

 CORSRule ()
 
 CORSRule (const Aws::Utils::Xml::XmlNode &xmlNode)
 
CORSRuleoperator= (const Aws::Utils::Xml::XmlNode &xmlNode)
 
void AddToNode (Aws::Utils::Xml::XmlNode &parentNode) const
 
const Aws::Vector< Aws::String > & GetAllowedHeaders () const
 
bool AllowedHeadersHasBeenSet () const
 
void SetAllowedHeaders (const Aws::Vector< Aws::String > &value)
 
void SetAllowedHeaders (Aws::Vector< Aws::String > &&value)
 
CORSRuleWithAllowedHeaders (const Aws::Vector< Aws::String > &value)
 
CORSRuleWithAllowedHeaders (Aws::Vector< Aws::String > &&value)
 
CORSRuleAddAllowedHeaders (const Aws::String &value)
 
CORSRuleAddAllowedHeaders (Aws::String &&value)
 
CORSRuleAddAllowedHeaders (const char *value)
 
const Aws::Vector< Aws::String > & GetAllowedMethods () const
 
bool AllowedMethodsHasBeenSet () const
 
void SetAllowedMethods (const Aws::Vector< Aws::String > &value)
 
void SetAllowedMethods (Aws::Vector< Aws::String > &&value)
 
CORSRuleWithAllowedMethods (const Aws::Vector< Aws::String > &value)
 
CORSRuleWithAllowedMethods (Aws::Vector< Aws::String > &&value)
 
CORSRuleAddAllowedMethods (const Aws::String &value)
 
CORSRuleAddAllowedMethods (Aws::String &&value)
 
CORSRuleAddAllowedMethods (const char *value)
 
const Aws::Vector< Aws::String > & GetAllowedOrigins () const
 
bool AllowedOriginsHasBeenSet () const
 
void SetAllowedOrigins (const Aws::Vector< Aws::String > &value)
 
void SetAllowedOrigins (Aws::Vector< Aws::String > &&value)
 
CORSRuleWithAllowedOrigins (const Aws::Vector< Aws::String > &value)
 
CORSRuleWithAllowedOrigins (Aws::Vector< Aws::String > &&value)
 
CORSRuleAddAllowedOrigins (const Aws::String &value)
 
CORSRuleAddAllowedOrigins (Aws::String &&value)
 
CORSRuleAddAllowedOrigins (const char *value)
 
const Aws::Vector< Aws::String > & GetExposeHeaders () const
 
bool ExposeHeadersHasBeenSet () const
 
void SetExposeHeaders (const Aws::Vector< Aws::String > &value)
 
void SetExposeHeaders (Aws::Vector< Aws::String > &&value)
 
CORSRuleWithExposeHeaders (const Aws::Vector< Aws::String > &value)
 
CORSRuleWithExposeHeaders (Aws::Vector< Aws::String > &&value)
 
CORSRuleAddExposeHeaders (const Aws::String &value)
 
CORSRuleAddExposeHeaders (Aws::String &&value)
 
CORSRuleAddExposeHeaders (const char *value)
 
int GetMaxAgeSeconds () const
 
bool MaxAgeSecondsHasBeenSet () const
 
void SetMaxAgeSeconds (int value)
 
CORSRuleWithMaxAgeSeconds (int value)
 

Detailed Description

Specifies a cross-origin access rule for an Amazon S3 bucket.

See Also:

AWS API Reference

Definition at line 32 of file CORSRule.h.

Constructor & Destructor Documentation

◆ CORSRule() [1/2]

Aws::S3::Model::CORSRule::CORSRule ( )

◆ CORSRule() [2/2]

Aws::S3::Model::CORSRule::CORSRule ( const Aws::Utils::Xml::XmlNode xmlNode)

Member Function Documentation

◆ AddAllowedHeaders() [1/3]

CORSRule& Aws::S3::Model::CORSRule::AddAllowedHeaders ( const Aws::String value)
inline

Headers that are specified in the Access-Control-Request-Headers header. These headers are allowed in a preflight OPTIONS request. In response to any preflight OPTIONS request, Amazon S3 returns any requested headers that are allowed.

Definition at line 96 of file CORSRule.h.

◆ AddAllowedHeaders() [2/3]

CORSRule& Aws::S3::Model::CORSRule::AddAllowedHeaders ( Aws::String &&  value)
inline

Headers that are specified in the Access-Control-Request-Headers header. These headers are allowed in a preflight OPTIONS request. In response to any preflight OPTIONS request, Amazon S3 returns any requested headers that are allowed.

Definition at line 104 of file CORSRule.h.

◆ AddAllowedHeaders() [3/3]

CORSRule& Aws::S3::Model::CORSRule::AddAllowedHeaders ( const char *  value)
inline

Headers that are specified in the Access-Control-Request-Headers header. These headers are allowed in a preflight OPTIONS request. In response to any preflight OPTIONS request, Amazon S3 returns any requested headers that are allowed.

Definition at line 112 of file CORSRule.h.

◆ AddAllowedMethods() [1/3]

CORSRule& Aws::S3::Model::CORSRule::AddAllowedMethods ( const Aws::String value)
inline

An HTTP method that you allow the origin to execute. Valid values are GET, PUT, HEAD, POST, and DELETE.

Definition at line 162 of file CORSRule.h.

◆ AddAllowedMethods() [2/3]

CORSRule& Aws::S3::Model::CORSRule::AddAllowedMethods ( Aws::String &&  value)
inline

An HTTP method that you allow the origin to execute. Valid values are GET, PUT, HEAD, POST, and DELETE.

Definition at line 169 of file CORSRule.h.

◆ AddAllowedMethods() [3/3]

CORSRule& Aws::S3::Model::CORSRule::AddAllowedMethods ( const char *  value)
inline

An HTTP method that you allow the origin to execute. Valid values are GET, PUT, HEAD, POST, and DELETE.

Definition at line 176 of file CORSRule.h.

◆ AddAllowedOrigins() [1/3]

CORSRule& Aws::S3::Model::CORSRule::AddAllowedOrigins ( const Aws::String value)
inline

One or more origins you want customers to be able to access the bucket from.

Definition at line 219 of file CORSRule.h.

◆ AddAllowedOrigins() [2/3]

CORSRule& Aws::S3::Model::CORSRule::AddAllowedOrigins ( Aws::String &&  value)
inline

One or more origins you want customers to be able to access the bucket from.

Definition at line 225 of file CORSRule.h.

◆ AddAllowedOrigins() [3/3]

CORSRule& Aws::S3::Model::CORSRule::AddAllowedOrigins ( const char *  value)
inline

One or more origins you want customers to be able to access the bucket from.

Definition at line 231 of file CORSRule.h.

◆ AddExposeHeaders() [1/3]

CORSRule& Aws::S3::Model::CORSRule::AddExposeHeaders ( const Aws::String value)
inline

One or more headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript XMLHttpRequest object).

Definition at line 281 of file CORSRule.h.

◆ AddExposeHeaders() [2/3]

CORSRule& Aws::S3::Model::CORSRule::AddExposeHeaders ( Aws::String &&  value)
inline

One or more headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript XMLHttpRequest object).

Definition at line 288 of file CORSRule.h.

◆ AddExposeHeaders() [3/3]

CORSRule& Aws::S3::Model::CORSRule::AddExposeHeaders ( const char *  value)
inline

One or more headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript XMLHttpRequest object).

Definition at line 295 of file CORSRule.h.

◆ AddToNode()

void Aws::S3::Model::CORSRule::AddToNode ( Aws::Utils::Xml::XmlNode parentNode) const

◆ AllowedHeadersHasBeenSet()

bool Aws::S3::Model::CORSRule::AllowedHeadersHasBeenSet ( ) const
inline

Headers that are specified in the Access-Control-Request-Headers header. These headers are allowed in a preflight OPTIONS request. In response to any preflight OPTIONS request, Amazon S3 returns any requested headers that are allowed.

Definition at line 56 of file CORSRule.h.

◆ AllowedMethodsHasBeenSet()

bool Aws::S3::Model::CORSRule::AllowedMethodsHasBeenSet ( ) const
inline

An HTTP method that you allow the origin to execute. Valid values are GET, PUT, HEAD, POST, and DELETE.

Definition at line 127 of file CORSRule.h.

◆ AllowedOriginsHasBeenSet()

bool Aws::S3::Model::CORSRule::AllowedOriginsHasBeenSet ( ) const
inline

One or more origins you want customers to be able to access the bucket from.

Definition at line 189 of file CORSRule.h.

◆ ExposeHeadersHasBeenSet()

bool Aws::S3::Model::CORSRule::ExposeHeadersHasBeenSet ( ) const
inline

One or more headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript XMLHttpRequest object).

Definition at line 246 of file CORSRule.h.

◆ GetAllowedHeaders()

const Aws::Vector<Aws::String>& Aws::S3::Model::CORSRule::GetAllowedHeaders ( ) const
inline

Headers that are specified in the Access-Control-Request-Headers header. These headers are allowed in a preflight OPTIONS request. In response to any preflight OPTIONS request, Amazon S3 returns any requested headers that are allowed.

Definition at line 48 of file CORSRule.h.

◆ GetAllowedMethods()

const Aws::Vector<Aws::String>& Aws::S3::Model::CORSRule::GetAllowedMethods ( ) const
inline

An HTTP method that you allow the origin to execute. Valid values are GET, PUT, HEAD, POST, and DELETE.

Definition at line 120 of file CORSRule.h.

◆ GetAllowedOrigins()

const Aws::Vector<Aws::String>& Aws::S3::Model::CORSRule::GetAllowedOrigins ( ) const
inline

One or more origins you want customers to be able to access the bucket from.

Definition at line 183 of file CORSRule.h.

◆ GetExposeHeaders()

const Aws::Vector<Aws::String>& Aws::S3::Model::CORSRule::GetExposeHeaders ( ) const
inline

One or more headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript XMLHttpRequest object).

Definition at line 239 of file CORSRule.h.

◆ GetMaxAgeSeconds()

int Aws::S3::Model::CORSRule::GetMaxAgeSeconds ( ) const
inline

The time in seconds that your browser is to cache the preflight response for the specified resource.

Definition at line 302 of file CORSRule.h.

◆ MaxAgeSecondsHasBeenSet()

bool Aws::S3::Model::CORSRule::MaxAgeSecondsHasBeenSet ( ) const
inline

The time in seconds that your browser is to cache the preflight response for the specified resource.

Definition at line 308 of file CORSRule.h.

◆ operator=()

CORSRule& Aws::S3::Model::CORSRule::operator= ( const Aws::Utils::Xml::XmlNode xmlNode)

◆ SetAllowedHeaders() [1/2]

void Aws::S3::Model::CORSRule::SetAllowedHeaders ( const Aws::Vector< Aws::String > &  value)
inline

Headers that are specified in the Access-Control-Request-Headers header. These headers are allowed in a preflight OPTIONS request. In response to any preflight OPTIONS request, Amazon S3 returns any requested headers that are allowed.

Definition at line 64 of file CORSRule.h.

◆ SetAllowedHeaders() [2/2]

void Aws::S3::Model::CORSRule::SetAllowedHeaders ( Aws::Vector< Aws::String > &&  value)
inline

Headers that are specified in the Access-Control-Request-Headers header. These headers are allowed in a preflight OPTIONS request. In response to any preflight OPTIONS request, Amazon S3 returns any requested headers that are allowed.

Definition at line 72 of file CORSRule.h.

◆ SetAllowedMethods() [1/2]

void Aws::S3::Model::CORSRule::SetAllowedMethods ( const Aws::Vector< Aws::String > &  value)
inline

An HTTP method that you allow the origin to execute. Valid values are GET, PUT, HEAD, POST, and DELETE.

Definition at line 134 of file CORSRule.h.

◆ SetAllowedMethods() [2/2]

void Aws::S3::Model::CORSRule::SetAllowedMethods ( Aws::Vector< Aws::String > &&  value)
inline

An HTTP method that you allow the origin to execute. Valid values are GET, PUT, HEAD, POST, and DELETE.

Definition at line 141 of file CORSRule.h.

◆ SetAllowedOrigins() [1/2]

void Aws::S3::Model::CORSRule::SetAllowedOrigins ( const Aws::Vector< Aws::String > &  value)
inline

One or more origins you want customers to be able to access the bucket from.

Definition at line 195 of file CORSRule.h.

◆ SetAllowedOrigins() [2/2]

void Aws::S3::Model::CORSRule::SetAllowedOrigins ( Aws::Vector< Aws::String > &&  value)
inline

One or more origins you want customers to be able to access the bucket from.

Definition at line 201 of file CORSRule.h.

◆ SetExposeHeaders() [1/2]

void Aws::S3::Model::CORSRule::SetExposeHeaders ( const Aws::Vector< Aws::String > &  value)
inline

One or more headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript XMLHttpRequest object).

Definition at line 253 of file CORSRule.h.

◆ SetExposeHeaders() [2/2]

void Aws::S3::Model::CORSRule::SetExposeHeaders ( Aws::Vector< Aws::String > &&  value)
inline

One or more headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript XMLHttpRequest object).

Definition at line 260 of file CORSRule.h.

◆ SetMaxAgeSeconds()

void Aws::S3::Model::CORSRule::SetMaxAgeSeconds ( int  value)
inline

The time in seconds that your browser is to cache the preflight response for the specified resource.

Definition at line 314 of file CORSRule.h.

◆ WithAllowedHeaders() [1/2]

CORSRule& Aws::S3::Model::CORSRule::WithAllowedHeaders ( const Aws::Vector< Aws::String > &  value)
inline

Headers that are specified in the Access-Control-Request-Headers header. These headers are allowed in a preflight OPTIONS request. In response to any preflight OPTIONS request, Amazon S3 returns any requested headers that are allowed.

Definition at line 80 of file CORSRule.h.

◆ WithAllowedHeaders() [2/2]

CORSRule& Aws::S3::Model::CORSRule::WithAllowedHeaders ( Aws::Vector< Aws::String > &&  value)
inline

Headers that are specified in the Access-Control-Request-Headers header. These headers are allowed in a preflight OPTIONS request. In response to any preflight OPTIONS request, Amazon S3 returns any requested headers that are allowed.

Definition at line 88 of file CORSRule.h.

◆ WithAllowedMethods() [1/2]

CORSRule& Aws::S3::Model::CORSRule::WithAllowedMethods ( const Aws::Vector< Aws::String > &  value)
inline

An HTTP method that you allow the origin to execute. Valid values are GET, PUT, HEAD, POST, and DELETE.

Definition at line 148 of file CORSRule.h.

◆ WithAllowedMethods() [2/2]

CORSRule& Aws::S3::Model::CORSRule::WithAllowedMethods ( Aws::Vector< Aws::String > &&  value)
inline

An HTTP method that you allow the origin to execute. Valid values are GET, PUT, HEAD, POST, and DELETE.

Definition at line 155 of file CORSRule.h.

◆ WithAllowedOrigins() [1/2]

CORSRule& Aws::S3::Model::CORSRule::WithAllowedOrigins ( const Aws::Vector< Aws::String > &  value)
inline

One or more origins you want customers to be able to access the bucket from.

Definition at line 207 of file CORSRule.h.

◆ WithAllowedOrigins() [2/2]

CORSRule& Aws::S3::Model::CORSRule::WithAllowedOrigins ( Aws::Vector< Aws::String > &&  value)
inline

One or more origins you want customers to be able to access the bucket from.

Definition at line 213 of file CORSRule.h.

◆ WithExposeHeaders() [1/2]

CORSRule& Aws::S3::Model::CORSRule::WithExposeHeaders ( const Aws::Vector< Aws::String > &  value)
inline

One or more headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript XMLHttpRequest object).

Definition at line 267 of file CORSRule.h.

◆ WithExposeHeaders() [2/2]

CORSRule& Aws::S3::Model::CORSRule::WithExposeHeaders ( Aws::Vector< Aws::String > &&  value)
inline

One or more headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript XMLHttpRequest object).

Definition at line 274 of file CORSRule.h.

◆ WithMaxAgeSeconds()

CORSRule& Aws::S3::Model::CORSRule::WithMaxAgeSeconds ( int  value)
inline

The time in seconds that your browser is to cache the preflight response for the specified resource.

Definition at line 320 of file CORSRule.h.


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