AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateAppRequest.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 CreateAppRequest() = 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 "CreateApp"; }
42
43 AWS_AMPLIFY_API Aws::String SerializePayload() const override;
44
45
47
50 inline const Aws::String& GetName() const { return m_name; }
51 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 template<typename NameT = Aws::String>
53 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
54 template<typename NameT = Aws::String>
55 CreateAppRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
57
59
62 inline const Aws::String& GetDescription() const { return m_description; }
63 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
64 template<typename DescriptionT = Aws::String>
65 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
66 template<typename DescriptionT = Aws::String>
67 CreateAppRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
69
71
74 inline const Aws::String& GetRepository() const { return m_repository; }
75 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
76 template<typename RepositoryT = Aws::String>
77 void SetRepository(RepositoryT&& value) { m_repositoryHasBeenSet = true; m_repository = std::forward<RepositoryT>(value); }
78 template<typename RepositoryT = Aws::String>
79 CreateAppRequest& WithRepository(RepositoryT&& value) { SetRepository(std::forward<RepositoryT>(value)); return *this;}
81
83
97 inline Platform GetPlatform() const { return m_platform; }
98 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
99 inline void SetPlatform(Platform value) { m_platformHasBeenSet = true; m_platform = value; }
100 inline CreateAppRequest& WithPlatform(Platform value) { SetPlatform(value); return *this;}
102
104
112 inline const Aws::String& GetComputeRoleArn() const { return m_computeRoleArn; }
113 inline bool ComputeRoleArnHasBeenSet() const { return m_computeRoleArnHasBeenSet; }
114 template<typename ComputeRoleArnT = Aws::String>
115 void SetComputeRoleArn(ComputeRoleArnT&& value) { m_computeRoleArnHasBeenSet = true; m_computeRoleArn = std::forward<ComputeRoleArnT>(value); }
116 template<typename ComputeRoleArnT = Aws::String>
117 CreateAppRequest& WithComputeRoleArn(ComputeRoleArnT&& value) { SetComputeRoleArn(std::forward<ComputeRoleArnT>(value)); return *this;}
119
121
125 inline const Aws::String& GetIamServiceRoleArn() const { return m_iamServiceRoleArn; }
126 inline bool IamServiceRoleArnHasBeenSet() const { return m_iamServiceRoleArnHasBeenSet; }
127 template<typename IamServiceRoleArnT = Aws::String>
128 void SetIamServiceRoleArn(IamServiceRoleArnT&& value) { m_iamServiceRoleArnHasBeenSet = true; m_iamServiceRoleArn = std::forward<IamServiceRoleArnT>(value); }
129 template<typename IamServiceRoleArnT = Aws::String>
130 CreateAppRequest& WithIamServiceRoleArn(IamServiceRoleArnT&& value) { SetIamServiceRoleArn(std::forward<IamServiceRoleArnT>(value)); return *this;}
132
134
149 inline const Aws::String& GetOauthToken() const { return m_oauthToken; }
150 inline bool OauthTokenHasBeenSet() const { return m_oauthTokenHasBeenSet; }
151 template<typename OauthTokenT = Aws::String>
152 void SetOauthToken(OauthTokenT&& value) { m_oauthTokenHasBeenSet = true; m_oauthToken = std::forward<OauthTokenT>(value); }
153 template<typename OauthTokenT = Aws::String>
154 CreateAppRequest& WithOauthToken(OauthTokenT&& value) { SetOauthToken(std::forward<OauthTokenT>(value)); return *this;}
156
158
173 inline const Aws::String& GetAccessToken() const { return m_accessToken; }
174 inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; }
175 template<typename AccessTokenT = Aws::String>
176 void SetAccessToken(AccessTokenT&& value) { m_accessTokenHasBeenSet = true; m_accessToken = std::forward<AccessTokenT>(value); }
177 template<typename AccessTokenT = Aws::String>
178 CreateAppRequest& WithAccessToken(AccessTokenT&& value) { SetAccessToken(std::forward<AccessTokenT>(value)); return *this;}
180
182
188 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironmentVariables() const { return m_environmentVariables; }
189 inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; }
190 template<typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
191 void SetEnvironmentVariables(EnvironmentVariablesT&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables = std::forward<EnvironmentVariablesT>(value); }
192 template<typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
193 CreateAppRequest& WithEnvironmentVariables(EnvironmentVariablesT&& value) { SetEnvironmentVariables(std::forward<EnvironmentVariablesT>(value)); return *this;}
194 template<typename EnvironmentVariablesKeyT = Aws::String, typename EnvironmentVariablesValueT = Aws::String>
195 CreateAppRequest& AddEnvironmentVariables(EnvironmentVariablesKeyT&& key, EnvironmentVariablesValueT&& value) {
196 m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(std::forward<EnvironmentVariablesKeyT>(key), std::forward<EnvironmentVariablesValueT>(value)); return *this;
197 }
199
201
204 inline bool GetEnableBranchAutoBuild() const { return m_enableBranchAutoBuild; }
205 inline bool EnableBranchAutoBuildHasBeenSet() const { return m_enableBranchAutoBuildHasBeenSet; }
206 inline void SetEnableBranchAutoBuild(bool value) { m_enableBranchAutoBuildHasBeenSet = true; m_enableBranchAutoBuild = value; }
207 inline CreateAppRequest& WithEnableBranchAutoBuild(bool value) { SetEnableBranchAutoBuild(value); return *this;}
209
211
215 inline bool GetEnableBranchAutoDeletion() const { return m_enableBranchAutoDeletion; }
216 inline bool EnableBranchAutoDeletionHasBeenSet() const { return m_enableBranchAutoDeletionHasBeenSet; }
217 inline void SetEnableBranchAutoDeletion(bool value) { m_enableBranchAutoDeletionHasBeenSet = true; m_enableBranchAutoDeletion = value; }
220
222
226 inline bool GetEnableBasicAuth() const { return m_enableBasicAuth; }
227 inline bool EnableBasicAuthHasBeenSet() const { return m_enableBasicAuthHasBeenSet; }
228 inline void SetEnableBasicAuth(bool value) { m_enableBasicAuthHasBeenSet = true; m_enableBasicAuth = value; }
229 inline CreateAppRequest& WithEnableBasicAuth(bool value) { SetEnableBasicAuth(value); return *this;}
231
233
238 inline const Aws::String& GetBasicAuthCredentials() const { return m_basicAuthCredentials; }
239 inline bool BasicAuthCredentialsHasBeenSet() const { return m_basicAuthCredentialsHasBeenSet; }
240 template<typename BasicAuthCredentialsT = Aws::String>
241 void SetBasicAuthCredentials(BasicAuthCredentialsT&& value) { m_basicAuthCredentialsHasBeenSet = true; m_basicAuthCredentials = std::forward<BasicAuthCredentialsT>(value); }
242 template<typename BasicAuthCredentialsT = Aws::String>
243 CreateAppRequest& WithBasicAuthCredentials(BasicAuthCredentialsT&& value) { SetBasicAuthCredentials(std::forward<BasicAuthCredentialsT>(value)); return *this;}
245
247
250 inline const Aws::Vector<CustomRule>& GetCustomRules() const { return m_customRules; }
251 inline bool CustomRulesHasBeenSet() const { return m_customRulesHasBeenSet; }
252 template<typename CustomRulesT = Aws::Vector<CustomRule>>
253 void SetCustomRules(CustomRulesT&& value) { m_customRulesHasBeenSet = true; m_customRules = std::forward<CustomRulesT>(value); }
254 template<typename CustomRulesT = Aws::Vector<CustomRule>>
255 CreateAppRequest& WithCustomRules(CustomRulesT&& value) { SetCustomRules(std::forward<CustomRulesT>(value)); return *this;}
256 template<typename CustomRulesT = CustomRule>
257 CreateAppRequest& AddCustomRules(CustomRulesT&& value) { m_customRulesHasBeenSet = true; m_customRules.emplace_back(std::forward<CustomRulesT>(value)); return *this; }
259
261
264 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
265 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
266 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
267 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
268 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
269 CreateAppRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
270 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
271 CreateAppRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
272 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
273 }
275
277
280 inline const Aws::String& GetBuildSpec() const { return m_buildSpec; }
281 inline bool BuildSpecHasBeenSet() const { return m_buildSpecHasBeenSet; }
282 template<typename BuildSpecT = Aws::String>
283 void SetBuildSpec(BuildSpecT&& value) { m_buildSpecHasBeenSet = true; m_buildSpec = std::forward<BuildSpecT>(value); }
284 template<typename BuildSpecT = Aws::String>
285 CreateAppRequest& WithBuildSpec(BuildSpecT&& value) { SetBuildSpec(std::forward<BuildSpecT>(value)); return *this;}
287
289
292 inline const Aws::String& GetCustomHeaders() const { return m_customHeaders; }
293 inline bool CustomHeadersHasBeenSet() const { return m_customHeadersHasBeenSet; }
294 template<typename CustomHeadersT = Aws::String>
295 void SetCustomHeaders(CustomHeadersT&& value) { m_customHeadersHasBeenSet = true; m_customHeaders = std::forward<CustomHeadersT>(value); }
296 template<typename CustomHeadersT = Aws::String>
297 CreateAppRequest& WithCustomHeaders(CustomHeadersT&& value) { SetCustomHeaders(std::forward<CustomHeadersT>(value)); return *this;}
299
301
304 inline bool GetEnableAutoBranchCreation() const { return m_enableAutoBranchCreation; }
305 inline bool EnableAutoBranchCreationHasBeenSet() const { return m_enableAutoBranchCreationHasBeenSet; }
306 inline void SetEnableAutoBranchCreation(bool value) { m_enableAutoBranchCreationHasBeenSet = true; m_enableAutoBranchCreation = value; }
309
311
314 inline const Aws::Vector<Aws::String>& GetAutoBranchCreationPatterns() const { return m_autoBranchCreationPatterns; }
315 inline bool AutoBranchCreationPatternsHasBeenSet() const { return m_autoBranchCreationPatternsHasBeenSet; }
316 template<typename AutoBranchCreationPatternsT = Aws::Vector<Aws::String>>
317 void SetAutoBranchCreationPatterns(AutoBranchCreationPatternsT&& value) { m_autoBranchCreationPatternsHasBeenSet = true; m_autoBranchCreationPatterns = std::forward<AutoBranchCreationPatternsT>(value); }
318 template<typename AutoBranchCreationPatternsT = Aws::Vector<Aws::String>>
319 CreateAppRequest& WithAutoBranchCreationPatterns(AutoBranchCreationPatternsT&& value) { SetAutoBranchCreationPatterns(std::forward<AutoBranchCreationPatternsT>(value)); return *this;}
320 template<typename AutoBranchCreationPatternsT = Aws::String>
321 CreateAppRequest& AddAutoBranchCreationPatterns(AutoBranchCreationPatternsT&& value) { m_autoBranchCreationPatternsHasBeenSet = true; m_autoBranchCreationPatterns.emplace_back(std::forward<AutoBranchCreationPatternsT>(value)); return *this; }
323
325
328 inline const AutoBranchCreationConfig& GetAutoBranchCreationConfig() const { return m_autoBranchCreationConfig; }
329 inline bool AutoBranchCreationConfigHasBeenSet() const { return m_autoBranchCreationConfigHasBeenSet; }
330 template<typename AutoBranchCreationConfigT = AutoBranchCreationConfig>
331 void SetAutoBranchCreationConfig(AutoBranchCreationConfigT&& value) { m_autoBranchCreationConfigHasBeenSet = true; m_autoBranchCreationConfig = std::forward<AutoBranchCreationConfigT>(value); }
332 template<typename AutoBranchCreationConfigT = AutoBranchCreationConfig>
333 CreateAppRequest& WithAutoBranchCreationConfig(AutoBranchCreationConfigT&& value) { SetAutoBranchCreationConfig(std::forward<AutoBranchCreationConfigT>(value)); return *this;}
335
337
341 inline const JobConfig& GetJobConfig() const { return m_jobConfig; }
342 inline bool JobConfigHasBeenSet() const { return m_jobConfigHasBeenSet; }
343 template<typename JobConfigT = JobConfig>
344 void SetJobConfig(JobConfigT&& value) { m_jobConfigHasBeenSet = true; m_jobConfig = std::forward<JobConfigT>(value); }
345 template<typename JobConfigT = JobConfig>
346 CreateAppRequest& WithJobConfig(JobConfigT&& value) { SetJobConfig(std::forward<JobConfigT>(value)); return *this;}
348
350
353 inline const CacheConfig& GetCacheConfig() const { return m_cacheConfig; }
354 inline bool CacheConfigHasBeenSet() const { return m_cacheConfigHasBeenSet; }
355 template<typename CacheConfigT = CacheConfig>
356 void SetCacheConfig(CacheConfigT&& value) { m_cacheConfigHasBeenSet = true; m_cacheConfig = std::forward<CacheConfigT>(value); }
357 template<typename CacheConfigT = CacheConfig>
358 CreateAppRequest& WithCacheConfig(CacheConfigT&& value) { SetCacheConfig(std::forward<CacheConfigT>(value)); return *this;}
360 private:
361
362 Aws::String m_name;
363 bool m_nameHasBeenSet = false;
364
365 Aws::String m_description;
366 bool m_descriptionHasBeenSet = false;
367
368 Aws::String m_repository;
369 bool m_repositoryHasBeenSet = false;
370
371 Platform m_platform{Platform::NOT_SET};
372 bool m_platformHasBeenSet = false;
373
374 Aws::String m_computeRoleArn;
375 bool m_computeRoleArnHasBeenSet = false;
376
377 Aws::String m_iamServiceRoleArn;
378 bool m_iamServiceRoleArnHasBeenSet = false;
379
380 Aws::String m_oauthToken;
381 bool m_oauthTokenHasBeenSet = false;
382
383 Aws::String m_accessToken;
384 bool m_accessTokenHasBeenSet = false;
385
386 Aws::Map<Aws::String, Aws::String> m_environmentVariables;
387 bool m_environmentVariablesHasBeenSet = false;
388
389 bool m_enableBranchAutoBuild{false};
390 bool m_enableBranchAutoBuildHasBeenSet = false;
391
392 bool m_enableBranchAutoDeletion{false};
393 bool m_enableBranchAutoDeletionHasBeenSet = false;
394
395 bool m_enableBasicAuth{false};
396 bool m_enableBasicAuthHasBeenSet = false;
397
398 Aws::String m_basicAuthCredentials;
399 bool m_basicAuthCredentialsHasBeenSet = false;
400
401 Aws::Vector<CustomRule> m_customRules;
402 bool m_customRulesHasBeenSet = false;
403
405 bool m_tagsHasBeenSet = false;
406
407 Aws::String m_buildSpec;
408 bool m_buildSpecHasBeenSet = false;
409
410 Aws::String m_customHeaders;
411 bool m_customHeadersHasBeenSet = false;
412
413 bool m_enableAutoBranchCreation{false};
414 bool m_enableAutoBranchCreationHasBeenSet = false;
415
416 Aws::Vector<Aws::String> m_autoBranchCreationPatterns;
417 bool m_autoBranchCreationPatternsHasBeenSet = false;
418
419 AutoBranchCreationConfig m_autoBranchCreationConfig;
420 bool m_autoBranchCreationConfigHasBeenSet = false;
421
422 JobConfig m_jobConfig;
423 bool m_jobConfigHasBeenSet = false;
424
425 CacheConfig m_cacheConfig;
426 bool m_cacheConfigHasBeenSet = false;
427 };
428
429} // namespace Model
430} // namespace Amplify
431} // namespace Aws
void SetIamServiceRoleArn(IamServiceRoleArnT &&value)
CreateAppRequest & WithBuildSpec(BuildSpecT &&value)
CreateAppRequest & WithCustomRules(CustomRulesT &&value)
const Aws::String & GetCustomHeaders() const
CreateAppRequest & AddAutoBranchCreationPatterns(AutoBranchCreationPatternsT &&value)
const Aws::String & GetComputeRoleArn() const
const AutoBranchCreationConfig & GetAutoBranchCreationConfig() const
CreateAppRequest & AddEnvironmentVariables(EnvironmentVariablesKeyT &&key, EnvironmentVariablesValueT &&value)
CreateAppRequest & WithTags(TagsT &&value)
void SetEnvironmentVariables(EnvironmentVariablesT &&value)
virtual const char * GetServiceRequestName() const override
CreateAppRequest & WithJobConfig(JobConfigT &&value)
const CacheConfig & GetCacheConfig() const
CreateAppRequest & WithAutoBranchCreationConfig(AutoBranchCreationConfigT &&value)
void SetCacheConfig(CacheConfigT &&value)
const Aws::Map< Aws::String, Aws::String > & GetEnvironmentVariables() const
CreateAppRequest & WithEnableAutoBranchCreation(bool value)
const Aws::String & GetBuildSpec() const
void SetAccessToken(AccessTokenT &&value)
CreateAppRequest & WithEnableBranchAutoBuild(bool value)
CreateAppRequest & WithDescription(DescriptionT &&value)
AWS_AMPLIFY_API CreateAppRequest()=default
CreateAppRequest & WithComputeRoleArn(ComputeRoleArnT &&value)
void SetCustomHeaders(CustomHeadersT &&value)
const Aws::String & GetRepository() const
const Aws::Vector< CustomRule > & GetCustomRules() const
const Aws::String & GetDescription() const
void SetAutoBranchCreationPatterns(AutoBranchCreationPatternsT &&value)
void SetRepository(RepositoryT &&value)
void SetBasicAuthCredentials(BasicAuthCredentialsT &&value)
void SetDescription(DescriptionT &&value)
const Aws::String & GetOauthToken() const
CreateAppRequest & WithBasicAuthCredentials(BasicAuthCredentialsT &&value)
CreateAppRequest & WithIamServiceRoleArn(IamServiceRoleArnT &&value)
void SetComputeRoleArn(ComputeRoleArnT &&value)
void SetOauthToken(OauthTokenT &&value)
CreateAppRequest & WithPlatform(Platform value)
const Aws::String & GetIamServiceRoleArn() const
AWS_AMPLIFY_API Aws::String SerializePayload() const override
void SetAutoBranchCreationConfig(AutoBranchCreationConfigT &&value)
const Aws::String & GetAccessToken() const
void SetCustomRules(CustomRulesT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateAppRequest & WithOauthToken(OauthTokenT &&value)
CreateAppRequest & WithCacheConfig(CacheConfigT &&value)
const Aws::String & GetBasicAuthCredentials() const
CreateAppRequest & WithEnableBranchAutoDeletion(bool value)
CreateAppRequest & WithEnableBasicAuth(bool value)
CreateAppRequest & WithAccessToken(AccessTokenT &&value)
CreateAppRequest & WithCustomHeaders(CustomHeadersT &&value)
CreateAppRequest & WithRepository(RepositoryT &&value)
CreateAppRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateAppRequest & WithName(NameT &&value)
CreateAppRequest & WithEnvironmentVariables(EnvironmentVariablesT &&value)
CreateAppRequest & AddCustomRules(CustomRulesT &&value)
const JobConfig & GetJobConfig() const
CreateAppRequest & WithAutoBranchCreationPatterns(AutoBranchCreationPatternsT &&value)
const Aws::Vector< Aws::String > & GetAutoBranchCreationPatterns() const
const Aws::String & GetName() const
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