AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
CreateRuleSnapshotResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/Document.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/network-security-manager/NetworkSecurityManager_EXPORTS.h>
12#include <aws/network-security-manager/model/EntityStatus.h>
13#include <aws/network-security-manager/model/RuleFirewallType.h>
14#include <aws/network-security-manager/model/RuleType.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace NetworkSecurityManager {
28namespace Model {
30 public:
31 AWS_NETWORKSECURITYMANAGER_API CreateRuleSnapshotResult() = default;
33 AWS_NETWORKSECURITYMANAGER_API CreateRuleSnapshotResult& operator=(
35
37
40 inline const Aws::String& GetRuleId() const { return m_ruleId; }
41 template <typename RuleIdT = Aws::String>
42 void SetRuleId(RuleIdT&& value) {
43 m_ruleIdHasBeenSet = true;
44 m_ruleId = std::forward<RuleIdT>(value);
45 }
46 template <typename RuleIdT = Aws::String>
48 SetRuleId(std::forward<RuleIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetRuleArn() const { return m_ruleArn; }
58 template <typename RuleArnT = Aws::String>
59 void SetRuleArn(RuleArnT&& value) {
60 m_ruleArnHasBeenSet = true;
61 m_ruleArn = std::forward<RuleArnT>(value);
62 }
63 template <typename RuleArnT = Aws::String>
65 SetRuleArn(std::forward<RuleArnT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetRuleName() const { return m_ruleName; }
75 template <typename RuleNameT = Aws::String>
76 void SetRuleName(RuleNameT&& value) {
77 m_ruleNameHasBeenSet = true;
78 m_ruleName = std::forward<RuleNameT>(value);
79 }
80 template <typename RuleNameT = Aws::String>
82 SetRuleName(std::forward<RuleNameT>(value));
83 return *this;
84 }
86
88
91 inline RuleFirewallType GetFirewallType() const { return m_firewallType; }
92 inline void SetFirewallType(RuleFirewallType value) {
93 m_firewallTypeHasBeenSet = true;
94 m_firewallType = value;
95 }
97 SetFirewallType(value);
98 return *this;
99 }
101
103
107 inline RuleType GetRuleType() const { return m_ruleType; }
108 inline void SetRuleType(RuleType value) {
109 m_ruleTypeHasBeenSet = true;
110 m_ruleType = value;
111 }
113 SetRuleType(value);
114 return *this;
115 }
117
119
122 inline const Aws::String& GetRuleDescription() const { return m_ruleDescription; }
123 template <typename RuleDescriptionT = Aws::String>
124 void SetRuleDescription(RuleDescriptionT&& value) {
125 m_ruleDescriptionHasBeenSet = true;
126 m_ruleDescription = std::forward<RuleDescriptionT>(value);
127 }
128 template <typename RuleDescriptionT = Aws::String>
130 SetRuleDescription(std::forward<RuleDescriptionT>(value));
131 return *this;
132 }
134
136
140 inline Aws::Utils::DocumentView GetConfiguration() const { return m_configuration; }
141 template <typename ConfigurationT = Aws::Utils::Document>
142 void SetConfiguration(ConfigurationT&& value) {
143 m_configurationHasBeenSet = true;
144 m_configuration = std::forward<ConfigurationT>(value);
145 }
146 template <typename ConfigurationT = Aws::Utils::Document>
148 SetConfiguration(std::forward<ConfigurationT>(value));
149 return *this;
150 }
152
154
158 inline EntityStatus GetStatus() const { return m_status; }
159 inline void SetStatus(EntityStatus value) {
160 m_statusHasBeenSet = true;
161 m_status = value;
162 }
164 SetStatus(value);
165 return *this;
166 }
168
170
173 inline const Aws::String& GetVersion() const { return m_version; }
174 template <typename VersionT = Aws::String>
175 void SetVersion(VersionT&& value) {
176 m_versionHasBeenSet = true;
177 m_version = std::forward<VersionT>(value);
178 }
179 template <typename VersionT = Aws::String>
181 SetVersion(std::forward<VersionT>(value));
182 return *this;
183 }
185
187
192 inline const Aws::String& GetUpdateToken() const { return m_updateToken; }
193 template <typename UpdateTokenT = Aws::String>
194 void SetUpdateToken(UpdateTokenT&& value) {
195 m_updateTokenHasBeenSet = true;
196 m_updateToken = std::forward<UpdateTokenT>(value);
197 }
198 template <typename UpdateTokenT = Aws::String>
200 SetUpdateToken(std::forward<UpdateTokenT>(value));
201 return *this;
202 }
204
206
209 inline bool GetIsSnapshot() const { return m_isSnapshot; }
210 inline void SetIsSnapshot(bool value) {
211 m_isSnapshotHasBeenSet = true;
212 m_isSnapshot = value;
213 }
215 SetIsSnapshot(value);
216 return *this;
217 }
219
221
224 inline bool GetHasPublishedVersion() const { return m_hasPublishedVersion; }
225 inline void SetHasPublishedVersion(bool value) {
226 m_hasPublishedVersionHasBeenSet = true;
227 m_hasPublishedVersion = value;
228 }
231 return *this;
232 }
234
236
239 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
240 template <typename UpdatedAtT = Aws::Utils::DateTime>
241 void SetUpdatedAt(UpdatedAtT&& value) {
242 m_updatedAtHasBeenSet = true;
243 m_updatedAt = std::forward<UpdatedAtT>(value);
244 }
245 template <typename UpdatedAtT = Aws::Utils::DateTime>
247 SetUpdatedAt(std::forward<UpdatedAtT>(value));
248 return *this;
249 }
251
253
254 inline const Aws::String& GetRequestId() const { return m_requestId; }
255 template <typename RequestIdT = Aws::String>
256 void SetRequestId(RequestIdT&& value) {
257 m_requestIdHasBeenSet = true;
258 m_requestId = std::forward<RequestIdT>(value);
259 }
260 template <typename RequestIdT = Aws::String>
262 SetRequestId(std::forward<RequestIdT>(value));
263 return *this;
264 }
266 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
267
268 private:
269 Aws::String m_ruleId;
270
271 Aws::String m_ruleArn;
272
273 Aws::String m_ruleName;
274
276
277 RuleType m_ruleType{RuleType::NOT_SET};
278
279 Aws::String m_ruleDescription;
280
281 Aws::Utils::Document m_configuration;
282
284
285 Aws::String m_version;
286
287 Aws::String m_updateToken;
288
289 bool m_isSnapshot{false};
290
291 bool m_hasPublishedVersion{false};
292
293 Aws::Utils::DateTime m_updatedAt{};
294
295 Aws::String m_requestId;
296 Aws::Http::HttpResponseCode m_HttpResponseCode;
297 bool m_ruleIdHasBeenSet = false;
298 bool m_ruleArnHasBeenSet = false;
299 bool m_ruleNameHasBeenSet = false;
300 bool m_firewallTypeHasBeenSet = false;
301 bool m_ruleTypeHasBeenSet = false;
302 bool m_ruleDescriptionHasBeenSet = false;
303 bool m_configurationHasBeenSet = false;
304 bool m_statusHasBeenSet = false;
305 bool m_versionHasBeenSet = false;
306 bool m_updateTokenHasBeenSet = false;
307 bool m_isSnapshotHasBeenSet = false;
308 bool m_hasPublishedVersionHasBeenSet = false;
309 bool m_updatedAtHasBeenSet = false;
310 bool m_requestIdHasBeenSet = false;
311};
312
313} // namespace Model
314} // namespace NetworkSecurityManager
315} // namespace Aws
CreateRuleSnapshotResult & WithRuleDescription(RuleDescriptionT &&value)
CreateRuleSnapshotResult & WithRuleName(RuleNameT &&value)
CreateRuleSnapshotResult & WithUpdatedAt(UpdatedAtT &&value)
AWS_NETWORKSECURITYMANAGER_API CreateRuleSnapshotResult()=default
AWS_NETWORKSECURITYMANAGER_API CreateRuleSnapshotResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateRuleSnapshotResult & WithStatus(EntityStatus value)
CreateRuleSnapshotResult & WithRequestId(RequestIdT &&value)
CreateRuleSnapshotResult & WithFirewallType(RuleFirewallType value)
AWS_NETWORKSECURITYMANAGER_API CreateRuleSnapshotResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateRuleSnapshotResult & WithUpdateToken(UpdateTokenT &&value)
CreateRuleSnapshotResult & WithConfiguration(ConfigurationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue