AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateGraphqlApiRequest.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/appsync/AppSyncRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/appsync/model/LogConfig.h>
11#include <aws/appsync/model/AuthenticationType.h>
12#include <aws/appsync/model/UserPoolConfig.h>
13#include <aws/appsync/model/OpenIDConnectConfig.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16#include <aws/appsync/model/LambdaAuthorizerConfig.h>
17#include <aws/appsync/model/GraphQLApiType.h>
18#include <aws/appsync/model/GraphQLApiVisibility.h>
19#include <aws/appsync/model/GraphQLApiIntrospectionConfig.h>
20#include <aws/appsync/model/EnhancedMetricsConfig.h>
21#include <aws/appsync/model/AdditionalAuthenticationProvider.h>
22#include <utility>
23
24namespace Aws
25{
26namespace AppSync
27{
28namespace Model
29{
30
34 {
35 public:
36 AWS_APPSYNC_API CreateGraphqlApiRequest();
37
38 // Service request name is the Operation name which will send this request out,
39 // each operation should has unique request name, so that we can get operation's name from this request.
40 // Note: this is not true for response, multiple operations may have the same response name,
41 // so we can not get operation's name from response.
42 inline virtual const char* GetServiceRequestName() const override { return "CreateGraphqlApi"; }
43
44 AWS_APPSYNC_API Aws::String SerializePayload() const override;
45
46
48
51 inline const Aws::String& GetName() const{ return m_name; }
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
54 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
55 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
56 inline CreateGraphqlApiRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
57 inline CreateGraphqlApiRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
58 inline CreateGraphqlApiRequest& WithName(const char* value) { SetName(value); return *this;}
60
62
65 inline const LogConfig& GetLogConfig() const{ return m_logConfig; }
66 inline bool LogConfigHasBeenSet() const { return m_logConfigHasBeenSet; }
67 inline void SetLogConfig(const LogConfig& value) { m_logConfigHasBeenSet = true; m_logConfig = value; }
68 inline void SetLogConfig(LogConfig&& value) { m_logConfigHasBeenSet = true; m_logConfig = std::move(value); }
69 inline CreateGraphqlApiRequest& WithLogConfig(const LogConfig& value) { SetLogConfig(value); return *this;}
70 inline CreateGraphqlApiRequest& WithLogConfig(LogConfig&& value) { SetLogConfig(std::move(value)); return *this;}
72
74
78 inline const AuthenticationType& GetAuthenticationType() const{ return m_authenticationType; }
79 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
80 inline void SetAuthenticationType(const AuthenticationType& value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = value; }
81 inline void SetAuthenticationType(AuthenticationType&& value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = std::move(value); }
85
87
90 inline const UserPoolConfig& GetUserPoolConfig() const{ return m_userPoolConfig; }
91 inline bool UserPoolConfigHasBeenSet() const { return m_userPoolConfigHasBeenSet; }
92 inline void SetUserPoolConfig(const UserPoolConfig& value) { m_userPoolConfigHasBeenSet = true; m_userPoolConfig = value; }
93 inline void SetUserPoolConfig(UserPoolConfig&& value) { m_userPoolConfigHasBeenSet = true; m_userPoolConfig = std::move(value); }
94 inline CreateGraphqlApiRequest& WithUserPoolConfig(const UserPoolConfig& value) { SetUserPoolConfig(value); return *this;}
95 inline CreateGraphqlApiRequest& WithUserPoolConfig(UserPoolConfig&& value) { SetUserPoolConfig(std::move(value)); return *this;}
97
99
102 inline const OpenIDConnectConfig& GetOpenIDConnectConfig() const{ return m_openIDConnectConfig; }
103 inline bool OpenIDConnectConfigHasBeenSet() const { return m_openIDConnectConfigHasBeenSet; }
104 inline void SetOpenIDConnectConfig(const OpenIDConnectConfig& value) { m_openIDConnectConfigHasBeenSet = true; m_openIDConnectConfig = value; }
105 inline void SetOpenIDConnectConfig(OpenIDConnectConfig&& value) { m_openIDConnectConfigHasBeenSet = true; m_openIDConnectConfig = std::move(value); }
109
111
114 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
115 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
116 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
117 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
118 inline CreateGraphqlApiRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
119 inline CreateGraphqlApiRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
120 inline CreateGraphqlApiRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
121 inline CreateGraphqlApiRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
122 inline CreateGraphqlApiRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
123 inline CreateGraphqlApiRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
124 inline CreateGraphqlApiRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
125 inline CreateGraphqlApiRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
126 inline CreateGraphqlApiRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
128
130
134 inline const Aws::Vector<AdditionalAuthenticationProvider>& GetAdditionalAuthenticationProviders() const{ return m_additionalAuthenticationProviders; }
135 inline bool AdditionalAuthenticationProvidersHasBeenSet() const { return m_additionalAuthenticationProvidersHasBeenSet; }
136 inline void SetAdditionalAuthenticationProviders(const Aws::Vector<AdditionalAuthenticationProvider>& value) { m_additionalAuthenticationProvidersHasBeenSet = true; m_additionalAuthenticationProviders = value; }
137 inline void SetAdditionalAuthenticationProviders(Aws::Vector<AdditionalAuthenticationProvider>&& value) { m_additionalAuthenticationProvidersHasBeenSet = true; m_additionalAuthenticationProviders = std::move(value); }
140 inline CreateGraphqlApiRequest& AddAdditionalAuthenticationProviders(const AdditionalAuthenticationProvider& value) { m_additionalAuthenticationProvidersHasBeenSet = true; m_additionalAuthenticationProviders.push_back(value); return *this; }
141 inline CreateGraphqlApiRequest& AddAdditionalAuthenticationProviders(AdditionalAuthenticationProvider&& value) { m_additionalAuthenticationProvidersHasBeenSet = true; m_additionalAuthenticationProviders.push_back(std::move(value)); return *this; }
143
145
149 inline bool GetXrayEnabled() const{ return m_xrayEnabled; }
150 inline bool XrayEnabledHasBeenSet() const { return m_xrayEnabledHasBeenSet; }
151 inline void SetXrayEnabled(bool value) { m_xrayEnabledHasBeenSet = true; m_xrayEnabled = value; }
152 inline CreateGraphqlApiRequest& WithXrayEnabled(bool value) { SetXrayEnabled(value); return *this;}
154
156
159 inline const LambdaAuthorizerConfig& GetLambdaAuthorizerConfig() const{ return m_lambdaAuthorizerConfig; }
160 inline bool LambdaAuthorizerConfigHasBeenSet() const { return m_lambdaAuthorizerConfigHasBeenSet; }
161 inline void SetLambdaAuthorizerConfig(const LambdaAuthorizerConfig& value) { m_lambdaAuthorizerConfigHasBeenSet = true; m_lambdaAuthorizerConfig = value; }
162 inline void SetLambdaAuthorizerConfig(LambdaAuthorizerConfig&& value) { m_lambdaAuthorizerConfigHasBeenSet = true; m_lambdaAuthorizerConfig = std::move(value); }
166
168
172 inline const GraphQLApiType& GetApiType() const{ return m_apiType; }
173 inline bool ApiTypeHasBeenSet() const { return m_apiTypeHasBeenSet; }
174 inline void SetApiType(const GraphQLApiType& value) { m_apiTypeHasBeenSet = true; m_apiType = value; }
175 inline void SetApiType(GraphQLApiType&& value) { m_apiTypeHasBeenSet = true; m_apiType = std::move(value); }
176 inline CreateGraphqlApiRequest& WithApiType(const GraphQLApiType& value) { SetApiType(value); return *this;}
177 inline CreateGraphqlApiRequest& WithApiType(GraphQLApiType&& value) { SetApiType(std::move(value)); return *this;}
179
181
187 inline const Aws::String& GetMergedApiExecutionRoleArn() const{ return m_mergedApiExecutionRoleArn; }
188 inline bool MergedApiExecutionRoleArnHasBeenSet() const { return m_mergedApiExecutionRoleArnHasBeenSet; }
189 inline void SetMergedApiExecutionRoleArn(const Aws::String& value) { m_mergedApiExecutionRoleArnHasBeenSet = true; m_mergedApiExecutionRoleArn = value; }
190 inline void SetMergedApiExecutionRoleArn(Aws::String&& value) { m_mergedApiExecutionRoleArnHasBeenSet = true; m_mergedApiExecutionRoleArn = std::move(value); }
191 inline void SetMergedApiExecutionRoleArn(const char* value) { m_mergedApiExecutionRoleArnHasBeenSet = true; m_mergedApiExecutionRoleArn.assign(value); }
196
198
204 inline const GraphQLApiVisibility& GetVisibility() const{ return m_visibility; }
205 inline bool VisibilityHasBeenSet() const { return m_visibilityHasBeenSet; }
206 inline void SetVisibility(const GraphQLApiVisibility& value) { m_visibilityHasBeenSet = true; m_visibility = value; }
207 inline void SetVisibility(GraphQLApiVisibility&& value) { m_visibilityHasBeenSet = true; m_visibility = std::move(value); }
208 inline CreateGraphqlApiRequest& WithVisibility(const GraphQLApiVisibility& value) { SetVisibility(value); return *this;}
209 inline CreateGraphqlApiRequest& WithVisibility(GraphQLApiVisibility&& value) { SetVisibility(std::move(value)); return *this;}
211
213
217 inline const Aws::String& GetOwnerContact() const{ return m_ownerContact; }
218 inline bool OwnerContactHasBeenSet() const { return m_ownerContactHasBeenSet; }
219 inline void SetOwnerContact(const Aws::String& value) { m_ownerContactHasBeenSet = true; m_ownerContact = value; }
220 inline void SetOwnerContact(Aws::String&& value) { m_ownerContactHasBeenSet = true; m_ownerContact = std::move(value); }
221 inline void SetOwnerContact(const char* value) { m_ownerContactHasBeenSet = true; m_ownerContact.assign(value); }
222 inline CreateGraphqlApiRequest& WithOwnerContact(const Aws::String& value) { SetOwnerContact(value); return *this;}
223 inline CreateGraphqlApiRequest& WithOwnerContact(Aws::String&& value) { SetOwnerContact(std::move(value)); return *this;}
224 inline CreateGraphqlApiRequest& WithOwnerContact(const char* value) { SetOwnerContact(value); return *this;}
226
228
237 inline const GraphQLApiIntrospectionConfig& GetIntrospectionConfig() const{ return m_introspectionConfig; }
238 inline bool IntrospectionConfigHasBeenSet() const { return m_introspectionConfigHasBeenSet; }
239 inline void SetIntrospectionConfig(const GraphQLApiIntrospectionConfig& value) { m_introspectionConfigHasBeenSet = true; m_introspectionConfig = value; }
240 inline void SetIntrospectionConfig(GraphQLApiIntrospectionConfig&& value) { m_introspectionConfigHasBeenSet = true; m_introspectionConfig = std::move(value); }
244
246
256 inline int GetQueryDepthLimit() const{ return m_queryDepthLimit; }
257 inline bool QueryDepthLimitHasBeenSet() const { return m_queryDepthLimitHasBeenSet; }
258 inline void SetQueryDepthLimit(int value) { m_queryDepthLimitHasBeenSet = true; m_queryDepthLimit = value; }
259 inline CreateGraphqlApiRequest& WithQueryDepthLimit(int value) { SetQueryDepthLimit(value); return *this;}
261
263
270 inline int GetResolverCountLimit() const{ return m_resolverCountLimit; }
271 inline bool ResolverCountLimitHasBeenSet() const { return m_resolverCountLimitHasBeenSet; }
272 inline void SetResolverCountLimit(int value) { m_resolverCountLimitHasBeenSet = true; m_resolverCountLimit = value; }
273 inline CreateGraphqlApiRequest& WithResolverCountLimit(int value) { SetResolverCountLimit(value); return *this;}
275
277
280 inline const EnhancedMetricsConfig& GetEnhancedMetricsConfig() const{ return m_enhancedMetricsConfig; }
281 inline bool EnhancedMetricsConfigHasBeenSet() const { return m_enhancedMetricsConfigHasBeenSet; }
282 inline void SetEnhancedMetricsConfig(const EnhancedMetricsConfig& value) { m_enhancedMetricsConfigHasBeenSet = true; m_enhancedMetricsConfig = value; }
283 inline void SetEnhancedMetricsConfig(EnhancedMetricsConfig&& value) { m_enhancedMetricsConfigHasBeenSet = true; m_enhancedMetricsConfig = std::move(value); }
287 private:
288
289 Aws::String m_name;
290 bool m_nameHasBeenSet = false;
291
292 LogConfig m_logConfig;
293 bool m_logConfigHasBeenSet = false;
294
295 AuthenticationType m_authenticationType;
296 bool m_authenticationTypeHasBeenSet = false;
297
298 UserPoolConfig m_userPoolConfig;
299 bool m_userPoolConfigHasBeenSet = false;
300
301 OpenIDConnectConfig m_openIDConnectConfig;
302 bool m_openIDConnectConfigHasBeenSet = false;
303
305 bool m_tagsHasBeenSet = false;
306
307 Aws::Vector<AdditionalAuthenticationProvider> m_additionalAuthenticationProviders;
308 bool m_additionalAuthenticationProvidersHasBeenSet = false;
309
310 bool m_xrayEnabled;
311 bool m_xrayEnabledHasBeenSet = false;
312
313 LambdaAuthorizerConfig m_lambdaAuthorizerConfig;
314 bool m_lambdaAuthorizerConfigHasBeenSet = false;
315
316 GraphQLApiType m_apiType;
317 bool m_apiTypeHasBeenSet = false;
318
319 Aws::String m_mergedApiExecutionRoleArn;
320 bool m_mergedApiExecutionRoleArnHasBeenSet = false;
321
322 GraphQLApiVisibility m_visibility;
323 bool m_visibilityHasBeenSet = false;
324
325 Aws::String m_ownerContact;
326 bool m_ownerContactHasBeenSet = false;
327
328 GraphQLApiIntrospectionConfig m_introspectionConfig;
329 bool m_introspectionConfigHasBeenSet = false;
330
331 int m_queryDepthLimit;
332 bool m_queryDepthLimitHasBeenSet = false;
333
334 int m_resolverCountLimit;
335 bool m_resolverCountLimitHasBeenSet = false;
336
337 EnhancedMetricsConfig m_enhancedMetricsConfig;
338 bool m_enhancedMetricsConfigHasBeenSet = false;
339 };
340
341} // namespace Model
342} // namespace AppSync
343} // namespace Aws
CreateGraphqlApiRequest & WithVisibility(const GraphQLApiVisibility &value)
CreateGraphqlApiRequest & WithMergedApiExecutionRoleArn(const Aws::String &value)
const OpenIDConnectConfig & GetOpenIDConnectConfig() const
CreateGraphqlApiRequest & WithUserPoolConfig(const UserPoolConfig &value)
const EnhancedMetricsConfig & GetEnhancedMetricsConfig() const
CreateGraphqlApiRequest & WithOpenIDConnectConfig(OpenIDConnectConfig &&value)
void SetAdditionalAuthenticationProviders(const Aws::Vector< AdditionalAuthenticationProvider > &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateGraphqlApiRequest & AddTags(const Aws::String &key, Aws::String &&value)
const AuthenticationType & GetAuthenticationType() const
CreateGraphqlApiRequest & AddTags(Aws::String &&key, const char *value)
const Aws::Vector< AdditionalAuthenticationProvider > & GetAdditionalAuthenticationProviders() const
CreateGraphqlApiRequest & WithXrayEnabled(bool value)
CreateGraphqlApiRequest & WithLogConfig(LogConfig &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateGraphqlApiRequest & WithEnhancedMetricsConfig(const EnhancedMetricsConfig &value)
void SetLambdaAuthorizerConfig(LambdaAuthorizerConfig &&value)
CreateGraphqlApiRequest & AddTags(Aws::String &&key, const Aws::String &value)
const GraphQLApiIntrospectionConfig & GetIntrospectionConfig() const
CreateGraphqlApiRequest & WithApiType(const GraphQLApiType &value)
void SetUserPoolConfig(const UserPoolConfig &value)
void SetEnhancedMetricsConfig(const EnhancedMetricsConfig &value)
void SetVisibility(const GraphQLApiVisibility &value)
CreateGraphqlApiRequest & WithMergedApiExecutionRoleArn(const char *value)
CreateGraphqlApiRequest & WithEnhancedMetricsConfig(EnhancedMetricsConfig &&value)
CreateGraphqlApiRequest & WithName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateGraphqlApiRequest & WithName(const char *value)
CreateGraphqlApiRequest & WithUserPoolConfig(UserPoolConfig &&value)
CreateGraphqlApiRequest & WithOpenIDConnectConfig(const OpenIDConnectConfig &value)
CreateGraphqlApiRequest & WithLambdaAuthorizerConfig(const LambdaAuthorizerConfig &value)
CreateGraphqlApiRequest & WithAuthenticationType(const AuthenticationType &value)
void SetAuthenticationType(AuthenticationType &&value)
CreateGraphqlApiRequest & WithQueryDepthLimit(int value)
CreateGraphqlApiRequest & AddTags(const char *key, const char *value)
void SetOpenIDConnectConfig(OpenIDConnectConfig &&value)
const LambdaAuthorizerConfig & GetLambdaAuthorizerConfig() const
CreateGraphqlApiRequest & WithResolverCountLimit(int value)
CreateGraphqlApiRequest & WithAdditionalAuthenticationProviders(const Aws::Vector< AdditionalAuthenticationProvider > &value)
CreateGraphqlApiRequest & WithMergedApiExecutionRoleArn(Aws::String &&value)
void SetEnhancedMetricsConfig(EnhancedMetricsConfig &&value)
CreateGraphqlApiRequest & AddAdditionalAuthenticationProviders(const AdditionalAuthenticationProvider &value)
CreateGraphqlApiRequest & AddAdditionalAuthenticationProviders(AdditionalAuthenticationProvider &&value)
void SetLambdaAuthorizerConfig(const LambdaAuthorizerConfig &value)
CreateGraphqlApiRequest & WithLogConfig(const LogConfig &value)
CreateGraphqlApiRequest & AddTags(const char *key, Aws::String &&value)
AWS_APPSYNC_API Aws::String SerializePayload() const override
void SetMergedApiExecutionRoleArn(const Aws::String &value)
CreateGraphqlApiRequest & WithOwnerContact(const Aws::String &value)
CreateGraphqlApiRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetIntrospectionConfig(GraphQLApiIntrospectionConfig &&value)
void SetVisibility(GraphQLApiVisibility &&value)
CreateGraphqlApiRequest & WithIntrospectionConfig(GraphQLApiIntrospectionConfig &&value)
void SetOpenIDConnectConfig(const OpenIDConnectConfig &value)
void SetAdditionalAuthenticationProviders(Aws::Vector< AdditionalAuthenticationProvider > &&value)
CreateGraphqlApiRequest & WithOwnerContact(const char *value)
CreateGraphqlApiRequest & WithVisibility(GraphQLApiVisibility &&value)
CreateGraphqlApiRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateGraphqlApiRequest & WithName(Aws::String &&value)
CreateGraphqlApiRequest & WithIntrospectionConfig(const GraphQLApiIntrospectionConfig &value)
CreateGraphqlApiRequest & WithAuthenticationType(AuthenticationType &&value)
CreateGraphqlApiRequest & AddTags(const Aws::String &key, const Aws::String &value)
void SetAuthenticationType(const AuthenticationType &value)
void SetIntrospectionConfig(const GraphQLApiIntrospectionConfig &value)
CreateGraphqlApiRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateGraphqlApiRequest & WithApiType(GraphQLApiType &&value)
CreateGraphqlApiRequest & WithOwnerContact(Aws::String &&value)
CreateGraphqlApiRequest & WithAdditionalAuthenticationProviders(Aws::Vector< AdditionalAuthenticationProvider > &&value)
const GraphQLApiVisibility & GetVisibility() const
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateGraphqlApiRequest & WithLambdaAuthorizerConfig(LambdaAuthorizerConfig &&value)
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