AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
CreateEnvironmentRequest.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3Request.h>
8#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
9#include <aws/amplifygen3/model/EnvironmentBackendConfigRequest.h>
10#include <aws/amplifygen3/model/EnvironmentNetworkConfigRequest.h>
11#include <aws/amplifygen3/model/EnvironmentRolePermissionMode.h>
12#include <aws/amplifygen3/model/EnvironmentSourceConfigRequest.h>
13#include <aws/amplifygen3/model/EnvironmentWebConfigRequest.h>
14#include <aws/amplifygen3/model/GradualRolloutConfig.h>
15#include <aws/core/utils/memory/stl/AWSMap.h>
16#include <aws/core/utils/memory/stl/AWSString.h>
17
18#include <utility>
19
20namespace Aws {
21namespace AmplifyGen3 {
22namespace Model {
23
27 public:
28 AWS_AMPLIFYGEN3_API CreateEnvironmentRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateEnvironment"; }
35
36 AWS_AMPLIFYGEN3_API Aws::String SerializePayload() const override;
37
39
42 inline const Aws::String& GetAppName() const { return m_appName; }
43 inline bool AppNameHasBeenSet() const { return m_appNameHasBeenSet; }
44 template <typename AppNameT = Aws::String>
45 void SetAppName(AppNameT&& value) {
46 m_appNameHasBeenSet = true;
47 m_appName = std::forward<AppNameT>(value);
48 }
49 template <typename AppNameT = Aws::String>
51 SetAppName(std::forward<AppNameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
61 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
62 template <typename EnvironmentNameT = Aws::String>
63 void SetEnvironmentName(EnvironmentNameT&& value) {
64 m_environmentNameHasBeenSet = true;
65 m_environmentName = std::forward<EnvironmentNameT>(value);
66 }
67 template <typename EnvironmentNameT = Aws::String>
68 CreateEnvironmentRequest& WithEnvironmentName(EnvironmentNameT&& value) {
69 SetEnvironmentName(std::forward<EnvironmentNameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetEnvironmentRoleArn() const { return m_environmentRoleArn; }
79 inline bool EnvironmentRoleArnHasBeenSet() const { return m_environmentRoleArnHasBeenSet; }
80 template <typename EnvironmentRoleArnT = Aws::String>
81 void SetEnvironmentRoleArn(EnvironmentRoleArnT&& value) {
82 m_environmentRoleArnHasBeenSet = true;
83 m_environmentRoleArn = std::forward<EnvironmentRoleArnT>(value);
84 }
85 template <typename EnvironmentRoleArnT = Aws::String>
86 CreateEnvironmentRequest& WithEnvironmentRoleArn(EnvironmentRoleArnT&& value) {
87 SetEnvironmentRoleArn(std::forward<EnvironmentRoleArnT>(value));
88 return *this;
89 }
91
93
96 inline EnvironmentRolePermissionMode GetEnvironmentRolePermissionMode() const { return m_environmentRolePermissionMode; }
97 inline bool EnvironmentRolePermissionModeHasBeenSet() const { return m_environmentRolePermissionModeHasBeenSet; }
99 m_environmentRolePermissionModeHasBeenSet = true;
100 m_environmentRolePermissionMode = value;
101 }
107
109
112 inline const EnvironmentSourceConfigRequest& GetSourceConfig() const { return m_sourceConfig; }
113 inline bool SourceConfigHasBeenSet() const { return m_sourceConfigHasBeenSet; }
114 template <typename SourceConfigT = EnvironmentSourceConfigRequest>
115 void SetSourceConfig(SourceConfigT&& value) {
116 m_sourceConfigHasBeenSet = true;
117 m_sourceConfig = std::forward<SourceConfigT>(value);
118 }
119 template <typename SourceConfigT = EnvironmentSourceConfigRequest>
121 SetSourceConfig(std::forward<SourceConfigT>(value));
122 return *this;
123 }
125
127
130 inline const GradualRolloutConfig& GetGradualRolloutConfig() const { return m_gradualRolloutConfig; }
131 inline bool GradualRolloutConfigHasBeenSet() const { return m_gradualRolloutConfigHasBeenSet; }
132 template <typename GradualRolloutConfigT = GradualRolloutConfig>
133 void SetGradualRolloutConfig(GradualRolloutConfigT&& value) {
134 m_gradualRolloutConfigHasBeenSet = true;
135 m_gradualRolloutConfig = std::forward<GradualRolloutConfigT>(value);
136 }
137 template <typename GradualRolloutConfigT = GradualRolloutConfig>
138 CreateEnvironmentRequest& WithGradualRolloutConfig(GradualRolloutConfigT&& value) {
139 SetGradualRolloutConfig(std::forward<GradualRolloutConfigT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
149 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
150 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
151 void SetTags(TagsT&& value) {
152 m_tagsHasBeenSet = true;
153 m_tags = std::forward<TagsT>(value);
154 }
155 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
157 SetTags(std::forward<TagsT>(value));
158 return *this;
159 }
160 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
161 CreateEnvironmentRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
162 m_tagsHasBeenSet = true;
163 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
164 return *this;
165 }
167
169
172 inline const EnvironmentWebConfigRequest& GetWeb() const { return m_web; }
173 inline bool WebHasBeenSet() const { return m_webHasBeenSet; }
174 template <typename WebT = EnvironmentWebConfigRequest>
175 void SetWeb(WebT&& value) {
176 m_webHasBeenSet = true;
177 m_web = std::forward<WebT>(value);
178 }
179 template <typename WebT = EnvironmentWebConfigRequest>
181 SetWeb(std::forward<WebT>(value));
182 return *this;
183 }
185
187
190 inline const EnvironmentNetworkConfigRequest& GetNetworkConfig() const { return m_networkConfig; }
191 inline bool NetworkConfigHasBeenSet() const { return m_networkConfigHasBeenSet; }
192 template <typename NetworkConfigT = EnvironmentNetworkConfigRequest>
193 void SetNetworkConfig(NetworkConfigT&& value) {
194 m_networkConfigHasBeenSet = true;
195 m_networkConfig = std::forward<NetworkConfigT>(value);
196 }
197 template <typename NetworkConfigT = EnvironmentNetworkConfigRequest>
199 SetNetworkConfig(std::forward<NetworkConfigT>(value));
200 return *this;
201 }
203
205
210 inline const EnvironmentBackendConfigRequest& GetBackend() const { return m_backend; }
211 inline bool BackendHasBeenSet() const { return m_backendHasBeenSet; }
212 template <typename BackendT = EnvironmentBackendConfigRequest>
213 void SetBackend(BackendT&& value) {
214 m_backendHasBeenSet = true;
215 m_backend = std::forward<BackendT>(value);
216 }
217 template <typename BackendT = EnvironmentBackendConfigRequest>
219 SetBackend(std::forward<BackendT>(value));
220 return *this;
221 }
223 private:
224 Aws::String m_appName;
225
226 Aws::String m_environmentName;
227
228 Aws::String m_environmentRoleArn;
229
231
232 EnvironmentSourceConfigRequest m_sourceConfig;
233
234 GradualRolloutConfig m_gradualRolloutConfig;
235
237
238 EnvironmentWebConfigRequest m_web;
239
240 EnvironmentNetworkConfigRequest m_networkConfig;
241
242 EnvironmentBackendConfigRequest m_backend;
243 bool m_appNameHasBeenSet = false;
244 bool m_environmentNameHasBeenSet = false;
245 bool m_environmentRoleArnHasBeenSet = false;
246 bool m_environmentRolePermissionModeHasBeenSet = false;
247 bool m_sourceConfigHasBeenSet = false;
248 bool m_gradualRolloutConfigHasBeenSet = false;
249 bool m_tagsHasBeenSet = false;
250 bool m_webHasBeenSet = false;
251 bool m_networkConfigHasBeenSet = false;
252 bool m_backendHasBeenSet = false;
253};
254
255} // namespace Model
256} // namespace AmplifyGen3
257} // namespace Aws
EnvironmentRolePermissionMode GetEnvironmentRolePermissionMode() const
CreateEnvironmentRequest & WithNetworkConfig(NetworkConfigT &&value)
const GradualRolloutConfig & GetGradualRolloutConfig() const
const EnvironmentNetworkConfigRequest & GetNetworkConfig() const
CreateEnvironmentRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
virtual const char * GetServiceRequestName() const override
AWS_AMPLIFYGEN3_API Aws::String SerializePayload() const override
CreateEnvironmentRequest & WithBackend(BackendT &&value)
CreateEnvironmentRequest & WithEnvironmentRolePermissionMode(EnvironmentRolePermissionMode value)
void SetEnvironmentRolePermissionMode(EnvironmentRolePermissionMode value)
const EnvironmentBackendConfigRequest & GetBackend() const
const EnvironmentWebConfigRequest & GetWeb() const
CreateEnvironmentRequest & WithGradualRolloutConfig(GradualRolloutConfigT &&value)
AWS_AMPLIFYGEN3_API CreateEnvironmentRequest()=default
CreateEnvironmentRequest & WithAppName(AppNameT &&value)
CreateEnvironmentRequest & WithTags(TagsT &&value)
CreateEnvironmentRequest & WithEnvironmentName(EnvironmentNameT &&value)
CreateEnvironmentRequest & WithEnvironmentRoleArn(EnvironmentRoleArnT &&value)
CreateEnvironmentRequest & WithWeb(WebT &&value)
void SetGradualRolloutConfig(GradualRolloutConfigT &&value)
CreateEnvironmentRequest & WithSourceConfig(SourceConfigT &&value)
const EnvironmentSourceConfigRequest & GetSourceConfig() const
const Aws::Map< Aws::String, Aws::String > & GetTags() 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