AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
GetEnvironmentResult.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
8#include <aws/amplifygen3/model/EnvironmentBackend.h>
9#include <aws/amplifygen3/model/EnvironmentNetworkConfig.h>
10#include <aws/amplifygen3/model/EnvironmentRolePermissionMode.h>
11#include <aws/amplifygen3/model/EnvironmentSourceConfig.h>
12#include <aws/amplifygen3/model/EnvironmentType.h>
13#include <aws/amplifygen3/model/EnvironmentWebConfig.h>
14#include <aws/amplifygen3/model/GradualRolloutConfig.h>
15#include <aws/amplifygen3/model/WafLogConfig.h>
16#include <aws/core/http/HttpResponse.h>
17#include <aws/core/utils/DateTime.h>
18#include <aws/core/utils/memory/stl/AWSString.h>
19#include <aws/core/utils/memory/stl/AWSVector.h>
20
21#include <utility>
22
23namespace Aws {
24template <typename RESULT_TYPE>
25class AmazonWebServiceResult;
26
27namespace Utils {
28namespace Json {
29class JsonValue;
30} // namespace Json
31} // namespace Utils
32namespace AmplifyGen3 {
33namespace Model {
35 public:
36 AWS_AMPLIFYGEN3_API GetEnvironmentResult() = default;
39
41
44 inline const Aws::String& GetAppName() const { return m_appName; }
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>
51 GetEnvironmentResult& WithAppName(AppNameT&& value) {
52 SetAppName(std::forward<AppNameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
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 GetEnvironmentResult& WithEnvironmentName(EnvironmentNameT&& value) {
69 SetEnvironmentName(std::forward<EnvironmentNameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetEnvironmentArn() const { return m_environmentArn; }
79 template <typename EnvironmentArnT = Aws::String>
80 void SetEnvironmentArn(EnvironmentArnT&& value) {
81 m_environmentArnHasBeenSet = true;
82 m_environmentArn = std::forward<EnvironmentArnT>(value);
83 }
84 template <typename EnvironmentArnT = Aws::String>
85 GetEnvironmentResult& WithEnvironmentArn(EnvironmentArnT&& value) {
86 SetEnvironmentArn(std::forward<EnvironmentArnT>(value));
87 return *this;
88 }
90
92
95 inline EnvironmentType GetType() const { return m_type; }
96 inline void SetType(EnvironmentType value) {
97 m_typeHasBeenSet = true;
98 m_type = value;
99 }
101 SetType(value);
102 return *this;
103 }
105
107
110 inline const Aws::String& GetEnvironmentRoleArn() const { return m_environmentRoleArn; }
111 template <typename EnvironmentRoleArnT = Aws::String>
112 void SetEnvironmentRoleArn(EnvironmentRoleArnT&& value) {
113 m_environmentRoleArnHasBeenSet = true;
114 m_environmentRoleArn = std::forward<EnvironmentRoleArnT>(value);
115 }
116 template <typename EnvironmentRoleArnT = Aws::String>
117 GetEnvironmentResult& WithEnvironmentRoleArn(EnvironmentRoleArnT&& value) {
118 SetEnvironmentRoleArn(std::forward<EnvironmentRoleArnT>(value));
119 return *this;
120 }
122
124
127 inline EnvironmentRolePermissionMode GetEnvironmentRolePermissionMode() const { return m_environmentRolePermissionMode; }
129 m_environmentRolePermissionModeHasBeenSet = true;
130 m_environmentRolePermissionMode = value;
131 }
137
139
142 inline const EnvironmentSourceConfig& GetSourceConfig() const { return m_sourceConfig; }
143 template <typename SourceConfigT = EnvironmentSourceConfig>
144 void SetSourceConfig(SourceConfigT&& value) {
145 m_sourceConfigHasBeenSet = true;
146 m_sourceConfig = std::forward<SourceConfigT>(value);
147 }
148 template <typename SourceConfigT = EnvironmentSourceConfig>
149 GetEnvironmentResult& WithSourceConfig(SourceConfigT&& value) {
150 SetSourceConfig(std::forward<SourceConfigT>(value));
151 return *this;
152 }
154
156
160 inline const Aws::Vector<WafLogConfig>& GetWafLogConfigs() const { return m_wafLogConfigs; }
161 template <typename WafLogConfigsT = Aws::Vector<WafLogConfig>>
162 void SetWafLogConfigs(WafLogConfigsT&& value) {
163 m_wafLogConfigsHasBeenSet = true;
164 m_wafLogConfigs = std::forward<WafLogConfigsT>(value);
165 }
166 template <typename WafLogConfigsT = Aws::Vector<WafLogConfig>>
167 GetEnvironmentResult& WithWafLogConfigs(WafLogConfigsT&& value) {
168 SetWafLogConfigs(std::forward<WafLogConfigsT>(value));
169 return *this;
170 }
171 template <typename WafLogConfigsT = WafLogConfig>
172 GetEnvironmentResult& AddWafLogConfigs(WafLogConfigsT&& value) {
173 m_wafLogConfigsHasBeenSet = true;
174 m_wafLogConfigs.emplace_back(std::forward<WafLogConfigsT>(value));
175 return *this;
176 }
178
180
183 inline const GradualRolloutConfig& GetGradualRolloutConfig() const { return m_gradualRolloutConfig; }
184 template <typename GradualRolloutConfigT = GradualRolloutConfig>
185 void SetGradualRolloutConfig(GradualRolloutConfigT&& value) {
186 m_gradualRolloutConfigHasBeenSet = true;
187 m_gradualRolloutConfig = std::forward<GradualRolloutConfigT>(value);
188 }
189 template <typename GradualRolloutConfigT = GradualRolloutConfig>
190 GetEnvironmentResult& WithGradualRolloutConfig(GradualRolloutConfigT&& value) {
191 SetGradualRolloutConfig(std::forward<GradualRolloutConfigT>(value));
192 return *this;
193 }
195
197
200 inline const EnvironmentWebConfig& GetWeb() const { return m_web; }
201 template <typename WebT = EnvironmentWebConfig>
202 void SetWeb(WebT&& value) {
203 m_webHasBeenSet = true;
204 m_web = std::forward<WebT>(value);
205 }
206 template <typename WebT = EnvironmentWebConfig>
208 SetWeb(std::forward<WebT>(value));
209 return *this;
210 }
212
214
218 inline const EnvironmentBackend& GetBackend() const { return m_backend; }
219 template <typename BackendT = EnvironmentBackend>
220 void SetBackend(BackendT&& value) {
221 m_backendHasBeenSet = true;
222 m_backend = std::forward<BackendT>(value);
223 }
224 template <typename BackendT = EnvironmentBackend>
226 SetBackend(std::forward<BackendT>(value));
227 return *this;
228 }
230
232
235 inline const EnvironmentNetworkConfig& GetNetworkConfig() const { return m_networkConfig; }
236 template <typename NetworkConfigT = EnvironmentNetworkConfig>
237 void SetNetworkConfig(NetworkConfigT&& value) {
238 m_networkConfigHasBeenSet = true;
239 m_networkConfig = std::forward<NetworkConfigT>(value);
240 }
241 template <typename NetworkConfigT = EnvironmentNetworkConfig>
242 GetEnvironmentResult& WithNetworkConfig(NetworkConfigT&& value) {
243 SetNetworkConfig(std::forward<NetworkConfigT>(value));
244 return *this;
245 }
247
249
253 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
254 template <typename CreatedAtT = Aws::Utils::DateTime>
255 void SetCreatedAt(CreatedAtT&& value) {
256 m_createdAtHasBeenSet = true;
257 m_createdAt = std::forward<CreatedAtT>(value);
258 }
259 template <typename CreatedAtT = Aws::Utils::DateTime>
260 GetEnvironmentResult& WithCreatedAt(CreatedAtT&& value) {
261 SetCreatedAt(std::forward<CreatedAtT>(value));
262 return *this;
263 }
265
267
271 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
272 template <typename UpdatedAtT = Aws::Utils::DateTime>
273 void SetUpdatedAt(UpdatedAtT&& value) {
274 m_updatedAtHasBeenSet = true;
275 m_updatedAt = std::forward<UpdatedAtT>(value);
276 }
277 template <typename UpdatedAtT = Aws::Utils::DateTime>
278 GetEnvironmentResult& WithUpdatedAt(UpdatedAtT&& value) {
279 SetUpdatedAt(std::forward<UpdatedAtT>(value));
280 return *this;
281 }
283
285
286 inline const Aws::String& GetRequestId() const { return m_requestId; }
287 template <typename RequestIdT = Aws::String>
288 void SetRequestId(RequestIdT&& value) {
289 m_requestIdHasBeenSet = true;
290 m_requestId = std::forward<RequestIdT>(value);
291 }
292 template <typename RequestIdT = Aws::String>
293 GetEnvironmentResult& WithRequestId(RequestIdT&& value) {
294 SetRequestId(std::forward<RequestIdT>(value));
295 return *this;
296 }
298 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
299
300 private:
301 Aws::String m_appName;
302
303 Aws::String m_environmentName;
304
305 Aws::String m_environmentArn;
306
308
309 Aws::String m_environmentRoleArn;
310
312
313 EnvironmentSourceConfig m_sourceConfig;
314
315 Aws::Vector<WafLogConfig> m_wafLogConfigs;
316
317 GradualRolloutConfig m_gradualRolloutConfig;
318
319 EnvironmentWebConfig m_web;
320
321 EnvironmentBackend m_backend;
322
323 EnvironmentNetworkConfig m_networkConfig;
324
325 Aws::Utils::DateTime m_createdAt{};
326
327 Aws::Utils::DateTime m_updatedAt{};
328
329 Aws::String m_requestId;
330 Aws::Http::HttpResponseCode m_HttpResponseCode;
331 bool m_appNameHasBeenSet = false;
332 bool m_environmentNameHasBeenSet = false;
333 bool m_environmentArnHasBeenSet = false;
334 bool m_typeHasBeenSet = false;
335 bool m_environmentRoleArnHasBeenSet = false;
336 bool m_environmentRolePermissionModeHasBeenSet = false;
337 bool m_sourceConfigHasBeenSet = false;
338 bool m_wafLogConfigsHasBeenSet = false;
339 bool m_gradualRolloutConfigHasBeenSet = false;
340 bool m_webHasBeenSet = false;
341 bool m_backendHasBeenSet = false;
342 bool m_networkConfigHasBeenSet = false;
343 bool m_createdAtHasBeenSet = false;
344 bool m_updatedAtHasBeenSet = false;
345 bool m_requestIdHasBeenSet = false;
346};
347
348} // namespace Model
349} // namespace AmplifyGen3
350} // namespace Aws
GetEnvironmentResult & WithUpdatedAt(UpdatedAtT &&value)
AWS_AMPLIFYGEN3_API GetEnvironmentResult()=default
void SetEnvironmentName(EnvironmentNameT &&value)
GetEnvironmentResult & WithBackend(BackendT &&value)
GetEnvironmentResult & WithEnvironmentArn(EnvironmentArnT &&value)
GetEnvironmentResult & WithAppName(AppNameT &&value)
GetEnvironmentResult & AddWafLogConfigs(WafLogConfigsT &&value)
GetEnvironmentResult & WithNetworkConfig(NetworkConfigT &&value)
const Aws::Vector< WafLogConfig > & GetWafLogConfigs() const
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::Utils::DateTime & GetUpdatedAt() const
const EnvironmentSourceConfig & GetSourceConfig() const
const EnvironmentNetworkConfig & GetNetworkConfig() const
void SetEnvironmentRoleArn(EnvironmentRoleArnT &&value)
AWS_AMPLIFYGEN3_API GetEnvironmentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetEnvironmentResult & WithWeb(WebT &&value)
GetEnvironmentResult & WithWafLogConfigs(WafLogConfigsT &&value)
GetEnvironmentResult & WithCreatedAt(CreatedAtT &&value)
GetEnvironmentResult & WithRequestId(RequestIdT &&value)
GetEnvironmentResult & WithEnvironmentRolePermissionMode(EnvironmentRolePermissionMode value)
const EnvironmentWebConfig & GetWeb() const
const GradualRolloutConfig & GetGradualRolloutConfig() const
void SetGradualRolloutConfig(GradualRolloutConfigT &&value)
const EnvironmentBackend & GetBackend() const
GetEnvironmentResult & WithType(EnvironmentType value)
AWS_AMPLIFYGEN3_API GetEnvironmentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetEnvironmentResult & WithGradualRolloutConfig(GradualRolloutConfigT &&value)
EnvironmentRolePermissionMode GetEnvironmentRolePermissionMode() const
GetEnvironmentResult & WithEnvironmentName(EnvironmentNameT &&value)
GetEnvironmentResult & WithEnvironmentRoleArn(EnvironmentRoleArnT &&value)
GetEnvironmentResult & WithSourceConfig(SourceConfigT &&value)
void SetEnvironmentRolePermissionMode(EnvironmentRolePermissionMode value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue