7#include <aws/lambda/Lambda_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
53 inline void SetAllowCredentials(
bool value) { m_allowCredentialsHasBeenSet =
true; m_allowCredentials = value; }
71 inline Cors&
AddAllowHeaders(
const char* value) { m_allowHeadersHasBeenSet =
true; m_allowHeaders.push_back(value);
return *
this; }
88 inline Cors&
AddAllowMethods(
const char* value) { m_allowMethodsHasBeenSet =
true; m_allowMethods.push_back(value);
return *
this; }
107 inline Cors&
AddAllowOrigins(
const char* value) { m_allowOriginsHasBeenSet =
true; m_allowOrigins.push_back(value);
return *
this; }
124 inline Cors&
AddExposeHeaders(
const char* value) { m_exposeHeadersHasBeenSet =
true; m_exposeHeaders.push_back(value);
return *
this; }
135 inline void SetMaxAge(
int value) { m_maxAgeHasBeenSet =
true; m_maxAge = value; }
140 bool m_allowCredentials;
141 bool m_allowCredentialsHasBeenSet =
false;
144 bool m_allowHeadersHasBeenSet =
false;
147 bool m_allowMethodsHasBeenSet =
false;
150 bool m_allowOriginsHasBeenSet =
false;
153 bool m_exposeHeadersHasBeenSet =
false;
156 bool m_maxAgeHasBeenSet =
false;
Cors & AddAllowOrigins(Aws::String &&value)
Cors & WithAllowHeaders(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetAllowMethods() const
Cors & WithAllowHeaders(const Aws::Vector< Aws::String > &value)
bool ExposeHeadersHasBeenSet() const
Cors & WithExposeHeaders(Aws::Vector< Aws::String > &&value)
void SetExposeHeaders(Aws::Vector< Aws::String > &&value)
Cors & AddAllowHeaders(const Aws::String &value)
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
bool AllowMethodsHasBeenSet() const
Cors & WithAllowOrigins(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetExposeHeaders() const
void SetExposeHeaders(const Aws::Vector< Aws::String > &value)
void SetAllowHeaders(const Aws::Vector< Aws::String > &value)
Cors & WithAllowOrigins(const Aws::Vector< Aws::String > &value)
bool AllowOriginsHasBeenSet() const
void SetAllowMethods(const Aws::Vector< Aws::String > &value)
Cors & AddAllowMethods(const Aws::String &value)
const Aws::Vector< Aws::String > & GetAllowHeaders() const
AWS_LAMBDA_API Cors & operator=(Aws::Utils::Json::JsonView jsonValue)
Cors & AddExposeHeaders(const char *value)
void SetAllowOrigins(Aws::Vector< Aws::String > &&value)
void SetAllowCredentials(bool value)
Cors & AddAllowHeaders(Aws::String &&value)
const Aws::Vector< Aws::String > & GetAllowOrigins() const
Cors & WithAllowMethods(const Aws::Vector< Aws::String > &value)
bool GetAllowCredentials() const
bool AllowHeadersHasBeenSet() const
Cors & AddAllowOrigins(const Aws::String &value)
Cors & AddExposeHeaders(Aws::String &&value)
void SetMaxAge(int value)
Cors & AddAllowMethods(const char *value)
Cors & AddExposeHeaders(const Aws::String &value)
bool MaxAgeHasBeenSet() const
Cors & AddAllowHeaders(const char *value)
Cors & WithMaxAge(int value)
void SetAllowMethods(Aws::Vector< Aws::String > &&value)
Cors & WithAllowCredentials(bool value)
void SetAllowOrigins(const Aws::Vector< Aws::String > &value)
Cors & WithAllowMethods(Aws::Vector< Aws::String > &&value)
Cors & WithExposeHeaders(const Aws::Vector< Aws::String > &value)
void SetAllowHeaders(Aws::Vector< Aws::String > &&value)
Cors & AddAllowMethods(Aws::String &&value)
bool AllowCredentialsHasBeenSet() const
Cors & AddAllowOrigins(const char *value)
AWS_LAMBDA_API Cors(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue