7#include <aws/s3/S3_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;
void SetID(const Aws::String &value)
bool AllowedHeadersHasBeenSet() const
CORSRule & WithAllowedMethods(const Aws::Vector< Aws::String > &value)
CORSRule & AddAllowedOrigins(Aws::String &&value)
AWS_S3_API CORSRule(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetAllowedHeaders(Aws::Vector< Aws::String > &&value)
CORSRule & WithID(const Aws::String &value)
void SetExposeHeaders(const Aws::Vector< Aws::String > &value)
void SetID(const char *value)
void SetAllowedOrigins(const Aws::Vector< Aws::String > &value)
CORSRule & AddAllowedOrigins(const char *value)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
bool AllowedMethodsHasBeenSet() const
const Aws::Vector< Aws::String > & GetAllowedHeaders() const
CORSRule & WithAllowedHeaders(Aws::Vector< Aws::String > &&value)
CORSRule & WithAllowedMethods(Aws::Vector< Aws::String > &&value)
int GetMaxAgeSeconds() const
bool MaxAgeSecondsHasBeenSet() const
void SetAllowedHeaders(const Aws::Vector< Aws::String > &value)
CORSRule & AddAllowedMethods(const char *value)
void SetAllowedMethods(const Aws::Vector< Aws::String > &value)
void SetExposeHeaders(Aws::Vector< Aws::String > &&value)
CORSRule & AddExposeHeaders(const char *value)
CORSRule & WithAllowedHeaders(const Aws::Vector< Aws::String > &value)
void SetID(Aws::String &&value)
bool AllowedOriginsHasBeenSet() const
AWS_S3_API CORSRule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CORSRule & AddAllowedHeaders(const char *value)
bool ExposeHeadersHasBeenSet() const
void SetAllowedOrigins(Aws::Vector< Aws::String > &&value)
const Aws::String & GetID() const
CORSRule & AddExposeHeaders(Aws::String &&value)
const Aws::Vector< Aws::String > & GetAllowedOrigins() const
CORSRule & AddAllowedMethods(Aws::String &&value)
CORSRule & WithAllowedOrigins(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetExposeHeaders() const
CORSRule & WithID(const char *value)
CORSRule & WithID(Aws::String &&value)
void SetAllowedMethods(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetAllowedMethods() const
CORSRule & WithExposeHeaders(Aws::Vector< Aws::String > &&value)
CORSRule & AddAllowedMethods(const Aws::String &value)
void SetMaxAgeSeconds(int value)
CORSRule & AddAllowedHeaders(const Aws::String &value)
CORSRule & WithExposeHeaders(const Aws::Vector< Aws::String > &value)
CORSRule & AddAllowedOrigins(const Aws::String &value)
CORSRule & AddExposeHeaders(const Aws::String &value)
CORSRule & WithAllowedOrigins(Aws::Vector< Aws::String > &&value)
bool IDHasBeenSet() const
CORSRule & AddAllowedHeaders(Aws::String &&value)
CORSRule & WithMaxAgeSeconds(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector