7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
50 inline void SetID(
Aws::String&& value) { m_iDHasBeenSet =
true; m_iD = std::move(value); }
51 inline void SetID(
const char* value) { m_iDHasBeenSet =
true; m_iD.assign(value); }
72 inline CORSRule&
AddAllowedHeaders(
const char* value) { m_allowedHeadersHasBeenSet =
true; m_allowedHeaders.push_back(value);
return *
this; }
89 inline CORSRule&
AddAllowedMethods(
const char* value) { m_allowedMethodsHasBeenSet =
true; m_allowedMethods.push_back(value);
return *
this; }
105 inline CORSRule&
AddAllowedOrigins(
const char* value) { m_allowedOriginsHasBeenSet =
true; m_allowedOrigins.push_back(value);
return *
this; }
122 inline CORSRule&
AddExposeHeaders(
const char* value) { m_exposeHeadersHasBeenSet =
true; m_exposeHeaders.push_back(value);
return *
this; }
132 inline void SetMaxAgeSeconds(
int value) { m_maxAgeSecondsHasBeenSet =
true; m_maxAgeSeconds = value; }
138 bool m_iDHasBeenSet =
false;
141 bool m_allowedHeadersHasBeenSet =
false;
144 bool m_allowedMethodsHasBeenSet =
false;
147 bool m_allowedOriginsHasBeenSet =
false;
150 bool m_exposeHeadersHasBeenSet =
false;
153 bool m_maxAgeSecondsHasBeenSet =
false;
CORSRule & AddAllowedMethods(Aws::String &&value)
CORSRule & WithID(const Aws::String &value)
void SetAllowedHeaders(Aws::Vector< Aws::String > &&value)
CORSRule & AddExposeHeaders(Aws::String &&value)
void SetID(Aws::String &&value)
CORSRule & AddAllowedHeaders(const char *value)
const Aws::String & GetID() const
CORSRule & WithAllowedHeaders(Aws::Vector< Aws::String > &&value)
CORSRule & WithExposeHeaders(Aws::Vector< Aws::String > &&value)
AWS_S3CRT_API CORSRule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool IDHasBeenSet() const
CORSRule & WithAllowedHeaders(const Aws::Vector< Aws::String > &value)
void SetAllowedHeaders(const Aws::Vector< Aws::String > &value)
CORSRule & WithAllowedOrigins(Aws::Vector< Aws::String > &&value)
CORSRule & AddAllowedOrigins(Aws::String &&value)
void SetAllowedOrigins(Aws::Vector< Aws::String > &&value)
void SetAllowedOrigins(const Aws::Vector< Aws::String > &value)
AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_S3CRT_API CORSRule(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetAllowedMethods(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetAllowedHeaders() const
bool ExposeHeadersHasBeenSet() const
CORSRule & AddAllowedOrigins(const char *value)
const Aws::Vector< Aws::String > & GetAllowedOrigins() const
bool MaxAgeSecondsHasBeenSet() const
void SetExposeHeaders(Aws::Vector< Aws::String > &&value)
void SetID(const Aws::String &value)
CORSRule & WithExposeHeaders(const Aws::Vector< Aws::String > &value)
CORSRule & WithID(Aws::String &&value)
void SetExposeHeaders(const Aws::Vector< Aws::String > &value)
CORSRule & AddExposeHeaders(const char *value)
CORSRule & WithAllowedOrigins(const Aws::Vector< Aws::String > &value)
void SetMaxAgeSeconds(int value)
bool AllowedMethodsHasBeenSet() const
int GetMaxAgeSeconds() const
bool AllowedHeadersHasBeenSet() const
CORSRule & WithID(const char *value)
CORSRule & AddAllowedOrigins(const Aws::String &value)
CORSRule & WithMaxAgeSeconds(int value)
CORSRule & AddExposeHeaders(const Aws::String &value)
bool AllowedOriginsHasBeenSet() const
CORSRule & WithAllowedMethods(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetAllowedMethods() const
const Aws::Vector< Aws::String > & GetExposeHeaders() const
void SetAllowedMethods(Aws::Vector< Aws::String > &&value)
CORSRule & WithAllowedMethods(const Aws::Vector< Aws::String > &value)
CORSRule & AddAllowedMethods(const char *value)
CORSRule & AddAllowedHeaders(const Aws::String &value)
CORSRule & AddAllowedMethods(const Aws::String &value)
void SetID(const char *value)
CORSRule & AddAllowedHeaders(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector