AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateAppRequest.h
1
6#pragma once
7#include <aws/amplify/Amplify_EXPORTS.h>
8#include <aws/amplify/AmplifyRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/amplify/model/Platform.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/amplify/model/AutoBranchCreationConfig.h>
14#include <aws/amplify/model/JobConfig.h>
15#include <aws/amplify/model/CacheConfig.h>
16#include <aws/amplify/model/CustomRule.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Amplify
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_AMPLIFY_API UpdateAppRequest() = default;
36
37 // Service request name is the Operation name which will send this request out,
38 // each operation should has unique request name, so that we can get operation's name from this request.
39 // Note: this is not true for response, multiple operations may have the same response name,
40 // so we can not get operation's name from response.
41 inline virtual const char* GetServiceRequestName() const override { return "UpdateApp"; }
42
43 AWS_AMPLIFY_API Aws::String SerializePayload() const override;
44
45
47
50 inline const Aws::String& GetAppId() const { return m_appId; }
51 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
52 template<typename AppIdT = Aws::String>
53 void SetAppId(AppIdT&& value) { m_appIdHasBeenSet = true; m_appId = std::forward<AppIdT>(value); }
54 template<typename AppIdT = Aws::String>
55 UpdateAppRequest& WithAppId(AppIdT&& value) { SetAppId(std::forward<AppIdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
66 template<typename NameT = Aws::String>
67 UpdateAppRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
69
71
74 inline const Aws::String& GetDescription() const { return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 template<typename DescriptionT = Aws::String>
77 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
78 template<typename DescriptionT = Aws::String>
79 UpdateAppRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
81
83
92 inline Platform GetPlatform() const { return m_platform; }
93 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
94 inline void SetPlatform(Platform value) { m_platformHasBeenSet = true; m_platform = value; }
95 inline UpdateAppRequest& WithPlatform(Platform value) { SetPlatform(value); return *this;}
97
99
107 inline const Aws::String& GetComputeRoleArn() const { return m_computeRoleArn; }
108 inline bool ComputeRoleArnHasBeenSet() const { return m_computeRoleArnHasBeenSet; }
109 template<typename ComputeRoleArnT = Aws::String>
110 void SetComputeRoleArn(ComputeRoleArnT&& value) { m_computeRoleArnHasBeenSet = true; m_computeRoleArn = std::forward<ComputeRoleArnT>(value); }
111 template<typename ComputeRoleArnT = Aws::String>
112 UpdateAppRequest& WithComputeRoleArn(ComputeRoleArnT&& value) { SetComputeRoleArn(std::forward<ComputeRoleArnT>(value)); return *this;}
114
116
120 inline const Aws::String& GetIamServiceRoleArn() const { return m_iamServiceRoleArn; }
121 inline bool IamServiceRoleArnHasBeenSet() const { return m_iamServiceRoleArnHasBeenSet; }
122 template<typename IamServiceRoleArnT = Aws::String>
123 void SetIamServiceRoleArn(IamServiceRoleArnT&& value) { m_iamServiceRoleArnHasBeenSet = true; m_iamServiceRoleArn = std::forward<IamServiceRoleArnT>(value); }
124 template<typename IamServiceRoleArnT = Aws::String>
125 UpdateAppRequest& WithIamServiceRoleArn(IamServiceRoleArnT&& value) { SetIamServiceRoleArn(std::forward<IamServiceRoleArnT>(value)); return *this;}
127
129
132 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironmentVariables() const { return m_environmentVariables; }
133 inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; }
134 template<typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
135 void SetEnvironmentVariables(EnvironmentVariablesT&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables = std::forward<EnvironmentVariablesT>(value); }
136 template<typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
137 UpdateAppRequest& WithEnvironmentVariables(EnvironmentVariablesT&& value) { SetEnvironmentVariables(std::forward<EnvironmentVariablesT>(value)); return *this;}
138 template<typename EnvironmentVariablesKeyT = Aws::String, typename EnvironmentVariablesValueT = Aws::String>
139 UpdateAppRequest& AddEnvironmentVariables(EnvironmentVariablesKeyT&& key, EnvironmentVariablesValueT&& value) {
140 m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(std::forward<EnvironmentVariablesKeyT>(key), std::forward<EnvironmentVariablesValueT>(value)); return *this;
141 }
143
145
148 inline bool GetEnableBranchAutoBuild() const { return m_enableBranchAutoBuild; }
149 inline bool EnableBranchAutoBuildHasBeenSet() const { return m_enableBranchAutoBuildHasBeenSet; }
150 inline void SetEnableBranchAutoBuild(bool value) { m_enableBranchAutoBuildHasBeenSet = true; m_enableBranchAutoBuild = value; }
151 inline UpdateAppRequest& WithEnableBranchAutoBuild(bool value) { SetEnableBranchAutoBuild(value); return *this;}
153
155
159 inline bool GetEnableBranchAutoDeletion() const { return m_enableBranchAutoDeletion; }
160 inline bool EnableBranchAutoDeletionHasBeenSet() const { return m_enableBranchAutoDeletionHasBeenSet; }
161 inline void SetEnableBranchAutoDeletion(bool value) { m_enableBranchAutoDeletionHasBeenSet = true; m_enableBranchAutoDeletion = value; }
164
166
169 inline bool GetEnableBasicAuth() const { return m_enableBasicAuth; }
170 inline bool EnableBasicAuthHasBeenSet() const { return m_enableBasicAuthHasBeenSet; }
171 inline void SetEnableBasicAuth(bool value) { m_enableBasicAuthHasBeenSet = true; m_enableBasicAuth = value; }
172 inline UpdateAppRequest& WithEnableBasicAuth(bool value) { SetEnableBasicAuth(value); return *this;}
174
176
181 inline const Aws::String& GetBasicAuthCredentials() const { return m_basicAuthCredentials; }
182 inline bool BasicAuthCredentialsHasBeenSet() const { return m_basicAuthCredentialsHasBeenSet; }
183 template<typename BasicAuthCredentialsT = Aws::String>
184 void SetBasicAuthCredentials(BasicAuthCredentialsT&& value) { m_basicAuthCredentialsHasBeenSet = true; m_basicAuthCredentials = std::forward<BasicAuthCredentialsT>(value); }
185 template<typename BasicAuthCredentialsT = Aws::String>
186 UpdateAppRequest& WithBasicAuthCredentials(BasicAuthCredentialsT&& value) { SetBasicAuthCredentials(std::forward<BasicAuthCredentialsT>(value)); return *this;}
188
190
193 inline const Aws::Vector<CustomRule>& GetCustomRules() const { return m_customRules; }
194 inline bool CustomRulesHasBeenSet() const { return m_customRulesHasBeenSet; }
195 template<typename CustomRulesT = Aws::Vector<CustomRule>>
196 void SetCustomRules(CustomRulesT&& value) { m_customRulesHasBeenSet = true; m_customRules = std::forward<CustomRulesT>(value); }
197 template<typename CustomRulesT = Aws::Vector<CustomRule>>
198 UpdateAppRequest& WithCustomRules(CustomRulesT&& value) { SetCustomRules(std::forward<CustomRulesT>(value)); return *this;}
199 template<typename CustomRulesT = CustomRule>
200 UpdateAppRequest& AddCustomRules(CustomRulesT&& value) { m_customRulesHasBeenSet = true; m_customRules.emplace_back(std::forward<CustomRulesT>(value)); return *this; }
202
204
207 inline const Aws::String& GetBuildSpec() const { return m_buildSpec; }
208 inline bool BuildSpecHasBeenSet() const { return m_buildSpecHasBeenSet; }
209 template<typename BuildSpecT = Aws::String>
210 void SetBuildSpec(BuildSpecT&& value) { m_buildSpecHasBeenSet = true; m_buildSpec = std::forward<BuildSpecT>(value); }
211 template<typename BuildSpecT = Aws::String>
212 UpdateAppRequest& WithBuildSpec(BuildSpecT&& value) { SetBuildSpec(std::forward<BuildSpecT>(value)); return *this;}
214
216
219 inline const Aws::String& GetCustomHeaders() const { return m_customHeaders; }
220 inline bool CustomHeadersHasBeenSet() const { return m_customHeadersHasBeenSet; }
221 template<typename CustomHeadersT = Aws::String>
222 void SetCustomHeaders(CustomHeadersT&& value) { m_customHeadersHasBeenSet = true; m_customHeaders = std::forward<CustomHeadersT>(value); }
223 template<typename CustomHeadersT = Aws::String>
224 UpdateAppRequest& WithCustomHeaders(CustomHeadersT&& value) { SetCustomHeaders(std::forward<CustomHeadersT>(value)); return *this;}
226
228
231 inline bool GetEnableAutoBranchCreation() const { return m_enableAutoBranchCreation; }
232 inline bool EnableAutoBranchCreationHasBeenSet() const { return m_enableAutoBranchCreationHasBeenSet; }
233 inline void SetEnableAutoBranchCreation(bool value) { m_enableAutoBranchCreationHasBeenSet = true; m_enableAutoBranchCreation = value; }
236
238
242 inline const Aws::Vector<Aws::String>& GetAutoBranchCreationPatterns() const { return m_autoBranchCreationPatterns; }
243 inline bool AutoBranchCreationPatternsHasBeenSet() const { return m_autoBranchCreationPatternsHasBeenSet; }
244 template<typename AutoBranchCreationPatternsT = Aws::Vector<Aws::String>>
245 void SetAutoBranchCreationPatterns(AutoBranchCreationPatternsT&& value) { m_autoBranchCreationPatternsHasBeenSet = true; m_autoBranchCreationPatterns = std::forward<AutoBranchCreationPatternsT>(value); }
246 template<typename AutoBranchCreationPatternsT = Aws::Vector<Aws::String>>
247 UpdateAppRequest& WithAutoBranchCreationPatterns(AutoBranchCreationPatternsT&& value) { SetAutoBranchCreationPatterns(std::forward<AutoBranchCreationPatternsT>(value)); return *this;}
248 template<typename AutoBranchCreationPatternsT = Aws::String>
249 UpdateAppRequest& AddAutoBranchCreationPatterns(AutoBranchCreationPatternsT&& value) { m_autoBranchCreationPatternsHasBeenSet = true; m_autoBranchCreationPatterns.emplace_back(std::forward<AutoBranchCreationPatternsT>(value)); return *this; }
251
253
256 inline const AutoBranchCreationConfig& GetAutoBranchCreationConfig() const { return m_autoBranchCreationConfig; }
257 inline bool AutoBranchCreationConfigHasBeenSet() const { return m_autoBranchCreationConfigHasBeenSet; }
258 template<typename AutoBranchCreationConfigT = AutoBranchCreationConfig>
259 void SetAutoBranchCreationConfig(AutoBranchCreationConfigT&& value) { m_autoBranchCreationConfigHasBeenSet = true; m_autoBranchCreationConfig = std::forward<AutoBranchCreationConfigT>(value); }
260 template<typename AutoBranchCreationConfigT = AutoBranchCreationConfig>
261 UpdateAppRequest& WithAutoBranchCreationConfig(AutoBranchCreationConfigT&& value) { SetAutoBranchCreationConfig(std::forward<AutoBranchCreationConfigT>(value)); return *this;}
263
265
268 inline const Aws::String& GetRepository() const { return m_repository; }
269 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
270 template<typename RepositoryT = Aws::String>
271 void SetRepository(RepositoryT&& value) { m_repositoryHasBeenSet = true; m_repository = std::forward<RepositoryT>(value); }
272 template<typename RepositoryT = Aws::String>
273 UpdateAppRequest& WithRepository(RepositoryT&& value) { SetRepository(std::forward<RepositoryT>(value)); return *this;}
275
277
292 inline const Aws::String& GetOauthToken() const { return m_oauthToken; }
293 inline bool OauthTokenHasBeenSet() const { return m_oauthTokenHasBeenSet; }
294 template<typename OauthTokenT = Aws::String>
295 void SetOauthToken(OauthTokenT&& value) { m_oauthTokenHasBeenSet = true; m_oauthToken = std::forward<OauthTokenT>(value); }
296 template<typename OauthTokenT = Aws::String>
297 UpdateAppRequest& WithOauthToken(OauthTokenT&& value) { SetOauthToken(std::forward<OauthTokenT>(value)); return *this;}
299
301
316 inline const Aws::String& GetAccessToken() const { return m_accessToken; }
317 inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; }
318 template<typename AccessTokenT = Aws::String>
319 void SetAccessToken(AccessTokenT&& value) { m_accessTokenHasBeenSet = true; m_accessToken = std::forward<AccessTokenT>(value); }
320 template<typename AccessTokenT = Aws::String>
321 UpdateAppRequest& WithAccessToken(AccessTokenT&& value) { SetAccessToken(std::forward<AccessTokenT>(value)); return *this;}
323
325
329 inline const JobConfig& GetJobConfig() const { return m_jobConfig; }
330 inline bool JobConfigHasBeenSet() const { return m_jobConfigHasBeenSet; }
331 template<typename JobConfigT = JobConfig>
332 void SetJobConfig(JobConfigT&& value) { m_jobConfigHasBeenSet = true; m_jobConfig = std::forward<JobConfigT>(value); }
333 template<typename JobConfigT = JobConfig>
334 UpdateAppRequest& WithJobConfig(JobConfigT&& value) { SetJobConfig(std::forward<JobConfigT>(value)); return *this;}
336
338
341 inline const CacheConfig& GetCacheConfig() const { return m_cacheConfig; }
342 inline bool CacheConfigHasBeenSet() const { return m_cacheConfigHasBeenSet; }
343 template<typename CacheConfigT = CacheConfig>
344 void SetCacheConfig(CacheConfigT&& value) { m_cacheConfigHasBeenSet = true; m_cacheConfig = std::forward<CacheConfigT>(value); }
345 template<typename CacheConfigT = CacheConfig>
346 UpdateAppRequest& WithCacheConfig(CacheConfigT&& value) { SetCacheConfig(std::forward<CacheConfigT>(value)); return *this;}
348 private:
349
350 Aws::String m_appId;
351 bool m_appIdHasBeenSet = false;
352
353 Aws::String m_name;
354 bool m_nameHasBeenSet = false;
355
356 Aws::String m_description;
357 bool m_descriptionHasBeenSet = false;
358
359 Platform m_platform{Platform::NOT_SET};
360 bool m_platformHasBeenSet = false;
361
362 Aws::String m_computeRoleArn;
363 bool m_computeRoleArnHasBeenSet = false;
364
365 Aws::String m_iamServiceRoleArn;
366 bool m_iamServiceRoleArnHasBeenSet = false;
367
368 Aws::Map<Aws::String, Aws::String> m_environmentVariables;
369 bool m_environmentVariablesHasBeenSet = false;
370
371 bool m_enableBranchAutoBuild{false};
372 bool m_enableBranchAutoBuildHasBeenSet = false;
373
374 bool m_enableBranchAutoDeletion{false};
375 bool m_enableBranchAutoDeletionHasBeenSet = false;
376
377 bool m_enableBasicAuth{false};
378 bool m_enableBasicAuthHasBeenSet = false;
379
380 Aws::String m_basicAuthCredentials;
381 bool m_basicAuthCredentialsHasBeenSet = false;
382
383 Aws::Vector<CustomRule> m_customRules;
384 bool m_customRulesHasBeenSet = false;
385
386 Aws::String m_buildSpec;
387 bool m_buildSpecHasBeenSet = false;
388
389 Aws::String m_customHeaders;
390 bool m_customHeadersHasBeenSet = false;
391
392 bool m_enableAutoBranchCreation{false};
393 bool m_enableAutoBranchCreationHasBeenSet = false;
394
395 Aws::Vector<Aws::String> m_autoBranchCreationPatterns;
396 bool m_autoBranchCreationPatternsHasBeenSet = false;
397
398 AutoBranchCreationConfig m_autoBranchCreationConfig;
399 bool m_autoBranchCreationConfigHasBeenSet = false;
400
401 Aws::String m_repository;
402 bool m_repositoryHasBeenSet = false;
403
404 Aws::String m_oauthToken;
405 bool m_oauthTokenHasBeenSet = false;
406
407 Aws::String m_accessToken;
408 bool m_accessTokenHasBeenSet = false;
409
410 JobConfig m_jobConfig;
411 bool m_jobConfigHasBeenSet = false;
412
413 CacheConfig m_cacheConfig;
414 bool m_cacheConfigHasBeenSet = false;
415 };
416
417} // namespace Model
418} // namespace Amplify
419} // namespace Aws
UpdateAppRequest & WithRepository(RepositoryT &&value)
UpdateAppRequest & WithEnvironmentVariables(EnvironmentVariablesT &&value)
UpdateAppRequest & WithEnableBranchAutoDeletion(bool value)
const Aws::String & GetName() const
const Aws::Map< Aws::String, Aws::String > & GetEnvironmentVariables() const
UpdateAppRequest & AddAutoBranchCreationPatterns(AutoBranchCreationPatternsT &&value)
const Aws::String & GetRepository() const
const Aws::Vector< Aws::String > & GetAutoBranchCreationPatterns() const
UpdateAppRequest & WithEnableBasicAuth(bool value)
void SetOauthToken(OauthTokenT &&value)
void SetRepository(RepositoryT &&value)
UpdateAppRequest & WithName(NameT &&value)
const CacheConfig & GetCacheConfig() const
UpdateAppRequest & WithDescription(DescriptionT &&value)
UpdateAppRequest & WithJobConfig(JobConfigT &&value)
UpdateAppRequest & WithComputeRoleArn(ComputeRoleArnT &&value)
void SetAutoBranchCreationConfig(AutoBranchCreationConfigT &&value)
void SetIamServiceRoleArn(IamServiceRoleArnT &&value)
void SetAccessToken(AccessTokenT &&value)
UpdateAppRequest & WithEnableBranchAutoBuild(bool value)
UpdateAppRequest & WithCustomHeaders(CustomHeadersT &&value)
UpdateAppRequest & WithBasicAuthCredentials(BasicAuthCredentialsT &&value)
UpdateAppRequest & AddCustomRules(CustomRulesT &&value)
const JobConfig & GetJobConfig() const
const Aws::String & GetIamServiceRoleArn() const
const Aws::String & GetBasicAuthCredentials() const
UpdateAppRequest & WithBuildSpec(BuildSpecT &&value)
const AutoBranchCreationConfig & GetAutoBranchCreationConfig() const
const Aws::String & GetCustomHeaders() const
void SetDescription(DescriptionT &&value)
void SetEnvironmentVariables(EnvironmentVariablesT &&value)
void SetCustomHeaders(CustomHeadersT &&value)
UpdateAppRequest & WithAppId(AppIdT &&value)
const Aws::String & GetOauthToken() const
const Aws::String & GetBuildSpec() const
void SetCustomRules(CustomRulesT &&value)
UpdateAppRequest & WithAccessToken(AccessTokenT &&value)
const Aws::String & GetComputeRoleArn() const
UpdateAppRequest & WithOauthToken(OauthTokenT &&value)
UpdateAppRequest & WithCustomRules(CustomRulesT &&value)
void SetCacheConfig(CacheConfigT &&value)
void SetComputeRoleArn(ComputeRoleArnT &&value)
const Aws::String & GetAccessToken() const
UpdateAppRequest & WithPlatform(Platform value)
const Aws::Vector< CustomRule > & GetCustomRules() const
UpdateAppRequest & WithIamServiceRoleArn(IamServiceRoleArnT &&value)
UpdateAppRequest & WithEnableAutoBranchCreation(bool value)
AWS_AMPLIFY_API Aws::String SerializePayload() const override
void SetBasicAuthCredentials(BasicAuthCredentialsT &&value)
const Aws::String & GetAppId() const
AWS_AMPLIFY_API UpdateAppRequest()=default
UpdateAppRequest & AddEnvironmentVariables(EnvironmentVariablesKeyT &&key, EnvironmentVariablesValueT &&value)
UpdateAppRequest & WithAutoBranchCreationPatterns(AutoBranchCreationPatternsT &&value)
const Aws::String & GetDescription() const
UpdateAppRequest & WithAutoBranchCreationConfig(AutoBranchCreationConfigT &&value)
virtual const char * GetServiceRequestName() const override
UpdateAppRequest & WithCacheConfig(CacheConfigT &&value)
void SetAutoBranchCreationPatterns(AutoBranchCreationPatternsT &&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