AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
GetDeploymentResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/network-security-manager/NetworkSecurityManager_EXPORTS.h>
12#include <aws/network-security-manager/model/AssociatedPolicy.h>
13#include <aws/network-security-manager/model/AssociatedScope.h>
14#include <aws/network-security-manager/model/DeploymentConfiguration.h>
15#include <aws/network-security-manager/model/DeploymentCoverageEntry.h>
16#include <aws/network-security-manager/model/DeploymentWarningEntry.h>
17#include <aws/network-security-manager/model/EntityStatus.h>
18
19#include <utility>
20
21namespace Aws {
22template <typename RESULT_TYPE>
23class AmazonWebServiceResult;
24
25namespace Utils {
26namespace Json {
27class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace NetworkSecurityManager {
31namespace Model {
33 public:
34 AWS_NETWORKSECURITYMANAGER_API GetDeploymentResult() = default;
37
39
42 inline const Aws::String& GetDeploymentId() const { return m_deploymentId; }
43 template <typename DeploymentIdT = Aws::String>
44 void SetDeploymentId(DeploymentIdT&& value) {
45 m_deploymentIdHasBeenSet = true;
46 m_deploymentId = std::forward<DeploymentIdT>(value);
47 }
48 template <typename DeploymentIdT = Aws::String>
49 GetDeploymentResult& WithDeploymentId(DeploymentIdT&& value) {
50 SetDeploymentId(std::forward<DeploymentIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDeploymentArn() const { return m_deploymentArn; }
60 template <typename DeploymentArnT = Aws::String>
61 void SetDeploymentArn(DeploymentArnT&& value) {
62 m_deploymentArnHasBeenSet = true;
63 m_deploymentArn = std::forward<DeploymentArnT>(value);
64 }
65 template <typename DeploymentArnT = Aws::String>
66 GetDeploymentResult& WithDeploymentArn(DeploymentArnT&& value) {
67 SetDeploymentArn(std::forward<DeploymentArnT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDeploymentName() const { return m_deploymentName; }
77 template <typename DeploymentNameT = Aws::String>
78 void SetDeploymentName(DeploymentNameT&& value) {
79 m_deploymentNameHasBeenSet = true;
80 m_deploymentName = std::forward<DeploymentNameT>(value);
81 }
82 template <typename DeploymentNameT = Aws::String>
83 GetDeploymentResult& WithDeploymentName(DeploymentNameT&& value) {
84 SetDeploymentName(std::forward<DeploymentNameT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetDeploymentDescription() const { return m_deploymentDescription; }
94 template <typename DeploymentDescriptionT = Aws::String>
95 void SetDeploymentDescription(DeploymentDescriptionT&& value) {
96 m_deploymentDescriptionHasBeenSet = true;
97 m_deploymentDescription = std::forward<DeploymentDescriptionT>(value);
98 }
99 template <typename DeploymentDescriptionT = Aws::String>
100 GetDeploymentResult& WithDeploymentDescription(DeploymentDescriptionT&& value) {
101 SetDeploymentDescription(std::forward<DeploymentDescriptionT>(value));
102 return *this;
103 }
105
107
112 inline EntityStatus GetStatus() const { return m_status; }
113 inline void SetStatus(EntityStatus value) {
114 m_statusHasBeenSet = true;
115 m_status = value;
116 }
118 SetStatus(value);
119 return *this;
120 }
122
124
127 inline const DeploymentConfiguration& GetDeploymentConfiguration() const { return m_deploymentConfiguration; }
128 template <typename DeploymentConfigurationT = DeploymentConfiguration>
129 void SetDeploymentConfiguration(DeploymentConfigurationT&& value) {
130 m_deploymentConfigurationHasBeenSet = true;
131 m_deploymentConfiguration = std::forward<DeploymentConfigurationT>(value);
132 }
133 template <typename DeploymentConfigurationT = DeploymentConfiguration>
134 GetDeploymentResult& WithDeploymentConfiguration(DeploymentConfigurationT&& value) {
135 SetDeploymentConfiguration(std::forward<DeploymentConfigurationT>(value));
136 return *this;
137 }
139
141
144 inline const Aws::Vector<AssociatedPolicy>& GetAssociatedPolicyList() const { return m_associatedPolicyList; }
145 template <typename AssociatedPolicyListT = Aws::Vector<AssociatedPolicy>>
146 void SetAssociatedPolicyList(AssociatedPolicyListT&& value) {
147 m_associatedPolicyListHasBeenSet = true;
148 m_associatedPolicyList = std::forward<AssociatedPolicyListT>(value);
149 }
150 template <typename AssociatedPolicyListT = Aws::Vector<AssociatedPolicy>>
151 GetDeploymentResult& WithAssociatedPolicyList(AssociatedPolicyListT&& value) {
152 SetAssociatedPolicyList(std::forward<AssociatedPolicyListT>(value));
153 return *this;
154 }
155 template <typename AssociatedPolicyListT = AssociatedPolicy>
156 GetDeploymentResult& AddAssociatedPolicyList(AssociatedPolicyListT&& value) {
157 m_associatedPolicyListHasBeenSet = true;
158 m_associatedPolicyList.emplace_back(std::forward<AssociatedPolicyListT>(value));
159 return *this;
160 }
162
164
168 inline const Aws::Vector<AssociatedScope>& GetAssociatedScopeList() const { return m_associatedScopeList; }
169 template <typename AssociatedScopeListT = Aws::Vector<AssociatedScope>>
170 void SetAssociatedScopeList(AssociatedScopeListT&& value) {
171 m_associatedScopeListHasBeenSet = true;
172 m_associatedScopeList = std::forward<AssociatedScopeListT>(value);
173 }
174 template <typename AssociatedScopeListT = Aws::Vector<AssociatedScope>>
175 GetDeploymentResult& WithAssociatedScopeList(AssociatedScopeListT&& value) {
176 SetAssociatedScopeList(std::forward<AssociatedScopeListT>(value));
177 return *this;
178 }
179 template <typename AssociatedScopeListT = AssociatedScope>
180 GetDeploymentResult& AddAssociatedScopeList(AssociatedScopeListT&& value) {
181 m_associatedScopeListHasBeenSet = true;
182 m_associatedScopeList.emplace_back(std::forward<AssociatedScopeListT>(value));
183 return *this;
184 }
186
188
191 inline const Aws::String& GetVersion() const { return m_version; }
192 template <typename VersionT = Aws::String>
193 void SetVersion(VersionT&& value) {
194 m_versionHasBeenSet = true;
195 m_version = std::forward<VersionT>(value);
196 }
197 template <typename VersionT = Aws::String>
198 GetDeploymentResult& WithVersion(VersionT&& value) {
199 SetVersion(std::forward<VersionT>(value));
200 return *this;
201 }
203
205
210 inline const Aws::String& GetUpdateToken() const { return m_updateToken; }
211 template <typename UpdateTokenT = Aws::String>
212 void SetUpdateToken(UpdateTokenT&& value) {
213 m_updateTokenHasBeenSet = true;
214 m_updateToken = std::forward<UpdateTokenT>(value);
215 }
216 template <typename UpdateTokenT = Aws::String>
217 GetDeploymentResult& WithUpdateToken(UpdateTokenT&& value) {
218 SetUpdateToken(std::forward<UpdateTokenT>(value));
219 return *this;
220 }
222
224
227 inline bool GetIsSnapshot() const { return m_isSnapshot; }
228 inline void SetIsSnapshot(bool value) {
229 m_isSnapshotHasBeenSet = true;
230 m_isSnapshot = value;
231 }
233 SetIsSnapshot(value);
234 return *this;
235 }
237
239
242 inline bool GetHasPublishedVersion() const { return m_hasPublishedVersion; }
243 inline void SetHasPublishedVersion(bool value) {
244 m_hasPublishedVersionHasBeenSet = true;
245 m_hasPublishedVersion = value;
246 }
249 return *this;
250 }
252
254
257 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
258 template <typename UpdatedAtT = Aws::Utils::DateTime>
259 void SetUpdatedAt(UpdatedAtT&& value) {
260 m_updatedAtHasBeenSet = true;
261 m_updatedAt = std::forward<UpdatedAtT>(value);
262 }
263 template <typename UpdatedAtT = Aws::Utils::DateTime>
264 GetDeploymentResult& WithUpdatedAt(UpdatedAtT&& value) {
265 SetUpdatedAt(std::forward<UpdatedAtT>(value));
266 return *this;
267 }
269
271
276 inline const Aws::Vector<DeploymentCoverageEntry>& GetDeploymentCoverage() const { return m_deploymentCoverage; }
277 template <typename DeploymentCoverageT = Aws::Vector<DeploymentCoverageEntry>>
278 void SetDeploymentCoverage(DeploymentCoverageT&& value) {
279 m_deploymentCoverageHasBeenSet = true;
280 m_deploymentCoverage = std::forward<DeploymentCoverageT>(value);
281 }
282 template <typename DeploymentCoverageT = Aws::Vector<DeploymentCoverageEntry>>
283 GetDeploymentResult& WithDeploymentCoverage(DeploymentCoverageT&& value) {
284 SetDeploymentCoverage(std::forward<DeploymentCoverageT>(value));
285 return *this;
286 }
287 template <typename DeploymentCoverageT = DeploymentCoverageEntry>
288 GetDeploymentResult& AddDeploymentCoverage(DeploymentCoverageT&& value) {
289 m_deploymentCoverageHasBeenSet = true;
290 m_deploymentCoverage.emplace_back(std::forward<DeploymentCoverageT>(value));
291 return *this;
292 }
294
296
300 inline const Aws::Vector<DeploymentWarningEntry>& GetWarnings() const { return m_warnings; }
301 template <typename WarningsT = Aws::Vector<DeploymentWarningEntry>>
302 void SetWarnings(WarningsT&& value) {
303 m_warningsHasBeenSet = true;
304 m_warnings = std::forward<WarningsT>(value);
305 }
306 template <typename WarningsT = Aws::Vector<DeploymentWarningEntry>>
307 GetDeploymentResult& WithWarnings(WarningsT&& value) {
308 SetWarnings(std::forward<WarningsT>(value));
309 return *this;
310 }
311 template <typename WarningsT = DeploymentWarningEntry>
312 GetDeploymentResult& AddWarnings(WarningsT&& value) {
313 m_warningsHasBeenSet = true;
314 m_warnings.emplace_back(std::forward<WarningsT>(value));
315 return *this;
316 }
318
320
321 inline const Aws::String& GetRequestId() const { return m_requestId; }
322 template <typename RequestIdT = Aws::String>
323 void SetRequestId(RequestIdT&& value) {
324 m_requestIdHasBeenSet = true;
325 m_requestId = std::forward<RequestIdT>(value);
326 }
327 template <typename RequestIdT = Aws::String>
328 GetDeploymentResult& WithRequestId(RequestIdT&& value) {
329 SetRequestId(std::forward<RequestIdT>(value));
330 return *this;
331 }
333 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
334
335 private:
336 Aws::String m_deploymentId;
337
338 Aws::String m_deploymentArn;
339
340 Aws::String m_deploymentName;
341
342 Aws::String m_deploymentDescription;
343
345
346 DeploymentConfiguration m_deploymentConfiguration;
347
348 Aws::Vector<AssociatedPolicy> m_associatedPolicyList;
349
350 Aws::Vector<AssociatedScope> m_associatedScopeList;
351
352 Aws::String m_version;
353
354 Aws::String m_updateToken;
355
356 bool m_isSnapshot{false};
357
358 bool m_hasPublishedVersion{false};
359
360 Aws::Utils::DateTime m_updatedAt{};
361
362 Aws::Vector<DeploymentCoverageEntry> m_deploymentCoverage;
363
365
366 Aws::String m_requestId;
367 Aws::Http::HttpResponseCode m_HttpResponseCode;
368 bool m_deploymentIdHasBeenSet = false;
369 bool m_deploymentArnHasBeenSet = false;
370 bool m_deploymentNameHasBeenSet = false;
371 bool m_deploymentDescriptionHasBeenSet = false;
372 bool m_statusHasBeenSet = false;
373 bool m_deploymentConfigurationHasBeenSet = false;
374 bool m_associatedPolicyListHasBeenSet = false;
375 bool m_associatedScopeListHasBeenSet = false;
376 bool m_versionHasBeenSet = false;
377 bool m_updateTokenHasBeenSet = false;
378 bool m_isSnapshotHasBeenSet = false;
379 bool m_hasPublishedVersionHasBeenSet = false;
380 bool m_updatedAtHasBeenSet = false;
381 bool m_deploymentCoverageHasBeenSet = false;
382 bool m_warningsHasBeenSet = false;
383 bool m_requestIdHasBeenSet = false;
384};
385
386} // namespace Model
387} // namespace NetworkSecurityManager
388} // namespace Aws
GetDeploymentResult & WithAssociatedPolicyList(AssociatedPolicyListT &&value)
AWS_NETWORKSECURITYMANAGER_API GetDeploymentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDeploymentResult & AddDeploymentCoverage(DeploymentCoverageT &&value)
GetDeploymentResult & WithVersion(VersionT &&value)
AWS_NETWORKSECURITYMANAGER_API GetDeploymentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< AssociatedScope > & GetAssociatedScopeList() const
void SetDeploymentConfiguration(DeploymentConfigurationT &&value)
GetDeploymentResult & WithWarnings(WarningsT &&value)
const DeploymentConfiguration & GetDeploymentConfiguration() const
void SetAssociatedPolicyList(AssociatedPolicyListT &&value)
GetDeploymentResult & WithDeploymentConfiguration(DeploymentConfigurationT &&value)
const Aws::Vector< AssociatedPolicy > & GetAssociatedPolicyList() const
GetDeploymentResult & WithDeploymentId(DeploymentIdT &&value)
const Aws::Vector< DeploymentWarningEntry > & GetWarnings() const
const Aws::Vector< DeploymentCoverageEntry > & GetDeploymentCoverage() const
GetDeploymentResult & WithDeploymentName(DeploymentNameT &&value)
GetDeploymentResult & AddAssociatedPolicyList(AssociatedPolicyListT &&value)
GetDeploymentResult & WithDeploymentCoverage(DeploymentCoverageT &&value)
GetDeploymentResult & WithDeploymentArn(DeploymentArnT &&value)
GetDeploymentResult & WithAssociatedScopeList(AssociatedScopeListT &&value)
GetDeploymentResult & WithUpdateToken(UpdateTokenT &&value)
AWS_NETWORKSECURITYMANAGER_API GetDeploymentResult()=default
void SetDeploymentDescription(DeploymentDescriptionT &&value)
GetDeploymentResult & WithRequestId(RequestIdT &&value)
GetDeploymentResult & WithStatus(EntityStatus value)
GetDeploymentResult & AddAssociatedScopeList(AssociatedScopeListT &&value)
GetDeploymentResult & WithDeploymentDescription(DeploymentDescriptionT &&value)
GetDeploymentResult & WithUpdatedAt(UpdatedAtT &&value)
GetDeploymentResult & AddWarnings(WarningsT &&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