AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
CreateAppRequest.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3Request.h>
8#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
9#include <aws/amplifygen3/model/AppBackendRequest.h>
10#include <aws/amplifygen3/model/AppSourceConfigRequest.h>
11#include <aws/amplifygen3/model/AppWebConfigRequest.h>
12#include <aws/amplifygen3/model/DefaultEnvironmentConfiguration.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20namespace AmplifyGen3 {
21namespace Model {
22
26 public:
27 AWS_AMPLIFYGEN3_API CreateAppRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateApp"; }
34
35 AWS_AMPLIFYGEN3_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetAppName() const { return m_appName; }
42 inline bool AppNameHasBeenSet() const { return m_appNameHasBeenSet; }
43 template <typename AppNameT = Aws::String>
44 void SetAppName(AppNameT&& value) {
45 m_appNameHasBeenSet = true;
46 m_appName = std::forward<AppNameT>(value);
47 }
48 template <typename AppNameT = Aws::String>
49 CreateAppRequest& WithAppName(AppNameT&& value) {
50 SetAppName(std::forward<AppNameT>(value));
51 return *this;
52 }
54
56
59 inline const AppSourceConfigRequest& GetSourceConfig() const { return m_sourceConfig; }
60 inline bool SourceConfigHasBeenSet() const { return m_sourceConfigHasBeenSet; }
61 template <typename SourceConfigT = AppSourceConfigRequest>
62 void SetSourceConfig(SourceConfigT&& value) {
63 m_sourceConfigHasBeenSet = true;
64 m_sourceConfig = std::forward<SourceConfigT>(value);
65 }
66 template <typename SourceConfigT = AppSourceConfigRequest>
67 CreateAppRequest& WithSourceConfig(SourceConfigT&& value) {
68 SetSourceConfig(std::forward<SourceConfigT>(value));
69 return *this;
70 }
72
74
77 inline const AppWebConfigRequest& GetWeb() const { return m_web; }
78 inline bool WebHasBeenSet() const { return m_webHasBeenSet; }
79 template <typename WebT = AppWebConfigRequest>
80 void SetWeb(WebT&& value) {
81 m_webHasBeenSet = true;
82 m_web = std::forward<WebT>(value);
83 }
84 template <typename WebT = AppWebConfigRequest>
85 CreateAppRequest& WithWeb(WebT&& value) {
86 SetWeb(std::forward<WebT>(value));
87 return *this;
88 }
90
92
95 inline const AppBackendRequest& GetBackend() const { return m_backend; }
96 inline bool BackendHasBeenSet() const { return m_backendHasBeenSet; }
97 template <typename BackendT = AppBackendRequest>
98 void SetBackend(BackendT&& value) {
99 m_backendHasBeenSet = true;
100 m_backend = std::forward<BackendT>(value);
101 }
102 template <typename BackendT = AppBackendRequest>
103 CreateAppRequest& WithBackend(BackendT&& value) {
104 SetBackend(std::forward<BackendT>(value));
105 return *this;
106 }
108
110
115 return m_defaultEnvironmentsConfiguration;
116 }
117 inline bool DefaultEnvironmentsConfigurationHasBeenSet() const { return m_defaultEnvironmentsConfigurationHasBeenSet; }
118 template <typename DefaultEnvironmentsConfigurationT = Aws::Vector<DefaultEnvironmentConfiguration>>
119 void SetDefaultEnvironmentsConfiguration(DefaultEnvironmentsConfigurationT&& value) {
120 m_defaultEnvironmentsConfigurationHasBeenSet = true;
121 m_defaultEnvironmentsConfiguration = std::forward<DefaultEnvironmentsConfigurationT>(value);
122 }
123 template <typename DefaultEnvironmentsConfigurationT = Aws::Vector<DefaultEnvironmentConfiguration>>
124 CreateAppRequest& WithDefaultEnvironmentsConfiguration(DefaultEnvironmentsConfigurationT&& value) {
125 SetDefaultEnvironmentsConfiguration(std::forward<DefaultEnvironmentsConfigurationT>(value));
126 return *this;
127 }
128 template <typename DefaultEnvironmentsConfigurationT = DefaultEnvironmentConfiguration>
129 CreateAppRequest& AddDefaultEnvironmentsConfiguration(DefaultEnvironmentsConfigurationT&& value) {
130 m_defaultEnvironmentsConfigurationHasBeenSet = true;
131 m_defaultEnvironmentsConfiguration.emplace_back(std::forward<DefaultEnvironmentsConfigurationT>(value));
132 return *this;
133 }
135
137
140 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
141 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
142 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
143 void SetTags(TagsT&& value) {
144 m_tagsHasBeenSet = true;
145 m_tags = std::forward<TagsT>(value);
146 }
147 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
148 CreateAppRequest& WithTags(TagsT&& value) {
149 SetTags(std::forward<TagsT>(value));
150 return *this;
151 }
152 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
153 CreateAppRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
154 m_tagsHasBeenSet = true;
155 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
156 return *this;
157 }
159 private:
160 Aws::String m_appName;
161
162 AppSourceConfigRequest m_sourceConfig;
163
165
166 AppBackendRequest m_backend;
167
168 Aws::Vector<DefaultEnvironmentConfiguration> m_defaultEnvironmentsConfiguration;
169
171 bool m_appNameHasBeenSet = false;
172 bool m_sourceConfigHasBeenSet = false;
173 bool m_webHasBeenSet = false;
174 bool m_backendHasBeenSet = false;
175 bool m_defaultEnvironmentsConfigurationHasBeenSet = false;
176 bool m_tagsHasBeenSet = false;
177};
178
179} // namespace Model
180} // namespace AmplifyGen3
181} // namespace Aws
CreateAppRequest & WithSourceConfig(SourceConfigT &&value)
const Aws::Vector< DefaultEnvironmentConfiguration > & GetDefaultEnvironmentsConfiguration() const
CreateAppRequest & WithTags(TagsT &&value)
const AppBackendRequest & GetBackend() const
AWS_AMPLIFYGEN3_API Aws::String SerializePayload() const override
CreateAppRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateAppRequest & WithDefaultEnvironmentsConfiguration(DefaultEnvironmentsConfigurationT &&value)
void SetSourceConfig(SourceConfigT &&value)
CreateAppRequest & WithWeb(WebT &&value)
const AppWebConfigRequest & GetWeb() const
CreateAppRequest & WithAppName(AppNameT &&value)
virtual const char * GetServiceRequestName() const override
CreateAppRequest & AddDefaultEnvironmentsConfiguration(DefaultEnvironmentsConfigurationT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_AMPLIFYGEN3_API CreateAppRequest()=default
const AppSourceConfigRequest & GetSourceConfig() const
void SetDefaultEnvironmentsConfiguration(DefaultEnvironmentsConfigurationT &&value)
CreateAppRequest & WithBackend(BackendT &&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