AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ApiIdT = Aws::String>
51 void SetApiId(ApiIdT&& value) { m_apiIdHasBeenSet = true; m_apiId = std::forward<ApiIdT>(value); }
52 template<typename ApiIdT = Aws::String>
53 UpdateGraphqlApiRequest& WithApiId(ApiIdT&& value) { SetApiId(std::forward<ApiIdT>(value)); return *this;}
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template<typename NameT = Aws::String>
63 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
64 template<typename NameT = Aws::String>
65 UpdateGraphqlApiRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
67
69
73 inline const LogConfig& GetLogConfig() const { return m_logConfig; }
74 inline bool LogConfigHasBeenSet() const { return m_logConfigHasBeenSet; }
75 template<typename LogConfigT = LogConfig>
76 void SetLogConfig(LogConfigT&& value) { m_logConfigHasBeenSet = true; m_logConfig = std::forward<LogConfigT>(value); }
77 template<typename LogConfigT = LogConfig>
78 UpdateGraphqlApiRequest& WithLogConfig(LogConfigT&& value) { SetLogConfig(std::forward<LogConfigT>(value)); return *this;}
80
82
85 inline AuthenticationType GetAuthenticationType() const { return m_authenticationType; }
86 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
87 inline void SetAuthenticationType(AuthenticationType value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = value; }
90
92
96 inline const UserPoolConfig& GetUserPoolConfig() const { return m_userPoolConfig; }
97 inline bool UserPoolConfigHasBeenSet() const { return m_userPoolConfigHasBeenSet; }
98 template<typename UserPoolConfigT = UserPoolConfig>
99 void SetUserPoolConfig(UserPoolConfigT&& value) { m_userPoolConfigHasBeenSet = true; m_userPoolConfig = std::forward<UserPoolConfigT>(value); }
100 template<typename UserPoolConfigT = UserPoolConfig>
101 UpdateGraphqlApiRequest& WithUserPoolConfig(UserPoolConfigT&& value) { SetUserPoolConfig(std::forward<UserPoolConfigT>(value)); return *this;}
103
105
108 inline const OpenIDConnectConfig& GetOpenIDConnectConfig() const { return m_openIDConnectConfig; }
109 inline bool OpenIDConnectConfigHasBeenSet() const { return m_openIDConnectConfigHasBeenSet; }
110 template<typename OpenIDConnectConfigT = OpenIDConnectConfig>
111 void SetOpenIDConnectConfig(OpenIDConnectConfigT&& value) { m_openIDConnectConfigHasBeenSet = true; m_openIDConnectConfig = std::forward<OpenIDConnectConfigT>(value); }
112 template<typename OpenIDConnectConfigT = OpenIDConnectConfig>
113 UpdateGraphqlApiRequest& WithOpenIDConnectConfig(OpenIDConnectConfigT&& value) { SetOpenIDConnectConfig(std::forward<OpenIDConnectConfigT>(value)); return *this;}
115
117
121 inline const Aws::Vector<AdditionalAuthenticationProvider>& GetAdditionalAuthenticationProviders() const { return m_additionalAuthenticationProviders; }
122 inline bool AdditionalAuthenticationProvidersHasBeenSet() const { return m_additionalAuthenticationProvidersHasBeenSet; }
123 template<typename AdditionalAuthenticationProvidersT = Aws::Vector<AdditionalAuthenticationProvider>>
124 void SetAdditionalAuthenticationProviders(AdditionalAuthenticationProvidersT&& value) { m_additionalAuthenticationProvidersHasBeenSet = true; m_additionalAuthenticationProviders = std::forward<AdditionalAuthenticationProvidersT>(value); }
125 template<typename AdditionalAuthenticationProvidersT = Aws::Vector<AdditionalAuthenticationProvider>>
126 UpdateGraphqlApiRequest& WithAdditionalAuthenticationProviders(AdditionalAuthenticationProvidersT&& value) { SetAdditionalAuthenticationProviders(std::forward<AdditionalAuthenticationProvidersT>(value)); return *this;}
127 template<typename AdditionalAuthenticationProvidersT = AdditionalAuthenticationProvider>
128 UpdateGraphqlApiRequest& AddAdditionalAuthenticationProviders(AdditionalAuthenticationProvidersT&& value) { m_additionalAuthenticationProvidersHasBeenSet = true; m_additionalAuthenticationProviders.emplace_back(std::forward<AdditionalAuthenticationProvidersT>(value)); return *this; }
130
132
136 inline bool GetXrayEnabled() const { return m_xrayEnabled; }
137 inline bool XrayEnabledHasBeenSet() const { return m_xrayEnabledHasBeenSet; }
138 inline void SetXrayEnabled(bool value) { m_xrayEnabledHasBeenSet = true; m_xrayEnabled = value; }
139 inline UpdateGraphqlApiRequest& WithXrayEnabled(bool value) { SetXrayEnabled(value); return *this;}
141
143
146 inline const LambdaAuthorizerConfig& GetLambdaAuthorizerConfig() const { return m_lambdaAuthorizerConfig; }
147 inline bool LambdaAuthorizerConfigHasBeenSet() const { return m_lambdaAuthorizerConfigHasBeenSet; }
148 template<typename LambdaAuthorizerConfigT = LambdaAuthorizerConfig>
149 void SetLambdaAuthorizerConfig(LambdaAuthorizerConfigT&& value) { m_lambdaAuthorizerConfigHasBeenSet = true; m_lambdaAuthorizerConfig = std::forward<LambdaAuthorizerConfigT>(value); }
150 template<typename LambdaAuthorizerConfigT = LambdaAuthorizerConfig>
151 UpdateGraphqlApiRequest& WithLambdaAuthorizerConfig(LambdaAuthorizerConfigT&& value) { SetLambdaAuthorizerConfig(std::forward<LambdaAuthorizerConfigT>(value)); return *this;}
153
155
161 inline const Aws::String& GetMergedApiExecutionRoleArn() const { return m_mergedApiExecutionRoleArn; }
162 inline bool MergedApiExecutionRoleArnHasBeenSet() const { return m_mergedApiExecutionRoleArnHasBeenSet; }
163 template<typename MergedApiExecutionRoleArnT = Aws::String>
164 void SetMergedApiExecutionRoleArn(MergedApiExecutionRoleArnT&& value) { m_mergedApiExecutionRoleArnHasBeenSet = true; m_mergedApiExecutionRoleArn = std::forward<MergedApiExecutionRoleArnT>(value); }
165 template<typename MergedApiExecutionRoleArnT = Aws::String>
166 UpdateGraphqlApiRequest& WithMergedApiExecutionRoleArn(MergedApiExecutionRoleArnT&& value) { SetMergedApiExecutionRoleArn(std::forward<MergedApiExecutionRoleArnT>(value)); return *this;}
168
170
174 inline const Aws::String& GetOwnerContact() const { return m_ownerContact; }
175 inline bool OwnerContactHasBeenSet() const { return m_ownerContactHasBeenSet; }
176 template<typename OwnerContactT = Aws::String>
177 void SetOwnerContact(OwnerContactT&& value) { m_ownerContactHasBeenSet = true; m_ownerContact = std::forward<OwnerContactT>(value); }
178 template<typename OwnerContactT = Aws::String>
179 UpdateGraphqlApiRequest& WithOwnerContact(OwnerContactT&& value) { SetOwnerContact(std::forward<OwnerContactT>(value)); return *this;}
181
183
192 inline GraphQLApiIntrospectionConfig GetIntrospectionConfig() const { return m_introspectionConfig; }
193 inline bool IntrospectionConfigHasBeenSet() const { return m_introspectionConfigHasBeenSet; }
194 inline void SetIntrospectionConfig(GraphQLApiIntrospectionConfig value) { m_introspectionConfigHasBeenSet = true; m_introspectionConfig = value; }
197
199
209 inline int GetQueryDepthLimit() const { return m_queryDepthLimit; }
210 inline bool QueryDepthLimitHasBeenSet() const { return m_queryDepthLimitHasBeenSet; }
211 inline void SetQueryDepthLimit(int value) { m_queryDepthLimitHasBeenSet = true; m_queryDepthLimit = value; }
212 inline UpdateGraphqlApiRequest& WithQueryDepthLimit(int value) { SetQueryDepthLimit(value); return *this;}
214
216
223 inline int GetResolverCountLimit() const { return m_resolverCountLimit; }
224 inline bool ResolverCountLimitHasBeenSet() const { return m_resolverCountLimitHasBeenSet; }
225 inline void SetResolverCountLimit(int value) { m_resolverCountLimitHasBeenSet = true; m_resolverCountLimit = value; }
226 inline UpdateGraphqlApiRequest& WithResolverCountLimit(int value) { SetResolverCountLimit(value); return *this;}
228
230
233 inline const EnhancedMetricsConfig& GetEnhancedMetricsConfig() const { return m_enhancedMetricsConfig; }
234 inline bool EnhancedMetricsConfigHasBeenSet() const { return m_enhancedMetricsConfigHasBeenSet; }
235 template<typename EnhancedMetricsConfigT = EnhancedMetricsConfig>
236 void SetEnhancedMetricsConfig(EnhancedMetricsConfigT&& value) { m_enhancedMetricsConfigHasBeenSet = true; m_enhancedMetricsConfig = std::forward<EnhancedMetricsConfigT>(value); }
237 template<typename EnhancedMetricsConfigT = EnhancedMetricsConfig>
238 UpdateGraphqlApiRequest& WithEnhancedMetricsConfig(EnhancedMetricsConfigT&& value) { SetEnhancedMetricsConfig(std::forward<EnhancedMetricsConfigT>(value)); return *this;}
240 private:
241
242 Aws::String m_apiId;
243 bool m_apiIdHasBeenSet = false;
244
245 Aws::String m_name;
246 bool m_nameHasBeenSet = false;
247
248 LogConfig m_logConfig;
249 bool m_logConfigHasBeenSet = false;
250
252 bool m_authenticationTypeHasBeenSet = false;
253
254 UserPoolConfig m_userPoolConfig;
255 bool m_userPoolConfigHasBeenSet = false;
256
257 OpenIDConnectConfig m_openIDConnectConfig;
258 bool m_openIDConnectConfigHasBeenSet = false;
259
260 Aws::Vector<AdditionalAuthenticationProvider> m_additionalAuthenticationProviders;
261 bool m_additionalAuthenticationProvidersHasBeenSet = false;
262
263 bool m_xrayEnabled{false};
264 bool m_xrayEnabledHasBeenSet = false;
265
266 LambdaAuthorizerConfig m_lambdaAuthorizerConfig;
267 bool m_lambdaAuthorizerConfigHasBeenSet = false;
268
269 Aws::String m_mergedApiExecutionRoleArn;
270 bool m_mergedApiExecutionRoleArnHasBeenSet = false;
271
272 Aws::String m_ownerContact;
273 bool m_ownerContactHasBeenSet = false;
274
276 bool m_introspectionConfigHasBeenSet = false;
277
278 int m_queryDepthLimit{0};
279 bool m_queryDepthLimitHasBeenSet = false;
280
281 int m_resolverCountLimit{0};
282 bool m_resolverCountLimitHasBeenSet = false;
283
284 EnhancedMetricsConfig m_enhancedMetricsConfig;
285 bool m_enhancedMetricsConfigHasBeenSet = false;
286 };
287
288} // namespace Model
289} // namespace AppSync
290} // 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