AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UpdateGraphqlApiRequest.h
1
6#pragma once
7#include <aws/appsync/AppSyncRequest.h>
8#include <aws/appsync/AppSync_EXPORTS.h>
9#include <aws/appsync/model/AdditionalAuthenticationProvider.h>
10#include <aws/appsync/model/AuthenticationType.h>
11#include <aws/appsync/model/EnhancedMetricsConfig.h>
12#include <aws/appsync/model/GraphQLApiIntrospectionConfig.h>
13#include <aws/appsync/model/LambdaAuthorizerConfig.h>
14#include <aws/appsync/model/LogConfig.h>
15#include <aws/appsync/model/OpenIDConnectConfig.h>
16#include <aws/appsync/model/UserPoolConfig.h>
17#include <aws/core/utils/memory/stl/AWSString.h>
18#include <aws/core/utils/memory/stl/AWSVector.h>
19
20#include <utility>
21
22namespace Aws {
23namespace AppSync {
24namespace Model {
25
29 public:
30 AWS_APPSYNC_API UpdateGraphqlApiRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "UpdateGraphqlApi"; }
37
38 AWS_APPSYNC_API Aws::String SerializePayload() const override;
39
41
44 inline const Aws::String& GetApiId() const { return m_apiId; }
45 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
46 template <typename ApiIdT = Aws::String>
47 void SetApiId(ApiIdT&& value) {
48 m_apiIdHasBeenSet = true;
49 m_apiId = std::forward<ApiIdT>(value);
50 }
51 template <typename ApiIdT = Aws::String>
53 SetApiId(std::forward<ApiIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template <typename NameT = Aws::String>
65 void SetName(NameT&& value) {
66 m_nameHasBeenSet = true;
67 m_name = std::forward<NameT>(value);
68 }
69 template <typename NameT = Aws::String>
71 SetName(std::forward<NameT>(value));
72 return *this;
73 }
75
77
81 inline const LogConfig& GetLogConfig() const { return m_logConfig; }
82 inline bool LogConfigHasBeenSet() const { return m_logConfigHasBeenSet; }
83 template <typename LogConfigT = LogConfig>
84 void SetLogConfig(LogConfigT&& value) {
85 m_logConfigHasBeenSet = true;
86 m_logConfig = std::forward<LogConfigT>(value);
87 }
88 template <typename LogConfigT = LogConfig>
90 SetLogConfig(std::forward<LogConfigT>(value));
91 return *this;
92 }
94
96
99 inline AuthenticationType GetAuthenticationType() const { return m_authenticationType; }
100 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
102 m_authenticationTypeHasBeenSet = true;
103 m_authenticationType = value;
104 }
107 return *this;
108 }
110
112
116 inline const UserPoolConfig& GetUserPoolConfig() const { return m_userPoolConfig; }
117 inline bool UserPoolConfigHasBeenSet() const { return m_userPoolConfigHasBeenSet; }
118 template <typename UserPoolConfigT = UserPoolConfig>
119 void SetUserPoolConfig(UserPoolConfigT&& value) {
120 m_userPoolConfigHasBeenSet = true;
121 m_userPoolConfig = std::forward<UserPoolConfigT>(value);
122 }
123 template <typename UserPoolConfigT = UserPoolConfig>
124 UpdateGraphqlApiRequest& WithUserPoolConfig(UserPoolConfigT&& value) {
125 SetUserPoolConfig(std::forward<UserPoolConfigT>(value));
126 return *this;
127 }
129
131
134 inline const OpenIDConnectConfig& GetOpenIDConnectConfig() const { return m_openIDConnectConfig; }
135 inline bool OpenIDConnectConfigHasBeenSet() const { return m_openIDConnectConfigHasBeenSet; }
136 template <typename OpenIDConnectConfigT = OpenIDConnectConfig>
137 void SetOpenIDConnectConfig(OpenIDConnectConfigT&& value) {
138 m_openIDConnectConfigHasBeenSet = true;
139 m_openIDConnectConfig = std::forward<OpenIDConnectConfigT>(value);
140 }
141 template <typename OpenIDConnectConfigT = OpenIDConnectConfig>
142 UpdateGraphqlApiRequest& WithOpenIDConnectConfig(OpenIDConnectConfigT&& value) {
143 SetOpenIDConnectConfig(std::forward<OpenIDConnectConfigT>(value));
144 return *this;
145 }
147
149
154 return m_additionalAuthenticationProviders;
155 }
156 inline bool AdditionalAuthenticationProvidersHasBeenSet() const { return m_additionalAuthenticationProvidersHasBeenSet; }
157 template <typename AdditionalAuthenticationProvidersT = Aws::Vector<AdditionalAuthenticationProvider>>
158 void SetAdditionalAuthenticationProviders(AdditionalAuthenticationProvidersT&& value) {
159 m_additionalAuthenticationProvidersHasBeenSet = true;
160 m_additionalAuthenticationProviders = std::forward<AdditionalAuthenticationProvidersT>(value);
161 }
162 template <typename AdditionalAuthenticationProvidersT = Aws::Vector<AdditionalAuthenticationProvider>>
163 UpdateGraphqlApiRequest& WithAdditionalAuthenticationProviders(AdditionalAuthenticationProvidersT&& value) {
164 SetAdditionalAuthenticationProviders(std::forward<AdditionalAuthenticationProvidersT>(value));
165 return *this;
166 }
167 template <typename AdditionalAuthenticationProvidersT = AdditionalAuthenticationProvider>
168 UpdateGraphqlApiRequest& AddAdditionalAuthenticationProviders(AdditionalAuthenticationProvidersT&& value) {
169 m_additionalAuthenticationProvidersHasBeenSet = true;
170 m_additionalAuthenticationProviders.emplace_back(std::forward<AdditionalAuthenticationProvidersT>(value));
171 return *this;
172 }
174
176
180 inline bool GetXrayEnabled() const { return m_xrayEnabled; }
181 inline bool XrayEnabledHasBeenSet() const { return m_xrayEnabledHasBeenSet; }
182 inline void SetXrayEnabled(bool value) {
183 m_xrayEnabledHasBeenSet = true;
184 m_xrayEnabled = value;
185 }
187 SetXrayEnabled(value);
188 return *this;
189 }
191
193
196 inline const LambdaAuthorizerConfig& GetLambdaAuthorizerConfig() const { return m_lambdaAuthorizerConfig; }
197 inline bool LambdaAuthorizerConfigHasBeenSet() const { return m_lambdaAuthorizerConfigHasBeenSet; }
198 template <typename LambdaAuthorizerConfigT = LambdaAuthorizerConfig>
199 void SetLambdaAuthorizerConfig(LambdaAuthorizerConfigT&& value) {
200 m_lambdaAuthorizerConfigHasBeenSet = true;
201 m_lambdaAuthorizerConfig = std::forward<LambdaAuthorizerConfigT>(value);
202 }
203 template <typename LambdaAuthorizerConfigT = LambdaAuthorizerConfig>
204 UpdateGraphqlApiRequest& WithLambdaAuthorizerConfig(LambdaAuthorizerConfigT&& value) {
205 SetLambdaAuthorizerConfig(std::forward<LambdaAuthorizerConfigT>(value));
206 return *this;
207 }
209
211
217 inline const Aws::String& GetMergedApiExecutionRoleArn() const { return m_mergedApiExecutionRoleArn; }
218 inline bool MergedApiExecutionRoleArnHasBeenSet() const { return m_mergedApiExecutionRoleArnHasBeenSet; }
219 template <typename MergedApiExecutionRoleArnT = Aws::String>
220 void SetMergedApiExecutionRoleArn(MergedApiExecutionRoleArnT&& value) {
221 m_mergedApiExecutionRoleArnHasBeenSet = true;
222 m_mergedApiExecutionRoleArn = std::forward<MergedApiExecutionRoleArnT>(value);
223 }
224 template <typename MergedApiExecutionRoleArnT = Aws::String>
225 UpdateGraphqlApiRequest& WithMergedApiExecutionRoleArn(MergedApiExecutionRoleArnT&& value) {
226 SetMergedApiExecutionRoleArn(std::forward<MergedApiExecutionRoleArnT>(value));
227 return *this;
228 }
230
232
236 inline const Aws::String& GetOwnerContact() const { return m_ownerContact; }
237 inline bool OwnerContactHasBeenSet() const { return m_ownerContactHasBeenSet; }
238 template <typename OwnerContactT = Aws::String>
239 void SetOwnerContact(OwnerContactT&& value) {
240 m_ownerContactHasBeenSet = true;
241 m_ownerContact = std::forward<OwnerContactT>(value);
242 }
243 template <typename OwnerContactT = Aws::String>
245 SetOwnerContact(std::forward<OwnerContactT>(value));
246 return *this;
247 }
249
251
260 inline GraphQLApiIntrospectionConfig GetIntrospectionConfig() const { return m_introspectionConfig; }
261 inline bool IntrospectionConfigHasBeenSet() const { return m_introspectionConfigHasBeenSet; }
263 m_introspectionConfigHasBeenSet = true;
264 m_introspectionConfig = value;
265 }
268 return *this;
269 }
271
273
283 inline int GetQueryDepthLimit() const { return m_queryDepthLimit; }
284 inline bool QueryDepthLimitHasBeenSet() const { return m_queryDepthLimitHasBeenSet; }
285 inline void SetQueryDepthLimit(int value) {
286 m_queryDepthLimitHasBeenSet = true;
287 m_queryDepthLimit = value;
288 }
290 SetQueryDepthLimit(value);
291 return *this;
292 }
294
296
303 inline int GetResolverCountLimit() const { return m_resolverCountLimit; }
304 inline bool ResolverCountLimitHasBeenSet() const { return m_resolverCountLimitHasBeenSet; }
305 inline void SetResolverCountLimit(int value) {
306 m_resolverCountLimitHasBeenSet = true;
307 m_resolverCountLimit = value;
308 }
311 return *this;
312 }
314
316
319 inline const EnhancedMetricsConfig& GetEnhancedMetricsConfig() const { return m_enhancedMetricsConfig; }
320 inline bool EnhancedMetricsConfigHasBeenSet() const { return m_enhancedMetricsConfigHasBeenSet; }
321 template <typename EnhancedMetricsConfigT = EnhancedMetricsConfig>
322 void SetEnhancedMetricsConfig(EnhancedMetricsConfigT&& value) {
323 m_enhancedMetricsConfigHasBeenSet = true;
324 m_enhancedMetricsConfig = std::forward<EnhancedMetricsConfigT>(value);
325 }
326 template <typename EnhancedMetricsConfigT = EnhancedMetricsConfig>
327 UpdateGraphqlApiRequest& WithEnhancedMetricsConfig(EnhancedMetricsConfigT&& value) {
328 SetEnhancedMetricsConfig(std::forward<EnhancedMetricsConfigT>(value));
329 return *this;
330 }
332 private:
333 Aws::String m_apiId;
334
335 Aws::String m_name;
336
337 LogConfig m_logConfig;
338
340
341 UserPoolConfig m_userPoolConfig;
342
343 OpenIDConnectConfig m_openIDConnectConfig;
344
345 Aws::Vector<AdditionalAuthenticationProvider> m_additionalAuthenticationProviders;
346
347 bool m_xrayEnabled{false};
348
349 LambdaAuthorizerConfig m_lambdaAuthorizerConfig;
350
351 Aws::String m_mergedApiExecutionRoleArn;
352
353 Aws::String m_ownerContact;
354
356
357 int m_queryDepthLimit{0};
358
359 int m_resolverCountLimit{0};
360
361 EnhancedMetricsConfig m_enhancedMetricsConfig;
362 bool m_apiIdHasBeenSet = false;
363 bool m_nameHasBeenSet = false;
364 bool m_logConfigHasBeenSet = false;
365 bool m_authenticationTypeHasBeenSet = false;
366 bool m_userPoolConfigHasBeenSet = false;
367 bool m_openIDConnectConfigHasBeenSet = false;
368 bool m_additionalAuthenticationProvidersHasBeenSet = false;
369 bool m_xrayEnabledHasBeenSet = false;
370 bool m_lambdaAuthorizerConfigHasBeenSet = false;
371 bool m_mergedApiExecutionRoleArnHasBeenSet = false;
372 bool m_ownerContactHasBeenSet = false;
373 bool m_introspectionConfigHasBeenSet = false;
374 bool m_queryDepthLimitHasBeenSet = false;
375 bool m_resolverCountLimitHasBeenSet = false;
376 bool m_enhancedMetricsConfigHasBeenSet = false;
377};
378
379} // namespace Model
380} // namespace AppSync
381} // namespace Aws
UpdateGraphqlApiRequest & WithEnhancedMetricsConfig(EnhancedMetricsConfigT &&value)
void SetEnhancedMetricsConfig(EnhancedMetricsConfigT &&value)
UpdateGraphqlApiRequest & WithLogConfig(LogConfigT &&value)
UpdateGraphqlApiRequest & WithQueryDepthLimit(int value)
AWS_APPSYNC_API UpdateGraphqlApiRequest()=default
UpdateGraphqlApiRequest & WithName(NameT &&value)
void SetMergedApiExecutionRoleArn(MergedApiExecutionRoleArnT &&value)
GraphQLApiIntrospectionConfig GetIntrospectionConfig() const
void SetIntrospectionConfig(GraphQLApiIntrospectionConfig value)
const Aws::Vector< AdditionalAuthenticationProvider > & GetAdditionalAuthenticationProviders() const
UpdateGraphqlApiRequest & WithIntrospectionConfig(GraphQLApiIntrospectionConfig value)
UpdateGraphqlApiRequest & WithOwnerContact(OwnerContactT &&value)
void SetOpenIDConnectConfig(OpenIDConnectConfigT &&value)
UpdateGraphqlApiRequest & WithApiId(ApiIdT &&value)
virtual const char * GetServiceRequestName() const override
UpdateGraphqlApiRequest & WithMergedApiExecutionRoleArn(MergedApiExecutionRoleArnT &&value)
const LambdaAuthorizerConfig & GetLambdaAuthorizerConfig() const
UpdateGraphqlApiRequest & WithLambdaAuthorizerConfig(LambdaAuthorizerConfigT &&value)
UpdateGraphqlApiRequest & WithAuthenticationType(AuthenticationType value)
UpdateGraphqlApiRequest & AddAdditionalAuthenticationProviders(AdditionalAuthenticationProvidersT &&value)
UpdateGraphqlApiRequest & WithXrayEnabled(bool value)
AWS_APPSYNC_API Aws::String SerializePayload() const override
UpdateGraphqlApiRequest & WithResolverCountLimit(int value)
const OpenIDConnectConfig & GetOpenIDConnectConfig() const
UpdateGraphqlApiRequest & WithUserPoolConfig(UserPoolConfigT &&value)
UpdateGraphqlApiRequest & WithOpenIDConnectConfig(OpenIDConnectConfigT &&value)
const EnhancedMetricsConfig & GetEnhancedMetricsConfig() const
void SetLambdaAuthorizerConfig(LambdaAuthorizerConfigT &&value)
void SetAdditionalAuthenticationProviders(AdditionalAuthenticationProvidersT &&value)
UpdateGraphqlApiRequest & WithAdditionalAuthenticationProviders(AdditionalAuthenticationProvidersT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector