AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
UpdateEnvironmentRequest.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3Request.h>
8#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
9#include <aws/amplifygen3/model/EnvironmentRolePermissionMode.h>
10#include <aws/amplifygen3/model/EnvironmentUpdateBackendRequest.h>
11#include <aws/amplifygen3/model/EnvironmentUpdateNetworkConfigRequest.h>
12#include <aws/amplifygen3/model/EnvironmentUpdateSourceConfigRequest.h>
13#include <aws/amplifygen3/model/EnvironmentUpdateWebConfigRequest.h>
14#include <aws/amplifygen3/model/GradualRolloutConfig.h>
15#include <aws/amplifygen3/model/WafLogConfigRequest.h>
16#include <aws/core/utils/memory/stl/AWSString.h>
17#include <aws/core/utils/memory/stl/AWSVector.h>
18
19#include <utility>
20
21namespace Aws {
22namespace AmplifyGen3 {
23namespace Model {
24
28 public:
29 AWS_AMPLIFYGEN3_API UpdateEnvironmentRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "UpdateEnvironment"; }
36
37 AWS_AMPLIFYGEN3_API Aws::String SerializePayload() const override;
38
40
43 inline const Aws::String& GetAppName() const { return m_appName; }
44 inline bool AppNameHasBeenSet() const { return m_appNameHasBeenSet; }
45 template <typename AppNameT = Aws::String>
46 void SetAppName(AppNameT&& value) {
47 m_appNameHasBeenSet = true;
48 m_appName = std::forward<AppNameT>(value);
49 }
50 template <typename AppNameT = Aws::String>
52 SetAppName(std::forward<AppNameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
62 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
63 template <typename EnvironmentNameT = Aws::String>
64 void SetEnvironmentName(EnvironmentNameT&& value) {
65 m_environmentNameHasBeenSet = true;
66 m_environmentName = std::forward<EnvironmentNameT>(value);
67 }
68 template <typename EnvironmentNameT = Aws::String>
69 UpdateEnvironmentRequest& WithEnvironmentName(EnvironmentNameT&& value) {
70 SetEnvironmentName(std::forward<EnvironmentNameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetEnvironmentRoleArn() const { return m_environmentRoleArn; }
80 inline bool EnvironmentRoleArnHasBeenSet() const { return m_environmentRoleArnHasBeenSet; }
81 template <typename EnvironmentRoleArnT = Aws::String>
82 void SetEnvironmentRoleArn(EnvironmentRoleArnT&& value) {
83 m_environmentRoleArnHasBeenSet = true;
84 m_environmentRoleArn = std::forward<EnvironmentRoleArnT>(value);
85 }
86 template <typename EnvironmentRoleArnT = Aws::String>
87 UpdateEnvironmentRequest& WithEnvironmentRoleArn(EnvironmentRoleArnT&& value) {
88 SetEnvironmentRoleArn(std::forward<EnvironmentRoleArnT>(value));
89 return *this;
90 }
92
94
97 inline EnvironmentRolePermissionMode GetEnvironmentRolePermissionMode() const { return m_environmentRolePermissionMode; }
98 inline bool EnvironmentRolePermissionModeHasBeenSet() const { return m_environmentRolePermissionModeHasBeenSet; }
100 m_environmentRolePermissionModeHasBeenSet = true;
101 m_environmentRolePermissionMode = value;
102 }
108
110
113 inline const EnvironmentUpdateSourceConfigRequest& GetSourceConfig() const { return m_sourceConfig; }
114 inline bool SourceConfigHasBeenSet() const { return m_sourceConfigHasBeenSet; }
115 template <typename SourceConfigT = EnvironmentUpdateSourceConfigRequest>
116 void SetSourceConfig(SourceConfigT&& value) {
117 m_sourceConfigHasBeenSet = true;
118 m_sourceConfig = std::forward<SourceConfigT>(value);
119 }
120 template <typename SourceConfigT = EnvironmentUpdateSourceConfigRequest>
122 SetSourceConfig(std::forward<SourceConfigT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::Vector<WafLogConfigRequest>& GetWafLogConfigs() const { return m_wafLogConfigs; }
132 inline bool WafLogConfigsHasBeenSet() const { return m_wafLogConfigsHasBeenSet; }
133 template <typename WafLogConfigsT = Aws::Vector<WafLogConfigRequest>>
134 void SetWafLogConfigs(WafLogConfigsT&& value) {
135 m_wafLogConfigsHasBeenSet = true;
136 m_wafLogConfigs = std::forward<WafLogConfigsT>(value);
137 }
138 template <typename WafLogConfigsT = Aws::Vector<WafLogConfigRequest>>
140 SetWafLogConfigs(std::forward<WafLogConfigsT>(value));
141 return *this;
142 }
143 template <typename WafLogConfigsT = WafLogConfigRequest>
145 m_wafLogConfigsHasBeenSet = true;
146 m_wafLogConfigs.emplace_back(std::forward<WafLogConfigsT>(value));
147 return *this;
148 }
150
152
155 inline const GradualRolloutConfig& GetGradualRolloutConfig() const { return m_gradualRolloutConfig; }
156 inline bool GradualRolloutConfigHasBeenSet() const { return m_gradualRolloutConfigHasBeenSet; }
157 template <typename GradualRolloutConfigT = GradualRolloutConfig>
158 void SetGradualRolloutConfig(GradualRolloutConfigT&& value) {
159 m_gradualRolloutConfigHasBeenSet = true;
160 m_gradualRolloutConfig = std::forward<GradualRolloutConfigT>(value);
161 }
162 template <typename GradualRolloutConfigT = GradualRolloutConfig>
163 UpdateEnvironmentRequest& WithGradualRolloutConfig(GradualRolloutConfigT&& value) {
164 SetGradualRolloutConfig(std::forward<GradualRolloutConfigT>(value));
165 return *this;
166 }
168
170
173 inline const EnvironmentUpdateWebConfigRequest& GetWeb() const { return m_web; }
174 inline bool WebHasBeenSet() const { return m_webHasBeenSet; }
175 template <typename WebT = EnvironmentUpdateWebConfigRequest>
176 void SetWeb(WebT&& value) {
177 m_webHasBeenSet = true;
178 m_web = std::forward<WebT>(value);
179 }
180 template <typename WebT = EnvironmentUpdateWebConfigRequest>
182 SetWeb(std::forward<WebT>(value));
183 return *this;
184 }
186
188
194 inline const EnvironmentUpdateBackendRequest& GetBackend() const { return m_backend; }
195 inline bool BackendHasBeenSet() const { return m_backendHasBeenSet; }
196 template <typename BackendT = EnvironmentUpdateBackendRequest>
197 void SetBackend(BackendT&& value) {
198 m_backendHasBeenSet = true;
199 m_backend = std::forward<BackendT>(value);
200 }
201 template <typename BackendT = EnvironmentUpdateBackendRequest>
203 SetBackend(std::forward<BackendT>(value));
204 return *this;
205 }
207
209
212 inline const EnvironmentUpdateNetworkConfigRequest& GetNetworkConfig() const { return m_networkConfig; }
213 inline bool NetworkConfigHasBeenSet() const { return m_networkConfigHasBeenSet; }
214 template <typename NetworkConfigT = EnvironmentUpdateNetworkConfigRequest>
215 void SetNetworkConfig(NetworkConfigT&& value) {
216 m_networkConfigHasBeenSet = true;
217 m_networkConfig = std::forward<NetworkConfigT>(value);
218 }
219 template <typename NetworkConfigT = EnvironmentUpdateNetworkConfigRequest>
221 SetNetworkConfig(std::forward<NetworkConfigT>(value));
222 return *this;
223 }
225 private:
226 Aws::String m_appName;
227
228 Aws::String m_environmentName;
229
230 Aws::String m_environmentRoleArn;
231
233
234 EnvironmentUpdateSourceConfigRequest m_sourceConfig;
235
236 Aws::Vector<WafLogConfigRequest> m_wafLogConfigs;
237
238 GradualRolloutConfig m_gradualRolloutConfig;
239
240 EnvironmentUpdateWebConfigRequest m_web;
241
242 EnvironmentUpdateBackendRequest m_backend;
243
244 EnvironmentUpdateNetworkConfigRequest m_networkConfig;
245 bool m_appNameHasBeenSet = false;
246 bool m_environmentNameHasBeenSet = false;
247 bool m_environmentRoleArnHasBeenSet = false;
248 bool m_environmentRolePermissionModeHasBeenSet = false;
249 bool m_sourceConfigHasBeenSet = false;
250 bool m_wafLogConfigsHasBeenSet = false;
251 bool m_gradualRolloutConfigHasBeenSet = false;
252 bool m_webHasBeenSet = false;
253 bool m_backendHasBeenSet = false;
254 bool m_networkConfigHasBeenSet = false;
255};
256
257} // namespace Model
258} // namespace AmplifyGen3
259} // namespace Aws
const EnvironmentUpdateBackendRequest & GetBackend() const
const Aws::Vector< WafLogConfigRequest > & GetWafLogConfigs() const
const EnvironmentUpdateWebConfigRequest & GetWeb() const
UpdateEnvironmentRequest & WithBackend(BackendT &&value)
AWS_AMPLIFYGEN3_API Aws::String SerializePayload() const override
void SetEnvironmentRolePermissionMode(EnvironmentRolePermissionMode value)
const EnvironmentUpdateSourceConfigRequest & GetSourceConfig() const
EnvironmentRolePermissionMode GetEnvironmentRolePermissionMode() const
virtual const char * GetServiceRequestName() const override
UpdateEnvironmentRequest & WithGradualRolloutConfig(GradualRolloutConfigT &&value)
UpdateEnvironmentRequest & WithSourceConfig(SourceConfigT &&value)
UpdateEnvironmentRequest & WithEnvironmentRolePermissionMode(EnvironmentRolePermissionMode value)
UpdateEnvironmentRequest & WithWeb(WebT &&value)
UpdateEnvironmentRequest & WithEnvironmentName(EnvironmentNameT &&value)
UpdateEnvironmentRequest & WithNetworkConfig(NetworkConfigT &&value)
UpdateEnvironmentRequest & WithWafLogConfigs(WafLogConfigsT &&value)
AWS_AMPLIFYGEN3_API UpdateEnvironmentRequest()=default
UpdateEnvironmentRequest & AddWafLogConfigs(WafLogConfigsT &&value)
const GradualRolloutConfig & GetGradualRolloutConfig() const
void SetGradualRolloutConfig(GradualRolloutConfigT &&value)
const EnvironmentUpdateNetworkConfigRequest & GetNetworkConfig() const
UpdateEnvironmentRequest & WithAppName(AppNameT &&value)
UpdateEnvironmentRequest & WithEnvironmentRoleArn(EnvironmentRoleArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector