7#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/apigatewayv2/model/Cors.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/apigatewayv2/model/ProtocolType.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
39 AWS_APIGATEWAYV2_API
Api();
55 inline void SetApiEndpoint(
const char* value) { m_apiEndpointHasBeenSet =
true; m_apiEndpoint.assign(value); }
69 inline void SetApiGatewayManaged(
bool value) { m_apiGatewayManagedHasBeenSet =
true; m_apiGatewayManaged = value; }
81 inline void SetApiId(
const char* value) { m_apiIdHasBeenSet =
true; m_apiId.assign(value); }
97 inline void SetApiKeySelectionExpression(
const char* value) { m_apiKeySelectionExpressionHasBeenSet =
true; m_apiKeySelectionExpression.assign(value); }
135 inline void SetDescription(
const char* value) { m_descriptionHasBeenSet =
true; m_description.assign(value); }
180 inline Api&
AddImportInfo(
const char* value) { m_importInfoHasBeenSet =
true; m_importInfo.push_back(value);
return *
this; }
191 inline void SetName(
const char* value) { m_nameHasBeenSet =
true; m_name.assign(value); }
220 inline void SetRouteSelectionExpression(
const char* value) { m_routeSelectionExpressionHasBeenSet =
true; m_routeSelectionExpression.assign(value); }
240 inline Api&
AddTags(
const char* key,
Aws::String&& value) { m_tagsHasBeenSet =
true; m_tags.emplace(key, std::move(value));
return *
this; }
241 inline Api&
AddTags(
Aws::String&& key,
const char* value) { m_tagsHasBeenSet =
true; m_tags.emplace(std::move(key), value);
return *
this; }
242 inline Api&
AddTags(
const char* key,
const char* value) { m_tagsHasBeenSet =
true; m_tags.emplace(key, value);
return *
this; }
253 inline void SetVersion(
const char* value) { m_versionHasBeenSet =
true; m_version.assign(value); }
272 inline Api&
AddWarnings(
const char* value) { m_warningsHasBeenSet =
true; m_warnings.push_back(value);
return *
this; }
277 bool m_apiEndpointHasBeenSet =
false;
279 bool m_apiGatewayManaged;
280 bool m_apiGatewayManagedHasBeenSet =
false;
283 bool m_apiIdHasBeenSet =
false;
286 bool m_apiKeySelectionExpressionHasBeenSet =
false;
288 Cors m_corsConfiguration;
289 bool m_corsConfigurationHasBeenSet =
false;
292 bool m_createdDateHasBeenSet =
false;
295 bool m_descriptionHasBeenSet =
false;
297 bool m_disableSchemaValidation;
298 bool m_disableSchemaValidationHasBeenSet =
false;
300 bool m_disableExecuteApiEndpoint;
301 bool m_disableExecuteApiEndpointHasBeenSet =
false;
304 bool m_importInfoHasBeenSet =
false;
307 bool m_nameHasBeenSet =
false;
310 bool m_protocolTypeHasBeenSet =
false;
313 bool m_routeSelectionExpressionHasBeenSet =
false;
316 bool m_tagsHasBeenSet =
false;
319 bool m_versionHasBeenSet =
false;
322 bool m_warningsHasBeenSet =
false;
void SetRouteSelectionExpression(const char *value)
Api & WithApiId(const Aws::String &value)
bool DescriptionHasBeenSet() const
void SetProtocolType(const ProtocolType &value)
void SetRouteSelectionExpression(const Aws::String &value)
Api & WithApiEndpoint(Aws::String &&value)
Api & WithDisableSchemaValidation(bool value)
Api & AddImportInfo(const char *value)
bool GetDisableExecuteApiEndpoint() const
bool ApiIdHasBeenSet() const
Api & WithApiKeySelectionExpression(const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetDescription(const Aws::String &value)
void SetApiEndpoint(Aws::String &&value)
void SetWarnings(const Aws::Vector< Aws::String > &value)
Api & WithRouteSelectionExpression(const char *value)
void SetVersion(Aws::String &&value)
Api & WithDescription(const Aws::String &value)
bool ApiKeySelectionExpressionHasBeenSet() const
Api & AddTags(Aws::String &&key, Aws::String &&value)
bool ApiGatewayManagedHasBeenSet() const
void SetName(const Aws::String &value)
Api & WithApiEndpoint(const char *value)
void SetVersion(const Aws::String &value)
Api & WithProtocolType(ProtocolType &&value)
Api & WithApiKeySelectionExpression(Aws::String &&value)
bool VersionHasBeenSet() const
bool CorsConfigurationHasBeenSet() const
Api & WithApiEndpoint(const Aws::String &value)
const Aws::String & GetApiKeySelectionExpression() const
const Aws::String & GetVersion() const
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
bool WarningsHasBeenSet() const
bool ProtocolTypeHasBeenSet() const
void SetName(Aws::String &&value)
Api & WithVersion(Aws::String &&value)
bool DisableExecuteApiEndpointHasBeenSet() const
Api & AddTags(const Aws::String &key, const Aws::String &value)
Api & WithName(const Aws::String &value)
Api & WithApiGatewayManaged(bool value)
void SetProtocolType(ProtocolType &&value)
void SetImportInfo(const Aws::Vector< Aws::String > &value)
Api & AddTags(Aws::String &&key, const Aws::String &value)
Api & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::String & GetApiEndpoint() const
bool NameHasBeenSet() const
Api & WithVersion(const char *value)
const Cors & GetCorsConfiguration() const
Api & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_APIGATEWAYV2_API Api(Aws::Utils::Json::JsonView jsonValue)
Api & WithApiKeySelectionExpression(const Aws::String &value)
const Aws::String & GetDescription() const
Api & AddWarnings(const char *value)
void SetWarnings(Aws::Vector< Aws::String > &&value)
void SetRouteSelectionExpression(Aws::String &&value)
Api & WithImportInfo(const Aws::Vector< Aws::String > &value)
bool TagsHasBeenSet() const
AWS_APIGATEWAYV2_API Api()
void SetDisableSchemaValidation(bool value)
Api & AddImportInfo(Aws::String &&value)
Api & WithDescription(Aws::String &&value)
AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const
Api & WithCreatedDate(const Aws::Utils::DateTime &value)
bool CreatedDateHasBeenSet() const
Api & WithCorsConfiguration(const Cors &value)
Api & WithCorsConfiguration(Cors &&value)
bool ApiEndpointHasBeenSet() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Api & WithDisableExecuteApiEndpoint(bool value)
Api & WithImportInfo(Aws::Vector< Aws::String > &&value)
void SetApiId(const char *value)
Api & WithCreatedDate(Aws::Utils::DateTime &&value)
void SetCreatedDate(const Aws::Utils::DateTime &value)
void SetName(const char *value)
void SetApiGatewayManaged(bool value)
Api & WithRouteSelectionExpression(const Aws::String &value)
bool GetDisableSchemaValidation() const
Api & WithWarnings(const Aws::Vector< Aws::String > &value)
const Aws::String & GetApiId() const
Api & WithDescription(const char *value)
const Aws::Vector< Aws::String > & GetImportInfo() const
Api & WithName(const char *value)
Api & WithRouteSelectionExpression(Aws::String &&value)
Api & WithVersion(const Aws::String &value)
void SetApiKeySelectionExpression(const char *value)
void SetDescription(const char *value)
Api & WithApiId(const char *value)
const Aws::Vector< Aws::String > & GetWarnings() const
void SetCorsConfiguration(const Cors &value)
const Aws::String & GetName() const
Api & AddTags(const char *key, Aws::String &&value)
bool ImportInfoHasBeenSet() const
void SetApiEndpoint(const char *value)
AWS_APIGATEWAYV2_API Api & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDisableExecuteApiEndpoint(bool value)
void SetApiId(Aws::String &&value)
Api & AddWarnings(const Aws::String &value)
Api & AddTags(Aws::String &&key, const char *value)
Api & AddTags(const Aws::String &key, Aws::String &&value)
const Aws::Utils::DateTime & GetCreatedDate() const
bool DisableSchemaValidationHasBeenSet() const
void SetApiKeySelectionExpression(Aws::String &&value)
void SetDescription(Aws::String &&value)
bool GetApiGatewayManaged() const
Api & WithProtocolType(const ProtocolType &value)
void SetVersion(const char *value)
Api & WithWarnings(Aws::Vector< Aws::String > &&value)
void SetApiKeySelectionExpression(const Aws::String &value)
void SetApiEndpoint(const Aws::String &value)
Api & AddImportInfo(const Aws::String &value)
Api & AddTags(const char *key, const char *value)
const ProtocolType & GetProtocolType() const
void SetCreatedDate(Aws::Utils::DateTime &&value)
Api & WithName(Aws::String &&value)
const Aws::String & GetRouteSelectionExpression() const
Api & AddWarnings(Aws::String &&value)
Api & WithApiId(Aws::String &&value)
void SetCorsConfiguration(Cors &&value)
void SetApiId(const Aws::String &value)
void SetImportInfo(Aws::Vector< Aws::String > &&value)
bool RouteSelectionExpressionHasBeenSet() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue