AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
UpdatePolicyResult.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 UpdatePolicyResult() = default;
35
37
40 inline const Aws::String& GetPolicyId() const { return m_policyId; }
41 template <typename PolicyIdT = Aws::String>
42 void SetPolicyId(PolicyIdT&& value) {
43 m_policyIdHasBeenSet = true;
44 m_policyId = std::forward<PolicyIdT>(value);
45 }
46 template <typename PolicyIdT = Aws::String>
47 UpdatePolicyResult& WithPolicyId(PolicyIdT&& value) {
48 SetPolicyId(std::forward<PolicyIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetPolicyArn() const { return m_policyArn; }
58 template <typename PolicyArnT = Aws::String>
59 void SetPolicyArn(PolicyArnT&& value) {
60 m_policyArnHasBeenSet = true;
61 m_policyArn = std::forward<PolicyArnT>(value);
62 }
63 template <typename PolicyArnT = Aws::String>
64 UpdatePolicyResult& WithPolicyArn(PolicyArnT&& value) {
65 SetPolicyArn(std::forward<PolicyArnT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetPolicyName() const { return m_policyName; }
75 template <typename PolicyNameT = Aws::String>
76 void SetPolicyName(PolicyNameT&& value) {
77 m_policyNameHasBeenSet = true;
78 m_policyName = std::forward<PolicyNameT>(value);
79 }
80 template <typename PolicyNameT = Aws::String>
81 UpdatePolicyResult& WithPolicyName(PolicyNameT&& value) {
82 SetPolicyName(std::forward<PolicyNameT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetPolicyDescription() const { return m_policyDescription; }
92 template <typename PolicyDescriptionT = Aws::String>
93 void SetPolicyDescription(PolicyDescriptionT&& value) {
94 m_policyDescriptionHasBeenSet = true;
95 m_policyDescription = std::forward<PolicyDescriptionT>(value);
96 }
97 template <typename PolicyDescriptionT = Aws::String>
98 UpdatePolicyResult& WithPolicyDescription(PolicyDescriptionT&& value) {
99 SetPolicyDescription(std::forward<PolicyDescriptionT>(value));
100 return *this;
101 }
103
105
109 inline EntityStatus GetStatus() const { return m_status; }
110 inline void SetStatus(EntityStatus value) {
111 m_statusHasBeenSet = true;
112 m_status = value;
113 }
115 SetStatus(value);
116 return *this;
117 }
119
121
124 inline int GetPriority() const { return m_priority; }
125 inline void SetPriority(int value) {
126 m_priorityHasBeenSet = true;
127 m_priority = value;
128 }
129 inline UpdatePolicyResult& WithPriority(int value) {
130 SetPriority(value);
131 return *this;
132 }
134
136
141 inline const Aws::Vector<AssociatedTemplateOrRule>& GetAssociatedTemplateAndRuleList() const { return m_associatedTemplateAndRuleList; }
142 template <typename AssociatedTemplateAndRuleListT = Aws::Vector<AssociatedTemplateOrRule>>
143 void SetAssociatedTemplateAndRuleList(AssociatedTemplateAndRuleListT&& value) {
144 m_associatedTemplateAndRuleListHasBeenSet = true;
145 m_associatedTemplateAndRuleList = std::forward<AssociatedTemplateAndRuleListT>(value);
146 }
147 template <typename AssociatedTemplateAndRuleListT = Aws::Vector<AssociatedTemplateOrRule>>
148 UpdatePolicyResult& WithAssociatedTemplateAndRuleList(AssociatedTemplateAndRuleListT&& value) {
149 SetAssociatedTemplateAndRuleList(std::forward<AssociatedTemplateAndRuleListT>(value));
150 return *this;
151 }
152 template <typename AssociatedTemplateAndRuleListT = AssociatedTemplateOrRule>
153 UpdatePolicyResult& AddAssociatedTemplateAndRuleList(AssociatedTemplateAndRuleListT&& value) {
154 m_associatedTemplateAndRuleListHasBeenSet = true;
155 m_associatedTemplateAndRuleList.emplace_back(std::forward<AssociatedTemplateAndRuleListT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::String& GetVersion() const { return m_version; }
165 template <typename VersionT = Aws::String>
166 void SetVersion(VersionT&& value) {
167 m_versionHasBeenSet = true;
168 m_version = std::forward<VersionT>(value);
169 }
170 template <typename VersionT = Aws::String>
171 UpdatePolicyResult& WithVersion(VersionT&& value) {
172 SetVersion(std::forward<VersionT>(value));
173 return *this;
174 }
176
178
183 inline const Aws::String& GetUpdateToken() const { return m_updateToken; }
184 template <typename UpdateTokenT = Aws::String>
185 void SetUpdateToken(UpdateTokenT&& value) {
186 m_updateTokenHasBeenSet = true;
187 m_updateToken = std::forward<UpdateTokenT>(value);
188 }
189 template <typename UpdateTokenT = Aws::String>
190 UpdatePolicyResult& WithUpdateToken(UpdateTokenT&& value) {
191 SetUpdateToken(std::forward<UpdateTokenT>(value));
192 return *this;
193 }
195
197
200 inline bool GetIsSnapshot() const { return m_isSnapshot; }
201 inline void SetIsSnapshot(bool value) {
202 m_isSnapshotHasBeenSet = true;
203 m_isSnapshot = value;
204 }
205 inline UpdatePolicyResult& WithIsSnapshot(bool value) {
206 SetIsSnapshot(value);
207 return *this;
208 }
210
212
215 inline bool GetHasPublishedVersion() const { return m_hasPublishedVersion; }
216 inline void SetHasPublishedVersion(bool value) {
217 m_hasPublishedVersionHasBeenSet = true;
218 m_hasPublishedVersion = value;
219 }
222 return *this;
223 }
225
227
230 inline PolicyFirewallType GetFirewallType() const { return m_firewallType; }
232 m_firewallTypeHasBeenSet = true;
233 m_firewallType = value;
234 }
236 SetFirewallType(value);
237 return *this;
238 }
240
242
246 inline const PolicyConfiguration& GetPolicyConfiguration() const { return m_policyConfiguration; }
247 template <typename PolicyConfigurationT = PolicyConfiguration>
248 void SetPolicyConfiguration(PolicyConfigurationT&& value) {
249 m_policyConfigurationHasBeenSet = true;
250 m_policyConfiguration = std::forward<PolicyConfigurationT>(value);
251 }
252 template <typename PolicyConfigurationT = PolicyConfiguration>
253 UpdatePolicyResult& WithPolicyConfiguration(PolicyConfigurationT&& value) {
254 SetPolicyConfiguration(std::forward<PolicyConfigurationT>(value));
255 return *this;
256 }
258
260
263 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
264 template <typename UpdatedAtT = Aws::Utils::DateTime>
265 void SetUpdatedAt(UpdatedAtT&& value) {
266 m_updatedAtHasBeenSet = true;
267 m_updatedAt = std::forward<UpdatedAtT>(value);
268 }
269 template <typename UpdatedAtT = Aws::Utils::DateTime>
270 UpdatePolicyResult& WithUpdatedAt(UpdatedAtT&& value) {
271 SetUpdatedAt(std::forward<UpdatedAtT>(value));
272 return *this;
273 }
275
277
278 inline const Aws::String& GetRequestId() const { return m_requestId; }
279 template <typename RequestIdT = Aws::String>
280 void SetRequestId(RequestIdT&& value) {
281 m_requestIdHasBeenSet = true;
282 m_requestId = std::forward<RequestIdT>(value);
283 }
284 template <typename RequestIdT = Aws::String>
285 UpdatePolicyResult& WithRequestId(RequestIdT&& value) {
286 SetRequestId(std::forward<RequestIdT>(value));
287 return *this;
288 }
290 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
291
292 private:
293 Aws::String m_policyId;
294
295 Aws::String m_policyArn;
296
297 Aws::String m_policyName;
298
299 Aws::String m_policyDescription;
300
302
303 int m_priority{0};
304
305 Aws::Vector<AssociatedTemplateOrRule> m_associatedTemplateAndRuleList;
306
307 Aws::String m_version;
308
309 Aws::String m_updateToken;
310
311 bool m_isSnapshot{false};
312
313 bool m_hasPublishedVersion{false};
314
316
317 PolicyConfiguration m_policyConfiguration;
318
319 Aws::Utils::DateTime m_updatedAt{};
320
321 Aws::String m_requestId;
322 Aws::Http::HttpResponseCode m_HttpResponseCode;
323 bool m_policyIdHasBeenSet = false;
324 bool m_policyArnHasBeenSet = false;
325 bool m_policyNameHasBeenSet = false;
326 bool m_policyDescriptionHasBeenSet = false;
327 bool m_statusHasBeenSet = false;
328 bool m_priorityHasBeenSet = false;
329 bool m_associatedTemplateAndRuleListHasBeenSet = false;
330 bool m_versionHasBeenSet = false;
331 bool m_updateTokenHasBeenSet = false;
332 bool m_isSnapshotHasBeenSet = false;
333 bool m_hasPublishedVersionHasBeenSet = false;
334 bool m_firewallTypeHasBeenSet = false;
335 bool m_policyConfigurationHasBeenSet = false;
336 bool m_updatedAtHasBeenSet = false;
337 bool m_requestIdHasBeenSet = false;
338};
339
340} // namespace Model
341} // namespace NetworkSecurityManager
342} // namespace Aws
UpdatePolicyResult & AddAssociatedTemplateAndRuleList(AssociatedTemplateAndRuleListT &&value)
const Aws::Vector< AssociatedTemplateOrRule > & GetAssociatedTemplateAndRuleList() const
void SetAssociatedTemplateAndRuleList(AssociatedTemplateAndRuleListT &&value)
UpdatePolicyResult & WithVersion(VersionT &&value)
UpdatePolicyResult & WithPolicyDescription(PolicyDescriptionT &&value)
AWS_NETWORKSECURITYMANAGER_API UpdatePolicyResult()=default
UpdatePolicyResult & WithPolicyArn(PolicyArnT &&value)
UpdatePolicyResult & WithStatus(EntityStatus value)
void SetPolicyConfiguration(PolicyConfigurationT &&value)
UpdatePolicyResult & WithPolicyName(PolicyNameT &&value)
UpdatePolicyResult & WithPolicyConfiguration(PolicyConfigurationT &&value)
AWS_NETWORKSECURITYMANAGER_API UpdatePolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdatePolicyResult & WithAssociatedTemplateAndRuleList(AssociatedTemplateAndRuleListT &&value)
UpdatePolicyResult & WithUpdatedAt(UpdatedAtT &&value)
UpdatePolicyResult & WithRequestId(RequestIdT &&value)
UpdatePolicyResult & WithUpdateToken(UpdateTokenT &&value)
AWS_NETWORKSECURITYMANAGER_API UpdatePolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
UpdatePolicyResult & WithPolicyId(PolicyIdT &&value)
UpdatePolicyResult & WithFirewallType(PolicyFirewallType value)
const PolicyConfiguration & GetPolicyConfiguration() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue