7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appsync/model/AuthenticationType.h>
10#include <aws/appsync/model/LogConfig.h>
11#include <aws/appsync/model/UserPoolConfig.h>
12#include <aws/appsync/model/OpenIDConnectConfig.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/appsync/model/LambdaAuthorizerConfig.h>
16#include <aws/appsync/model/GraphQLApiVisibility.h>
17#include <aws/appsync/model/GraphQLApiType.h>
18#include <aws/appsync/model/GraphQLApiIntrospectionConfig.h>
19#include <aws/appsync/model/EnhancedMetricsConfig.h>
20#include <aws/appsync/model/AdditionalAuthenticationProvider.h>
58 template<
typename NameT = Aws::String>
59 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
60 template<
typename NameT = Aws::String>
70 template<
typename ApiIdT = Aws::String>
71 void SetApiId(ApiIdT&& value) { m_apiIdHasBeenSet =
true; m_apiId = std::forward<ApiIdT>(value); }
72 template<
typename ApiIdT = Aws::String>
92 template<
typename LogConfigT = LogConfig>
93 void SetLogConfig(LogConfigT&& value) { m_logConfigHasBeenSet =
true; m_logConfig = std::forward<LogConfigT>(value); }
94 template<
typename LogConfigT = LogConfig>
104 template<
typename UserPoolConfigT = UserPoolConfig>
105 void SetUserPoolConfig(UserPoolConfigT&& value) { m_userPoolConfigHasBeenSet =
true; m_userPoolConfig = std::forward<UserPoolConfigT>(value); }
106 template<
typename UserPoolConfigT = UserPoolConfig>
116 template<
typename OpenIDConnectConfigT = OpenIDConnectConfig>
117 void SetOpenIDConnectConfig(OpenIDConnectConfigT&& value) { m_openIDConnectConfigHasBeenSet =
true; m_openIDConnectConfig = std::forward<OpenIDConnectConfigT>(value); }
118 template<
typename OpenIDConnectConfigT = OpenIDConnectConfig>
128 template<
typename ArnT = Aws::String>
129 void SetArn(ArnT&& value) { m_arnHasBeenSet =
true; m_arn = std::forward<ArnT>(value); }
130 template<
typename ArnT = Aws::String>
140 template<
typename UrisT = Aws::Map<Aws::String, Aws::String>>
141 void SetUris(UrisT&& value) { m_urisHasBeenSet =
true; m_uris = std::forward<UrisT>(value); }
142 template<
typename UrisT = Aws::Map<Aws::String, Aws::String>>
144 template<
typename UrisKeyT = Aws::String,
typename UrisValueT = Aws::String>
146 m_urisHasBeenSet =
true; m_uris.emplace(std::forward<UrisKeyT>(key), std::forward<UrisValueT>(value));
return *
this;
156 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
157 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
158 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
160 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
162 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
173 template<
typename AdditionalAuthenticationProv
idersT = Aws::Vector<AdditionalAuthenticationProv
ider>>
174 void SetAdditionalAuthenticationProviders(AdditionalAuthenticationProvidersT&& value) { m_additionalAuthenticationProvidersHasBeenSet =
true; m_additionalAuthenticationProviders = std::forward<AdditionalAuthenticationProvidersT>(value); }
175 template<
typename AdditionalAuthenticationProv
idersT = Aws::Vector<AdditionalAuthenticationProv
ider>>
177 template<
typename AdditionalAuthenticationProv
idersT = AdditionalAuthenticationProv
ider>
178 GraphqlApi&
AddAdditionalAuthenticationProviders(AdditionalAuthenticationProvidersT&& value) { m_additionalAuthenticationProvidersHasBeenSet =
true; m_additionalAuthenticationProviders.emplace_back(std::forward<AdditionalAuthenticationProvidersT>(value));
return *
this; }
188 inline void SetXrayEnabled(
bool value) { m_xrayEnabledHasBeenSet =
true; m_xrayEnabled = value; }
199 template<
typename WafWebAclArnT = Aws::String>
200 void SetWafWebAclArn(WafWebAclArnT&& value) { m_wafWebAclArnHasBeenSet =
true; m_wafWebAclArn = std::forward<WafWebAclArnT>(value); }
201 template<
typename WafWebAclArnT = Aws::String>
211 template<
typename LambdaAuthorizerConfigT = LambdaAuthorizerConfig>
212 void SetLambdaAuthorizerConfig(LambdaAuthorizerConfigT&& value) { m_lambdaAuthorizerConfigHasBeenSet =
true; m_lambdaAuthorizerConfig = std::forward<LambdaAuthorizerConfigT>(value); }
213 template<
typename LambdaAuthorizerConfigT = LambdaAuthorizerConfig>
223 template<
typename DnsT = Aws::Map<Aws::String, Aws::String>>
224 void SetDns(DnsT&& value) { m_dnsHasBeenSet =
true; m_dns = std::forward<DnsT>(value); }
225 template<
typename DnsT = Aws::Map<Aws::String, Aws::String>>
227 template<
typename DnsKeyT = Aws::String,
typename DnsValueT = Aws::String>
229 m_dnsHasBeenSet =
true; m_dns.emplace(std::forward<DnsKeyT>(key), std::forward<DnsValueT>(value));
return *
this;
266 template<
typename MergedApiExecutionRoleArnT = Aws::String>
267 void SetMergedApiExecutionRoleArn(MergedApiExecutionRoleArnT&& value) { m_mergedApiExecutionRoleArnHasBeenSet =
true; m_mergedApiExecutionRoleArn = std::forward<MergedApiExecutionRoleArnT>(value); }
268 template<
typename MergedApiExecutionRoleArnT = Aws::String>
278 template<
typename OwnerT = Aws::String>
279 void SetOwner(OwnerT&& value) { m_ownerHasBeenSet =
true; m_owner = std::forward<OwnerT>(value); }
280 template<
typename OwnerT = Aws::String>
291 template<
typename OwnerContactT = Aws::String>
292 void SetOwnerContact(OwnerContactT&& value) { m_ownerContactHasBeenSet =
true; m_ownerContact = std::forward<OwnerContactT>(value); }
293 template<
typename OwnerContactT = Aws::String>
326 inline void SetQueryDepthLimit(
int value) { m_queryDepthLimitHasBeenSet =
true; m_queryDepthLimit = value; }
340 inline void SetResolverCountLimit(
int value) { m_resolverCountLimitHasBeenSet =
true; m_resolverCountLimit = value; }
350 template<
typename EnhancedMetricsConfigT = EnhancedMetricsConfig>
351 void SetEnhancedMetricsConfig(EnhancedMetricsConfigT&& value) { m_enhancedMetricsConfigHasBeenSet =
true; m_enhancedMetricsConfig = std::forward<EnhancedMetricsConfigT>(value); }
352 template<
typename EnhancedMetricsConfigT = EnhancedMetricsConfig>
358 bool m_nameHasBeenSet =
false;
361 bool m_apiIdHasBeenSet =
false;
364 bool m_authenticationTypeHasBeenSet =
false;
366 LogConfig m_logConfig;
367 bool m_logConfigHasBeenSet =
false;
369 UserPoolConfig m_userPoolConfig;
370 bool m_userPoolConfigHasBeenSet =
false;
372 OpenIDConnectConfig m_openIDConnectConfig;
373 bool m_openIDConnectConfigHasBeenSet =
false;
376 bool m_arnHasBeenSet =
false;
379 bool m_urisHasBeenSet =
false;
382 bool m_tagsHasBeenSet =
false;
385 bool m_additionalAuthenticationProvidersHasBeenSet =
false;
387 bool m_xrayEnabled{
false};
388 bool m_xrayEnabledHasBeenSet =
false;
391 bool m_wafWebAclArnHasBeenSet =
false;
393 LambdaAuthorizerConfig m_lambdaAuthorizerConfig;
394 bool m_lambdaAuthorizerConfigHasBeenSet =
false;
397 bool m_dnsHasBeenSet =
false;
400 bool m_visibilityHasBeenSet =
false;
403 bool m_apiTypeHasBeenSet =
false;
406 bool m_mergedApiExecutionRoleArnHasBeenSet =
false;
409 bool m_ownerHasBeenSet =
false;
412 bool m_ownerContactHasBeenSet =
false;
415 bool m_introspectionConfigHasBeenSet =
false;
417 int m_queryDepthLimit{0};
418 bool m_queryDepthLimitHasBeenSet =
false;
420 int m_resolverCountLimit{0};
421 bool m_resolverCountLimitHasBeenSet =
false;
423 EnhancedMetricsConfig m_enhancedMetricsConfig;
424 bool m_enhancedMetricsConfigHasBeenSet =
false;
bool TagsHasBeenSet() const
GraphqlApi & WithName(NameT &&value)
bool IntrospectionConfigHasBeenSet() const
GraphqlApi & WithMergedApiExecutionRoleArn(MergedApiExecutionRoleArnT &&value)
const Aws::Map< Aws::String, Aws::String > & GetDns() const
void SetOwnerContact(OwnerContactT &&value)
bool NameHasBeenSet() const
bool LogConfigHasBeenSet() const
void SetXrayEnabled(bool value)
void SetOwner(OwnerT &&value)
const LambdaAuthorizerConfig & GetLambdaAuthorizerConfig() const
const UserPoolConfig & GetUserPoolConfig() const
const Aws::String & GetApiId() const
const EnhancedMetricsConfig & GetEnhancedMetricsConfig() const
GraphqlApi & AddUris(UrisKeyT &&key, UrisValueT &&value)
const Aws::String & GetMergedApiExecutionRoleArn() const
void SetAuthenticationType(AuthenticationType value)
GraphqlApi & WithApiId(ApiIdT &&value)
GraphqlApi & WithUserPoolConfig(UserPoolConfigT &&value)
const Aws::Map< Aws::String, Aws::String > & GetUris() const
const Aws::Vector< AdditionalAuthenticationProvider > & GetAdditionalAuthenticationProviders() const
GraphqlApi & WithIntrospectionConfig(GraphQLApiIntrospectionConfig value)
void SetApiType(GraphQLApiType value)
void SetLogConfig(LogConfigT &&value)
void SetName(NameT &&value)
GraphqlApi & WithUris(UrisT &&value)
GraphqlApi & WithTags(TagsT &&value)
AWS_APPSYNC_API GraphqlApi()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
GraphqlApi & WithWafWebAclArn(WafWebAclArnT &&value)
bool ApiIdHasBeenSet() const
GraphqlApi & WithResolverCountLimit(int value)
bool GetXrayEnabled() const
void SetArn(ArnT &&value)
AWS_APPSYNC_API GraphqlApi(Aws::Utils::Json::JsonView jsonValue)
void SetEnhancedMetricsConfig(EnhancedMetricsConfigT &&value)
bool EnhancedMetricsConfigHasBeenSet() const
bool OpenIDConnectConfigHasBeenSet() const
GraphqlApi & WithXrayEnabled(bool value)
void SetVisibility(GraphQLApiVisibility value)
GraphqlApi & AddTags(TagsKeyT &&key, TagsValueT &&value)
GraphqlApi & AddDns(DnsKeyT &&key, DnsValueT &&value)
bool OwnerContactHasBeenSet() const
void SetDns(DnsT &&value)
GraphqlApi & WithEnhancedMetricsConfig(EnhancedMetricsConfigT &&value)
void SetUserPoolConfig(UserPoolConfigT &&value)
int GetQueryDepthLimit() const
bool WafWebAclArnHasBeenSet() const
bool UrisHasBeenSet() const
GraphqlApi & WithDns(DnsT &&value)
void SetWafWebAclArn(WafWebAclArnT &&value)
const OpenIDConnectConfig & GetOpenIDConnectConfig() const
AWS_APPSYNC_API GraphqlApi & operator=(Aws::Utils::Json::JsonView jsonValue)
bool VisibilityHasBeenSet() const
GraphqlApi & WithVisibility(GraphQLApiVisibility value)
GraphqlApi & WithOpenIDConnectConfig(OpenIDConnectConfigT &&value)
GraphqlApi & WithLambdaAuthorizerConfig(LambdaAuthorizerConfigT &&value)
GraphQLApiVisibility GetVisibility() const
void SetAdditionalAuthenticationProviders(AdditionalAuthenticationProvidersT &&value)
void SetTags(TagsT &&value)
void SetIntrospectionConfig(GraphQLApiIntrospectionConfig value)
bool ApiTypeHasBeenSet() const
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
bool AdditionalAuthenticationProvidersHasBeenSet() const
GraphqlApi & WithLogConfig(LogConfigT &&value)
GraphqlApi & WithAuthenticationType(AuthenticationType value)
GraphQLApiType GetApiType() const
const Aws::String & GetName() const
bool UserPoolConfigHasBeenSet() const
void SetUris(UrisT &&value)
GraphqlApi & WithOwner(OwnerT &&value)
bool ArnHasBeenSet() const
GraphqlApi & WithArn(ArnT &&value)
const LogConfig & GetLogConfig() const
void SetApiId(ApiIdT &&value)
bool AuthenticationTypeHasBeenSet() const
const Aws::String & GetWafWebAclArn() const
const Aws::String & GetArn() const
GraphqlApi & WithApiType(GraphQLApiType value)
void SetResolverCountLimit(int value)
GraphqlApi & WithQueryDepthLimit(int value)
const Aws::String & GetOwner() const
GraphqlApi & WithOwnerContact(OwnerContactT &&value)
void SetQueryDepthLimit(int value)
bool QueryDepthLimitHasBeenSet() const
const Aws::String & GetOwnerContact() const
void SetLambdaAuthorizerConfig(LambdaAuthorizerConfigT &&value)
void SetMergedApiExecutionRoleArn(MergedApiExecutionRoleArnT &&value)
bool LambdaAuthorizerConfigHasBeenSet() const
AuthenticationType GetAuthenticationType() const
bool DnsHasBeenSet() const
bool MergedApiExecutionRoleArnHasBeenSet() const
void SetOpenIDConnectConfig(OpenIDConnectConfigT &&value)
bool XrayEnabledHasBeenSet() const
GraphqlApi & AddAdditionalAuthenticationProviders(AdditionalAuthenticationProvidersT &&value)
GraphQLApiIntrospectionConfig GetIntrospectionConfig() const
bool ResolverCountLimitHasBeenSet() const
int GetResolverCountLimit() const
bool OwnerHasBeenSet() const
GraphqlApi & WithAdditionalAuthenticationProviders(AdditionalAuthenticationProvidersT &&value)
GraphQLApiIntrospectionConfig
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