AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
CreatePolicySnapshotResult.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/AssociatedTemplateOrRule.h>
13#include <aws/network-security-manager/model/EntityStatus.h>
14#include <aws/network-security-manager/model/PolicyConfiguration.h>
15#include <aws/network-security-manager/model/PolicyFirewallType.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace NetworkSecurityManager {
29namespace Model {
31 public:
32 AWS_NETWORKSECURITYMANAGER_API CreatePolicySnapshotResult() = default;
34 AWS_NETWORKSECURITYMANAGER_API CreatePolicySnapshotResult& operator=(
36
38
41 inline const Aws::String& GetPolicyId() const { return m_policyId; }
42 template <typename PolicyIdT = Aws::String>
43 void SetPolicyId(PolicyIdT&& value) {
44 m_policyIdHasBeenSet = true;
45 m_policyId = std::forward<PolicyIdT>(value);
46 }
47 template <typename PolicyIdT = Aws::String>
49 SetPolicyId(std::forward<PolicyIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetPolicyArn() const { return m_policyArn; }
59 template <typename PolicyArnT = Aws::String>
60 void SetPolicyArn(PolicyArnT&& value) {
61 m_policyArnHasBeenSet = true;
62 m_policyArn = std::forward<PolicyArnT>(value);
63 }
64 template <typename PolicyArnT = Aws::String>
66 SetPolicyArn(std::forward<PolicyArnT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetPolicyName() const { return m_policyName; }
76 template <typename PolicyNameT = Aws::String>
77 void SetPolicyName(PolicyNameT&& value) {
78 m_policyNameHasBeenSet = true;
79 m_policyName = std::forward<PolicyNameT>(value);
80 }
81 template <typename PolicyNameT = Aws::String>
83 SetPolicyName(std::forward<PolicyNameT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetPolicyDescription() const { return m_policyDescription; }
93 template <typename PolicyDescriptionT = Aws::String>
94 void SetPolicyDescription(PolicyDescriptionT&& value) {
95 m_policyDescriptionHasBeenSet = true;
96 m_policyDescription = std::forward<PolicyDescriptionT>(value);
97 }
98 template <typename PolicyDescriptionT = Aws::String>
100 SetPolicyDescription(std::forward<PolicyDescriptionT>(value));
101 return *this;
102 }
104
106
110 inline EntityStatus GetStatus() const { return m_status; }
111 inline void SetStatus(EntityStatus value) {
112 m_statusHasBeenSet = true;
113 m_status = value;
114 }
116 SetStatus(value);
117 return *this;
118 }
120
122
125 inline int GetPriority() const { return m_priority; }
126 inline void SetPriority(int value) {
127 m_priorityHasBeenSet = true;
128 m_priority = value;
129 }
131 SetPriority(value);
132 return *this;
133 }
135
137
142 inline const Aws::Vector<AssociatedTemplateOrRule>& GetAssociatedTemplateAndRuleList() const { return m_associatedTemplateAndRuleList; }
143 template <typename AssociatedTemplateAndRuleListT = Aws::Vector<AssociatedTemplateOrRule>>
144 void SetAssociatedTemplateAndRuleList(AssociatedTemplateAndRuleListT&& value) {
145 m_associatedTemplateAndRuleListHasBeenSet = true;
146 m_associatedTemplateAndRuleList = std::forward<AssociatedTemplateAndRuleListT>(value);
147 }
148 template <typename AssociatedTemplateAndRuleListT = Aws::Vector<AssociatedTemplateOrRule>>
149 CreatePolicySnapshotResult& WithAssociatedTemplateAndRuleList(AssociatedTemplateAndRuleListT&& value) {
150 SetAssociatedTemplateAndRuleList(std::forward<AssociatedTemplateAndRuleListT>(value));
151 return *this;
152 }
153 template <typename AssociatedTemplateAndRuleListT = AssociatedTemplateOrRule>
154 CreatePolicySnapshotResult& AddAssociatedTemplateAndRuleList(AssociatedTemplateAndRuleListT&& value) {
155 m_associatedTemplateAndRuleListHasBeenSet = true;
156 m_associatedTemplateAndRuleList.emplace_back(std::forward<AssociatedTemplateAndRuleListT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::String& GetVersion() const { return m_version; }
166 template <typename VersionT = Aws::String>
167 void SetVersion(VersionT&& value) {
168 m_versionHasBeenSet = true;
169 m_version = std::forward<VersionT>(value);
170 }
171 template <typename VersionT = Aws::String>
173 SetVersion(std::forward<VersionT>(value));
174 return *this;
175 }
177
179
184 inline const Aws::String& GetUpdateToken() const { return m_updateToken; }
185 template <typename UpdateTokenT = Aws::String>
186 void SetUpdateToken(UpdateTokenT&& value) {
187 m_updateTokenHasBeenSet = true;
188 m_updateToken = std::forward<UpdateTokenT>(value);
189 }
190 template <typename UpdateTokenT = Aws::String>
192 SetUpdateToken(std::forward<UpdateTokenT>(value));
193 return *this;
194 }
196
198
201 inline bool GetIsSnapshot() const { return m_isSnapshot; }
202 inline void SetIsSnapshot(bool value) {
203 m_isSnapshotHasBeenSet = true;
204 m_isSnapshot = value;
205 }
207 SetIsSnapshot(value);
208 return *this;
209 }
211
213
216 inline bool GetHasPublishedVersion() const { return m_hasPublishedVersion; }
217 inline void SetHasPublishedVersion(bool value) {
218 m_hasPublishedVersionHasBeenSet = true;
219 m_hasPublishedVersion = value;
220 }
223 return *this;
224 }
226
228
231 inline PolicyFirewallType GetFirewallType() const { return m_firewallType; }
233 m_firewallTypeHasBeenSet = true;
234 m_firewallType = value;
235 }
237 SetFirewallType(value);
238 return *this;
239 }
241
243
247 inline const PolicyConfiguration& GetPolicyConfiguration() const { return m_policyConfiguration; }
248 template <typename PolicyConfigurationT = PolicyConfiguration>
249 void SetPolicyConfiguration(PolicyConfigurationT&& value) {
250 m_policyConfigurationHasBeenSet = true;
251 m_policyConfiguration = std::forward<PolicyConfigurationT>(value);
252 }
253 template <typename PolicyConfigurationT = PolicyConfiguration>
255 SetPolicyConfiguration(std::forward<PolicyConfigurationT>(value));
256 return *this;
257 }
259
261
264 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
265 template <typename UpdatedAtT = Aws::Utils::DateTime>
266 void SetUpdatedAt(UpdatedAtT&& value) {
267 m_updatedAtHasBeenSet = true;
268 m_updatedAt = std::forward<UpdatedAtT>(value);
269 }
270 template <typename UpdatedAtT = Aws::Utils::DateTime>
272 SetUpdatedAt(std::forward<UpdatedAtT>(value));
273 return *this;
274 }
276
278
279 inline const Aws::String& GetRequestId() const { return m_requestId; }
280 template <typename RequestIdT = Aws::String>
281 void SetRequestId(RequestIdT&& value) {
282 m_requestIdHasBeenSet = true;
283 m_requestId = std::forward<RequestIdT>(value);
284 }
285 template <typename RequestIdT = Aws::String>
287 SetRequestId(std::forward<RequestIdT>(value));
288 return *this;
289 }
291 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
292
293 private:
294 Aws::String m_policyId;
295
296 Aws::String m_policyArn;
297
298 Aws::String m_policyName;
299
300 Aws::String m_policyDescription;
301
303
304 int m_priority{0};
305
306 Aws::Vector<AssociatedTemplateOrRule> m_associatedTemplateAndRuleList;
307
308 Aws::String m_version;
309
310 Aws::String m_updateToken;
311
312 bool m_isSnapshot{false};
313
314 bool m_hasPublishedVersion{false};
315
317
318 PolicyConfiguration m_policyConfiguration;
319
320 Aws::Utils::DateTime m_updatedAt{};
321
322 Aws::String m_requestId;
323 Aws::Http::HttpResponseCode m_HttpResponseCode;
324 bool m_policyIdHasBeenSet = false;
325 bool m_policyArnHasBeenSet = false;
326 bool m_policyNameHasBeenSet = false;
327 bool m_policyDescriptionHasBeenSet = false;
328 bool m_statusHasBeenSet = false;
329 bool m_priorityHasBeenSet = false;
330 bool m_associatedTemplateAndRuleListHasBeenSet = false;
331 bool m_versionHasBeenSet = false;
332 bool m_updateTokenHasBeenSet = false;
333 bool m_isSnapshotHasBeenSet = false;
334 bool m_hasPublishedVersionHasBeenSet = false;
335 bool m_firewallTypeHasBeenSet = false;
336 bool m_policyConfigurationHasBeenSet = false;
337 bool m_updatedAtHasBeenSet = false;
338 bool m_requestIdHasBeenSet = false;
339};
340
341} // namespace Model
342} // namespace NetworkSecurityManager
343} // namespace Aws
CreatePolicySnapshotResult & WithPolicyDescription(PolicyDescriptionT &&value)
AWS_NETWORKSECURITYMANAGER_API CreatePolicySnapshotResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreatePolicySnapshotResult & WithUpdatedAt(UpdatedAtT &&value)
CreatePolicySnapshotResult & AddAssociatedTemplateAndRuleList(AssociatedTemplateAndRuleListT &&value)
CreatePolicySnapshotResult & WithPolicyName(PolicyNameT &&value)
const Aws::Vector< AssociatedTemplateOrRule > & GetAssociatedTemplateAndRuleList() const
CreatePolicySnapshotResult & WithPolicyArn(PolicyArnT &&value)
CreatePolicySnapshotResult & WithRequestId(RequestIdT &&value)
CreatePolicySnapshotResult & WithUpdateToken(UpdateTokenT &&value)
CreatePolicySnapshotResult & WithAssociatedTemplateAndRuleList(AssociatedTemplateAndRuleListT &&value)
AWS_NETWORKSECURITYMANAGER_API CreatePolicySnapshotResult()=default
AWS_NETWORKSECURITYMANAGER_API CreatePolicySnapshotResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreatePolicySnapshotResult & WithPolicyConfiguration(PolicyConfigurationT &&value)
void SetAssociatedTemplateAndRuleList(AssociatedTemplateAndRuleListT &&value)
CreatePolicySnapshotResult & WithFirewallType(PolicyFirewallType 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