AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
CreateDeploymentResult.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 CreateDeploymentResult() = 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 CreateDeploymentResult& 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 CreateDeploymentResult& 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 CreateDeploymentResult& 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 CreateDeploymentResult& WithDeploymentDescription(DeploymentDescriptionT&& value) {
101 SetDeploymentDescription(std::forward<DeploymentDescriptionT>(value));
102 return *this;
103 }
105
107
111 inline EntityStatus GetStatus() const { return m_status; }
112 inline void SetStatus(EntityStatus value) {
113 m_statusHasBeenSet = true;
114 m_status = value;
115 }
117 SetStatus(value);
118 return *this;
119 }
121
123
126 inline const DeploymentConfiguration& GetDeploymentConfiguration() const { return m_deploymentConfiguration; }
127 template <typename DeploymentConfigurationT = DeploymentConfiguration>
128 void SetDeploymentConfiguration(DeploymentConfigurationT&& value) {
129 m_deploymentConfigurationHasBeenSet = true;
130 m_deploymentConfiguration = std::forward<DeploymentConfigurationT>(value);
131 }
132 template <typename DeploymentConfigurationT = DeploymentConfiguration>
133 CreateDeploymentResult& WithDeploymentConfiguration(DeploymentConfigurationT&& value) {
134 SetDeploymentConfiguration(std::forward<DeploymentConfigurationT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::Vector<AssociatedPolicy>& GetAssociatedPolicyList() const { return m_associatedPolicyList; }
144 template <typename AssociatedPolicyListT = Aws::Vector<AssociatedPolicy>>
145 void SetAssociatedPolicyList(AssociatedPolicyListT&& value) {
146 m_associatedPolicyListHasBeenSet = true;
147 m_associatedPolicyList = std::forward<AssociatedPolicyListT>(value);
148 }
149 template <typename AssociatedPolicyListT = Aws::Vector<AssociatedPolicy>>
150 CreateDeploymentResult& WithAssociatedPolicyList(AssociatedPolicyListT&& value) {
151 SetAssociatedPolicyList(std::forward<AssociatedPolicyListT>(value));
152 return *this;
153 }
154 template <typename AssociatedPolicyListT = AssociatedPolicy>
155 CreateDeploymentResult& AddAssociatedPolicyList(AssociatedPolicyListT&& value) {
156 m_associatedPolicyListHasBeenSet = true;
157 m_associatedPolicyList.emplace_back(std::forward<AssociatedPolicyListT>(value));
158 return *this;
159 }
161
163
167 inline const Aws::Vector<AssociatedScope>& GetAssociatedScopeList() const { return m_associatedScopeList; }
168 template <typename AssociatedScopeListT = Aws::Vector<AssociatedScope>>
169 void SetAssociatedScopeList(AssociatedScopeListT&& value) {
170 m_associatedScopeListHasBeenSet = true;
171 m_associatedScopeList = std::forward<AssociatedScopeListT>(value);
172 }
173 template <typename AssociatedScopeListT = Aws::Vector<AssociatedScope>>
174 CreateDeploymentResult& WithAssociatedScopeList(AssociatedScopeListT&& value) {
175 SetAssociatedScopeList(std::forward<AssociatedScopeListT>(value));
176 return *this;
177 }
178 template <typename AssociatedScopeListT = AssociatedScope>
179 CreateDeploymentResult& AddAssociatedScopeList(AssociatedScopeListT&& value) {
180 m_associatedScopeListHasBeenSet = true;
181 m_associatedScopeList.emplace_back(std::forward<AssociatedScopeListT>(value));
182 return *this;
183 }
185
187
190 inline const Aws::String& GetVersion() const { return m_version; }
191 template <typename VersionT = Aws::String>
192 void SetVersion(VersionT&& value) {
193 m_versionHasBeenSet = true;
194 m_version = std::forward<VersionT>(value);
195 }
196 template <typename VersionT = Aws::String>
198 SetVersion(std::forward<VersionT>(value));
199 return *this;
200 }
202
204
209 inline const Aws::String& GetUpdateToken() const { return m_updateToken; }
210 template <typename UpdateTokenT = Aws::String>
211 void SetUpdateToken(UpdateTokenT&& value) {
212 m_updateTokenHasBeenSet = true;
213 m_updateToken = std::forward<UpdateTokenT>(value);
214 }
215 template <typename UpdateTokenT = Aws::String>
217 SetUpdateToken(std::forward<UpdateTokenT>(value));
218 return *this;
219 }
221
223
226 inline bool GetIsSnapshot() const { return m_isSnapshot; }
227 inline void SetIsSnapshot(bool value) {
228 m_isSnapshotHasBeenSet = true;
229 m_isSnapshot = value;
230 }
232 SetIsSnapshot(value);
233 return *this;
234 }
236
238
241 inline bool GetHasPublishedVersion() const { return m_hasPublishedVersion; }
242 inline void SetHasPublishedVersion(bool value) {
243 m_hasPublishedVersionHasBeenSet = true;
244 m_hasPublishedVersion = value;
245 }
248 return *this;
249 }
251
253
258 inline const Aws::Vector<DeploymentCoverageEntry>& GetDeploymentCoverage() const { return m_deploymentCoverage; }
259 template <typename DeploymentCoverageT = Aws::Vector<DeploymentCoverageEntry>>
260 void SetDeploymentCoverage(DeploymentCoverageT&& value) {
261 m_deploymentCoverageHasBeenSet = true;
262 m_deploymentCoverage = std::forward<DeploymentCoverageT>(value);
263 }
264 template <typename DeploymentCoverageT = Aws::Vector<DeploymentCoverageEntry>>
265 CreateDeploymentResult& WithDeploymentCoverage(DeploymentCoverageT&& value) {
266 SetDeploymentCoverage(std::forward<DeploymentCoverageT>(value));
267 return *this;
268 }
269 template <typename DeploymentCoverageT = DeploymentCoverageEntry>
270 CreateDeploymentResult& AddDeploymentCoverage(DeploymentCoverageT&& value) {
271 m_deploymentCoverageHasBeenSet = true;
272 m_deploymentCoverage.emplace_back(std::forward<DeploymentCoverageT>(value));
273 return *this;
274 }
276
278
282 inline const Aws::Vector<DeploymentWarningEntry>& GetWarnings() const { return m_warnings; }
283 template <typename WarningsT = Aws::Vector<DeploymentWarningEntry>>
284 void SetWarnings(WarningsT&& value) {
285 m_warningsHasBeenSet = true;
286 m_warnings = std::forward<WarningsT>(value);
287 }
288 template <typename WarningsT = Aws::Vector<DeploymentWarningEntry>>
290 SetWarnings(std::forward<WarningsT>(value));
291 return *this;
292 }
293 template <typename WarningsT = DeploymentWarningEntry>
295 m_warningsHasBeenSet = true;
296 m_warnings.emplace_back(std::forward<WarningsT>(value));
297 return *this;
298 }
300
302
305 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
306 template <typename UpdatedAtT = Aws::Utils::DateTime>
307 void SetUpdatedAt(UpdatedAtT&& value) {
308 m_updatedAtHasBeenSet = true;
309 m_updatedAt = std::forward<UpdatedAtT>(value);
310 }
311 template <typename UpdatedAtT = Aws::Utils::DateTime>
313 SetUpdatedAt(std::forward<UpdatedAtT>(value));
314 return *this;
315 }
317
319
320 inline const Aws::String& GetRequestId() const { return m_requestId; }
321 template <typename RequestIdT = Aws::String>
322 void SetRequestId(RequestIdT&& value) {
323 m_requestIdHasBeenSet = true;
324 m_requestId = std::forward<RequestIdT>(value);
325 }
326 template <typename RequestIdT = Aws::String>
328 SetRequestId(std::forward<RequestIdT>(value));
329 return *this;
330 }
332 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
333
334 private:
335 Aws::String m_deploymentId;
336
337 Aws::String m_deploymentArn;
338
339 Aws::String m_deploymentName;
340
341 Aws::String m_deploymentDescription;
342
344
345 DeploymentConfiguration m_deploymentConfiguration;
346
347 Aws::Vector<AssociatedPolicy> m_associatedPolicyList;
348
349 Aws::Vector<AssociatedScope> m_associatedScopeList;
350
351 Aws::String m_version;
352
353 Aws::String m_updateToken;
354
355 bool m_isSnapshot{false};
356
357 bool m_hasPublishedVersion{false};
358
359 Aws::Vector<DeploymentCoverageEntry> m_deploymentCoverage;
360
362
363 Aws::Utils::DateTime m_updatedAt{};
364
365 Aws::String m_requestId;
366 Aws::Http::HttpResponseCode m_HttpResponseCode;
367 bool m_deploymentIdHasBeenSet = false;
368 bool m_deploymentArnHasBeenSet = false;
369 bool m_deploymentNameHasBeenSet = false;
370 bool m_deploymentDescriptionHasBeenSet = false;
371 bool m_statusHasBeenSet = false;
372 bool m_deploymentConfigurationHasBeenSet = false;
373 bool m_associatedPolicyListHasBeenSet = false;
374 bool m_associatedScopeListHasBeenSet = false;
375 bool m_versionHasBeenSet = false;
376 bool m_updateTokenHasBeenSet = false;
377 bool m_isSnapshotHasBeenSet = false;
378 bool m_hasPublishedVersionHasBeenSet = false;
379 bool m_deploymentCoverageHasBeenSet = false;
380 bool m_warningsHasBeenSet = false;
381 bool m_updatedAtHasBeenSet = false;
382 bool m_requestIdHasBeenSet = false;
383};
384
385} // namespace Model
386} // namespace NetworkSecurityManager
387} // namespace Aws
CreateDeploymentResult & WithDeploymentDescription(DeploymentDescriptionT &&value)
CreateDeploymentResult & WithAssociatedScopeList(AssociatedScopeListT &&value)
AWS_NETWORKSECURITYMANAGER_API CreateDeploymentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateDeploymentResult & WithDeploymentId(DeploymentIdT &&value)
AWS_NETWORKSECURITYMANAGER_API CreateDeploymentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateDeploymentResult & WithDeploymentName(DeploymentNameT &&value)
CreateDeploymentResult & AddDeploymentCoverage(DeploymentCoverageT &&value)
const Aws::Vector< DeploymentCoverageEntry > & GetDeploymentCoverage() const
void SetDeploymentConfiguration(DeploymentConfigurationT &&value)
CreateDeploymentResult & WithDeploymentConfiguration(DeploymentConfigurationT &&value)
CreateDeploymentResult & WithRequestId(RequestIdT &&value)
CreateDeploymentResult & AddAssociatedScopeList(AssociatedScopeListT &&value)
CreateDeploymentResult & AddWarnings(WarningsT &&value)
AWS_NETWORKSECURITYMANAGER_API CreateDeploymentResult()=default
const Aws::Vector< DeploymentWarningEntry > & GetWarnings() const
const Aws::Vector< AssociatedScope > & GetAssociatedScopeList() const
CreateDeploymentResult & WithStatus(EntityStatus value)
const Aws::Vector< AssociatedPolicy > & GetAssociatedPolicyList() const
CreateDeploymentResult & WithDeploymentArn(DeploymentArnT &&value)
const DeploymentConfiguration & GetDeploymentConfiguration() const
CreateDeploymentResult & WithAssociatedPolicyList(AssociatedPolicyListT &&value)
CreateDeploymentResult & WithWarnings(WarningsT &&value)
CreateDeploymentResult & AddAssociatedPolicyList(AssociatedPolicyListT &&value)
CreateDeploymentResult & WithUpdateToken(UpdateTokenT &&value)
CreateDeploymentResult & WithUpdatedAt(UpdatedAtT &&value)
CreateDeploymentResult & WithDeploymentCoverage(DeploymentCoverageT &&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