7#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
37 AWS_APIGATEWAYV2_API
Cors();
50 inline void SetAllowCredentials(
bool value) { m_allowCredentialsHasBeenSet =
true; m_allowCredentials = value; }
66 inline Cors&
AddAllowHeaders(
const char* value) { m_allowHeadersHasBeenSet =
true; m_allowHeaders.push_back(value);
return *
this; }
82 inline Cors&
AddAllowMethods(
const char* value) { m_allowMethodsHasBeenSet =
true; m_allowMethods.push_back(value);
return *
this; }
97 inline Cors&
AddAllowOrigins(
const char* value) { m_allowOriginsHasBeenSet =
true; m_allowOrigins.push_back(value);
return *
this; }
112 inline Cors&
AddExposeHeaders(
const char* value) { m_exposeHeadersHasBeenSet =
true; m_exposeHeaders.push_back(value);
return *
this; }
122 inline void SetMaxAge(
int value) { m_maxAgeHasBeenSet =
true; m_maxAge = value; }
127 bool m_allowCredentials;
128 bool m_allowCredentialsHasBeenSet =
false;
131 bool m_allowHeadersHasBeenSet =
false;
134 bool m_allowMethodsHasBeenSet =
false;
137 bool m_allowOriginsHasBeenSet =
false;
140 bool m_exposeHeadersHasBeenSet =
false;
143 bool m_maxAgeHasBeenSet =
false;
Cors & WithAllowMethods(Aws::Vector< Aws::String > &&value)
Cors & AddAllowHeaders(const Aws::String &value)
AWS_APIGATEWAYV2_API Cors & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAllowCredentials(bool value)
Cors & WithAllowHeaders(const Aws::Vector< Aws::String > &value)
AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APIGATEWAYV2_API Cors(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetAllowMethods() const
bool MaxAgeHasBeenSet() const
Cors & AddAllowOrigins(Aws::String &&value)
void SetExposeHeaders(Aws::Vector< Aws::String > &&value)
bool AllowCredentialsHasBeenSet() const
const Aws::Vector< Aws::String > & GetExposeHeaders() const
Cors & AddAllowMethods(Aws::String &&value)
const Aws::Vector< Aws::String > & GetAllowOrigins() const
bool ExposeHeadersHasBeenSet() const
Cors & WithAllowHeaders(Aws::Vector< Aws::String > &&value)
bool AllowOriginsHasBeenSet() const
void SetAllowHeaders(const Aws::Vector< Aws::String > &value)
Cors & WithExposeHeaders(const Aws::Vector< Aws::String > &value)
void SetMaxAge(int value)
void SetAllowMethods(const Aws::Vector< Aws::String > &value)
void SetAllowOrigins(Aws::Vector< Aws::String > &&value)
void SetAllowHeaders(Aws::Vector< Aws::String > &&value)
Cors & AddExposeHeaders(const Aws::String &value)
Cors & WithAllowMethods(const Aws::Vector< Aws::String > &value)
bool GetAllowCredentials() const
void SetAllowOrigins(const Aws::Vector< Aws::String > &value)
Cors & AddAllowMethods(const char *value)
Cors & AddAllowHeaders(Aws::String &&value)
AWS_APIGATEWAYV2_API Cors()
bool AllowMethodsHasBeenSet() const
Cors & AddAllowOrigins(const Aws::String &value)
void SetExposeHeaders(const Aws::Vector< Aws::String > &value)
Cors & AddAllowHeaders(const char *value)
Cors & AddExposeHeaders(Aws::String &&value)
void SetAllowMethods(Aws::Vector< Aws::String > &&value)
Cors & WithAllowOrigins(const Aws::Vector< Aws::String > &value)
Cors & AddAllowOrigins(const char *value)
Cors & WithExposeHeaders(Aws::Vector< Aws::String > &&value)
Cors & WithMaxAge(int value)
Cors & WithAllowCredentials(bool value)
Cors & WithAllowOrigins(Aws::Vector< Aws::String > &&value)
bool AllowHeadersHasBeenSet() const
const Aws::Vector< Aws::String > & GetAllowHeaders() const
Cors & AddExposeHeaders(const char *value)
Cors & AddAllowMethods(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue