AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateGraphqlApiRequest.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/AWSVector.h>
15#include <aws/appsync/model/LambdaAuthorizerConfig.h>
16#include <aws/appsync/model/GraphQLApiIntrospectionConfig.h>
17#include <aws/appsync/model/EnhancedMetricsConfig.h>
18#include <aws/appsync/model/AdditionalAuthenticationProvider.h>
19#include <utility>
20
21namespace Aws
22{
23namespace AppSync
24{
25namespace Model
26{
27
31 {
32 public:
33 AWS_APPSYNC_API UpdateGraphqlApiRequest();
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "UpdateGraphqlApi"; }
40
41 AWS_APPSYNC_API Aws::String SerializePayload() const override;
42
43
45
48 inline const Aws::String& GetApiId() const{ return m_apiId; }
49 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
50 inline void SetApiId(const Aws::String& value) { m_apiIdHasBeenSet = true; m_apiId = value; }
51 inline void SetApiId(Aws::String&& value) { m_apiIdHasBeenSet = true; m_apiId = std::move(value); }
52 inline void SetApiId(const char* value) { m_apiIdHasBeenSet = true; m_apiId.assign(value); }
53 inline UpdateGraphqlApiRequest& WithApiId(const Aws::String& value) { SetApiId(value); return *this;}
54 inline UpdateGraphqlApiRequest& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;}
55 inline UpdateGraphqlApiRequest& WithApiId(const char* value) { SetApiId(value); return *this;}
57
59
62 inline const Aws::String& GetName() const{ return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
65 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
66 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
67 inline UpdateGraphqlApiRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
68 inline UpdateGraphqlApiRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
69 inline UpdateGraphqlApiRequest& WithName(const char* value) { SetName(value); return *this;}
71
73
77 inline const LogConfig& GetLogConfig() const{ return m_logConfig; }
78 inline bool LogConfigHasBeenSet() const { return m_logConfigHasBeenSet; }
79 inline void SetLogConfig(const LogConfig& value) { m_logConfigHasBeenSet = true; m_logConfig = value; }
80 inline void SetLogConfig(LogConfig&& value) { m_logConfigHasBeenSet = true; m_logConfig = std::move(value); }
81 inline UpdateGraphqlApiRequest& WithLogConfig(const LogConfig& value) { SetLogConfig(value); return *this;}
82 inline UpdateGraphqlApiRequest& WithLogConfig(LogConfig&& value) { SetLogConfig(std::move(value)); return *this;}
84
86
89 inline const AuthenticationType& GetAuthenticationType() const{ return m_authenticationType; }
90 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
91 inline void SetAuthenticationType(const AuthenticationType& value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = value; }
92 inline void SetAuthenticationType(AuthenticationType&& value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = std::move(value); }
96
98
102 inline const UserPoolConfig& GetUserPoolConfig() const{ return m_userPoolConfig; }
103 inline bool UserPoolConfigHasBeenSet() const { return m_userPoolConfigHasBeenSet; }
104 inline void SetUserPoolConfig(const UserPoolConfig& value) { m_userPoolConfigHasBeenSet = true; m_userPoolConfig = value; }
105 inline void SetUserPoolConfig(UserPoolConfig&& value) { m_userPoolConfigHasBeenSet = true; m_userPoolConfig = std::move(value); }
106 inline UpdateGraphqlApiRequest& WithUserPoolConfig(const UserPoolConfig& value) { SetUserPoolConfig(value); return *this;}
107 inline UpdateGraphqlApiRequest& WithUserPoolConfig(UserPoolConfig&& value) { SetUserPoolConfig(std::move(value)); return *this;}
109
111
114 inline const OpenIDConnectConfig& GetOpenIDConnectConfig() const{ return m_openIDConnectConfig; }
115 inline bool OpenIDConnectConfigHasBeenSet() const { return m_openIDConnectConfigHasBeenSet; }
116 inline void SetOpenIDConnectConfig(const OpenIDConnectConfig& value) { m_openIDConnectConfigHasBeenSet = true; m_openIDConnectConfig = value; }
117 inline void SetOpenIDConnectConfig(OpenIDConnectConfig&& value) { m_openIDConnectConfigHasBeenSet = true; m_openIDConnectConfig = std::move(value); }
121
123
127 inline const Aws::Vector<AdditionalAuthenticationProvider>& GetAdditionalAuthenticationProviders() const{ return m_additionalAuthenticationProviders; }
128 inline bool AdditionalAuthenticationProvidersHasBeenSet() const { return m_additionalAuthenticationProvidersHasBeenSet; }
129 inline void SetAdditionalAuthenticationProviders(const Aws::Vector<AdditionalAuthenticationProvider>& value) { m_additionalAuthenticationProvidersHasBeenSet = true; m_additionalAuthenticationProviders = value; }
130 inline void SetAdditionalAuthenticationProviders(Aws::Vector<AdditionalAuthenticationProvider>&& value) { m_additionalAuthenticationProvidersHasBeenSet = true; m_additionalAuthenticationProviders = std::move(value); }
133 inline UpdateGraphqlApiRequest& AddAdditionalAuthenticationProviders(const AdditionalAuthenticationProvider& value) { m_additionalAuthenticationProvidersHasBeenSet = true; m_additionalAuthenticationProviders.push_back(value); return *this; }
134 inline UpdateGraphqlApiRequest& AddAdditionalAuthenticationProviders(AdditionalAuthenticationProvider&& value) { m_additionalAuthenticationProvidersHasBeenSet = true; m_additionalAuthenticationProviders.push_back(std::move(value)); return *this; }
136
138
142 inline bool GetXrayEnabled() const{ return m_xrayEnabled; }
143 inline bool XrayEnabledHasBeenSet() const { return m_xrayEnabledHasBeenSet; }
144 inline void SetXrayEnabled(bool value) { m_xrayEnabledHasBeenSet = true; m_xrayEnabled = value; }
145 inline UpdateGraphqlApiRequest& WithXrayEnabled(bool value) { SetXrayEnabled(value); return *this;}
147
149
152 inline const LambdaAuthorizerConfig& GetLambdaAuthorizerConfig() const{ return m_lambdaAuthorizerConfig; }
153 inline bool LambdaAuthorizerConfigHasBeenSet() const { return m_lambdaAuthorizerConfigHasBeenSet; }
154 inline void SetLambdaAuthorizerConfig(const LambdaAuthorizerConfig& value) { m_lambdaAuthorizerConfigHasBeenSet = true; m_lambdaAuthorizerConfig = value; }
155 inline void SetLambdaAuthorizerConfig(LambdaAuthorizerConfig&& value) { m_lambdaAuthorizerConfigHasBeenSet = true; m_lambdaAuthorizerConfig = std::move(value); }
159
161
167 inline const Aws::String& GetMergedApiExecutionRoleArn() const{ return m_mergedApiExecutionRoleArn; }
168 inline bool MergedApiExecutionRoleArnHasBeenSet() const { return m_mergedApiExecutionRoleArnHasBeenSet; }
169 inline void SetMergedApiExecutionRoleArn(const Aws::String& value) { m_mergedApiExecutionRoleArnHasBeenSet = true; m_mergedApiExecutionRoleArn = value; }
170 inline void SetMergedApiExecutionRoleArn(Aws::String&& value) { m_mergedApiExecutionRoleArnHasBeenSet = true; m_mergedApiExecutionRoleArn = std::move(value); }
171 inline void SetMergedApiExecutionRoleArn(const char* value) { m_mergedApiExecutionRoleArnHasBeenSet = true; m_mergedApiExecutionRoleArn.assign(value); }
176
178
182 inline const Aws::String& GetOwnerContact() const{ return m_ownerContact; }
183 inline bool OwnerContactHasBeenSet() const { return m_ownerContactHasBeenSet; }
184 inline void SetOwnerContact(const Aws::String& value) { m_ownerContactHasBeenSet = true; m_ownerContact = value; }
185 inline void SetOwnerContact(Aws::String&& value) { m_ownerContactHasBeenSet = true; m_ownerContact = std::move(value); }
186 inline void SetOwnerContact(const char* value) { m_ownerContactHasBeenSet = true; m_ownerContact.assign(value); }
187 inline UpdateGraphqlApiRequest& WithOwnerContact(const Aws::String& value) { SetOwnerContact(value); return *this;}
188 inline UpdateGraphqlApiRequest& WithOwnerContact(Aws::String&& value) { SetOwnerContact(std::move(value)); return *this;}
189 inline UpdateGraphqlApiRequest& WithOwnerContact(const char* value) { SetOwnerContact(value); return *this;}
191
193
202 inline const GraphQLApiIntrospectionConfig& GetIntrospectionConfig() const{ return m_introspectionConfig; }
203 inline bool IntrospectionConfigHasBeenSet() const { return m_introspectionConfigHasBeenSet; }
204 inline void SetIntrospectionConfig(const GraphQLApiIntrospectionConfig& value) { m_introspectionConfigHasBeenSet = true; m_introspectionConfig = value; }
205 inline void SetIntrospectionConfig(GraphQLApiIntrospectionConfig&& value) { m_introspectionConfigHasBeenSet = true; m_introspectionConfig = std::move(value); }
209
211
221 inline int GetQueryDepthLimit() const{ return m_queryDepthLimit; }
222 inline bool QueryDepthLimitHasBeenSet() const { return m_queryDepthLimitHasBeenSet; }
223 inline void SetQueryDepthLimit(int value) { m_queryDepthLimitHasBeenSet = true; m_queryDepthLimit = value; }
224 inline UpdateGraphqlApiRequest& WithQueryDepthLimit(int value) { SetQueryDepthLimit(value); return *this;}
226
228
235 inline int GetResolverCountLimit() const{ return m_resolverCountLimit; }
236 inline bool ResolverCountLimitHasBeenSet() const { return m_resolverCountLimitHasBeenSet; }
237 inline void SetResolverCountLimit(int value) { m_resolverCountLimitHasBeenSet = true; m_resolverCountLimit = value; }
238 inline UpdateGraphqlApiRequest& WithResolverCountLimit(int value) { SetResolverCountLimit(value); return *this;}
240
242
245 inline const EnhancedMetricsConfig& GetEnhancedMetricsConfig() const{ return m_enhancedMetricsConfig; }
246 inline bool EnhancedMetricsConfigHasBeenSet() const { return m_enhancedMetricsConfigHasBeenSet; }
247 inline void SetEnhancedMetricsConfig(const EnhancedMetricsConfig& value) { m_enhancedMetricsConfigHasBeenSet = true; m_enhancedMetricsConfig = value; }
248 inline void SetEnhancedMetricsConfig(EnhancedMetricsConfig&& value) { m_enhancedMetricsConfigHasBeenSet = true; m_enhancedMetricsConfig = std::move(value); }
252 private:
253
254 Aws::String m_apiId;
255 bool m_apiIdHasBeenSet = false;
256
257 Aws::String m_name;
258 bool m_nameHasBeenSet = false;
259
260 LogConfig m_logConfig;
261 bool m_logConfigHasBeenSet = false;
262
263 AuthenticationType m_authenticationType;
264 bool m_authenticationTypeHasBeenSet = false;
265
266 UserPoolConfig m_userPoolConfig;
267 bool m_userPoolConfigHasBeenSet = false;
268
269 OpenIDConnectConfig m_openIDConnectConfig;
270 bool m_openIDConnectConfigHasBeenSet = false;
271
272 Aws::Vector<AdditionalAuthenticationProvider> m_additionalAuthenticationProviders;
273 bool m_additionalAuthenticationProvidersHasBeenSet = false;
274
275 bool m_xrayEnabled;
276 bool m_xrayEnabledHasBeenSet = false;
277
278 LambdaAuthorizerConfig m_lambdaAuthorizerConfig;
279 bool m_lambdaAuthorizerConfigHasBeenSet = false;
280
281 Aws::String m_mergedApiExecutionRoleArn;
282 bool m_mergedApiExecutionRoleArnHasBeenSet = false;
283
284 Aws::String m_ownerContact;
285 bool m_ownerContactHasBeenSet = false;
286
287 GraphQLApiIntrospectionConfig m_introspectionConfig;
288 bool m_introspectionConfigHasBeenSet = false;
289
290 int m_queryDepthLimit;
291 bool m_queryDepthLimitHasBeenSet = false;
292
293 int m_resolverCountLimit;
294 bool m_resolverCountLimitHasBeenSet = false;
295
296 EnhancedMetricsConfig m_enhancedMetricsConfig;
297 bool m_enhancedMetricsConfigHasBeenSet = false;
298 };
299
300} // namespace Model
301} // namespace AppSync
302} // namespace Aws
void SetIntrospectionConfig(const GraphQLApiIntrospectionConfig &value)
UpdateGraphqlApiRequest & WithAdditionalAuthenticationProviders(const Aws::Vector< AdditionalAuthenticationProvider > &value)
UpdateGraphqlApiRequest & WithName(const char *value)
UpdateGraphqlApiRequest & WithQueryDepthLimit(int value)
UpdateGraphqlApiRequest & WithOwnerContact(const Aws::String &value)
const Aws::Vector< AdditionalAuthenticationProvider > & GetAdditionalAuthenticationProviders() const
UpdateGraphqlApiRequest & WithApiId(const char *value)
UpdateGraphqlApiRequest & WithAuthenticationType(const AuthenticationType &value)
void SetLambdaAuthorizerConfig(const LambdaAuthorizerConfig &value)
UpdateGraphqlApiRequest & WithAdditionalAuthenticationProviders(Aws::Vector< AdditionalAuthenticationProvider > &&value)
UpdateGraphqlApiRequest & AddAdditionalAuthenticationProviders(AdditionalAuthenticationProvider &&value)
void SetOpenIDConnectConfig(OpenIDConnectConfig &&value)
UpdateGraphqlApiRequest & WithOpenIDConnectConfig(const OpenIDConnectConfig &value)
virtual const char * GetServiceRequestName() const override
UpdateGraphqlApiRequest & WithLambdaAuthorizerConfig(const LambdaAuthorizerConfig &value)
UpdateGraphqlApiRequest & WithName(Aws::String &&value)
void SetMergedApiExecutionRoleArn(const Aws::String &value)
const LambdaAuthorizerConfig & GetLambdaAuthorizerConfig() const
void SetIntrospectionConfig(GraphQLApiIntrospectionConfig &&value)
void SetOpenIDConnectConfig(const OpenIDConnectConfig &value)
void SetAdditionalAuthenticationProviders(const Aws::Vector< AdditionalAuthenticationProvider > &value)
UpdateGraphqlApiRequest & WithOwnerContact(Aws::String &&value)
UpdateGraphqlApiRequest & AddAdditionalAuthenticationProviders(const AdditionalAuthenticationProvider &value)
const AuthenticationType & GetAuthenticationType() const
void SetAuthenticationType(const AuthenticationType &value)
UpdateGraphqlApiRequest & WithXrayEnabled(bool value)
void SetAuthenticationType(AuthenticationType &&value)
UpdateGraphqlApiRequest & WithMergedApiExecutionRoleArn(Aws::String &&value)
UpdateGraphqlApiRequest & WithLambdaAuthorizerConfig(LambdaAuthorizerConfig &&value)
UpdateGraphqlApiRequest & WithIntrospectionConfig(GraphQLApiIntrospectionConfig &&value)
void SetUserPoolConfig(const UserPoolConfig &value)
UpdateGraphqlApiRequest & WithMergedApiExecutionRoleArn(const Aws::String &value)
UpdateGraphqlApiRequest & WithMergedApiExecutionRoleArn(const char *value)
UpdateGraphqlApiRequest & WithUserPoolConfig(const UserPoolConfig &value)
AWS_APPSYNC_API Aws::String SerializePayload() const override
UpdateGraphqlApiRequest & WithResolverCountLimit(int value)
UpdateGraphqlApiRequest & WithLogConfig(const LogConfig &value)
void SetEnhancedMetricsConfig(EnhancedMetricsConfig &&value)
void SetLambdaAuthorizerConfig(LambdaAuthorizerConfig &&value)
UpdateGraphqlApiRequest & WithUserPoolConfig(UserPoolConfig &&value)
const OpenIDConnectConfig & GetOpenIDConnectConfig() const
UpdateGraphqlApiRequest & WithLogConfig(LogConfig &&value)
UpdateGraphqlApiRequest & WithEnhancedMetricsConfig(const EnhancedMetricsConfig &value)
UpdateGraphqlApiRequest & WithApiId(const Aws::String &value)
const GraphQLApiIntrospectionConfig & GetIntrospectionConfig() const
UpdateGraphqlApiRequest & WithOpenIDConnectConfig(OpenIDConnectConfig &&value)
UpdateGraphqlApiRequest & WithOwnerContact(const char *value)
UpdateGraphqlApiRequest & WithName(const Aws::String &value)
const EnhancedMetricsConfig & GetEnhancedMetricsConfig() const
UpdateGraphqlApiRequest & WithIntrospectionConfig(const GraphQLApiIntrospectionConfig &value)
void SetAdditionalAuthenticationProviders(Aws::Vector< AdditionalAuthenticationProvider > &&value)
UpdateGraphqlApiRequest & WithEnhancedMetricsConfig(EnhancedMetricsConfig &&value)
UpdateGraphqlApiRequest & WithApiId(Aws::String &&value)
UpdateGraphqlApiRequest & WithAuthenticationType(AuthenticationType &&value)
void SetEnhancedMetricsConfig(const EnhancedMetricsConfig &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector