AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
GetRuleResult.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 GetRuleResult() = default;
32 AWS_NETWORKSECURITYMANAGER_API GetRuleResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
34
36
39 inline const Aws::String& GetRuleId() const { return m_ruleId; }
40 template <typename RuleIdT = Aws::String>
41 void SetRuleId(RuleIdT&& value) {
42 m_ruleIdHasBeenSet = true;
43 m_ruleId = std::forward<RuleIdT>(value);
44 }
45 template <typename RuleIdT = Aws::String>
46 GetRuleResult& WithRuleId(RuleIdT&& value) {
47 SetRuleId(std::forward<RuleIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetRuleArn() const { return m_ruleArn; }
57 template <typename RuleArnT = Aws::String>
58 void SetRuleArn(RuleArnT&& value) {
59 m_ruleArnHasBeenSet = true;
60 m_ruleArn = std::forward<RuleArnT>(value);
61 }
62 template <typename RuleArnT = Aws::String>
63 GetRuleResult& WithRuleArn(RuleArnT&& value) {
64 SetRuleArn(std::forward<RuleArnT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetRuleName() const { return m_ruleName; }
74 template <typename RuleNameT = Aws::String>
75 void SetRuleName(RuleNameT&& value) {
76 m_ruleNameHasBeenSet = true;
77 m_ruleName = std::forward<RuleNameT>(value);
78 }
79 template <typename RuleNameT = Aws::String>
80 GetRuleResult& WithRuleName(RuleNameT&& value) {
81 SetRuleName(std::forward<RuleNameT>(value));
82 return *this;
83 }
85
87
90 inline RuleFirewallType GetFirewallType() const { return m_firewallType; }
91 inline void SetFirewallType(RuleFirewallType value) {
92 m_firewallTypeHasBeenSet = true;
93 m_firewallType = value;
94 }
96 SetFirewallType(value);
97 return *this;
98 }
100
102
106 inline RuleType GetRuleType() const { return m_ruleType; }
107 inline void SetRuleType(RuleType value) {
108 m_ruleTypeHasBeenSet = true;
109 m_ruleType = value;
110 }
112 SetRuleType(value);
113 return *this;
114 }
116
118
121 inline const Aws::String& GetRuleDescription() const { return m_ruleDescription; }
122 template <typename RuleDescriptionT = Aws::String>
123 void SetRuleDescription(RuleDescriptionT&& value) {
124 m_ruleDescriptionHasBeenSet = true;
125 m_ruleDescription = std::forward<RuleDescriptionT>(value);
126 }
127 template <typename RuleDescriptionT = Aws::String>
128 GetRuleResult& WithRuleDescription(RuleDescriptionT&& value) {
129 SetRuleDescription(std::forward<RuleDescriptionT>(value));
130 return *this;
131 }
133
135
139 inline Aws::Utils::DocumentView GetConfiguration() const { return m_configuration; }
140 template <typename ConfigurationT = Aws::Utils::Document>
141 void SetConfiguration(ConfigurationT&& value) {
142 m_configurationHasBeenSet = true;
143 m_configuration = std::forward<ConfigurationT>(value);
144 }
145 template <typename ConfigurationT = Aws::Utils::Document>
146 GetRuleResult& WithConfiguration(ConfigurationT&& value) {
147 SetConfiguration(std::forward<ConfigurationT>(value));
148 return *this;
149 }
151
153
157 inline EntityStatus GetStatus() const { return m_status; }
158 inline void SetStatus(EntityStatus value) {
159 m_statusHasBeenSet = true;
160 m_status = value;
161 }
163 SetStatus(value);
164 return *this;
165 }
167
169
172 inline const Aws::String& GetVersion() const { return m_version; }
173 template <typename VersionT = Aws::String>
174 void SetVersion(VersionT&& value) {
175 m_versionHasBeenSet = true;
176 m_version = std::forward<VersionT>(value);
177 }
178 template <typename VersionT = Aws::String>
179 GetRuleResult& WithVersion(VersionT&& value) {
180 SetVersion(std::forward<VersionT>(value));
181 return *this;
182 }
184
186
191 inline const Aws::String& GetUpdateToken() const { return m_updateToken; }
192 template <typename UpdateTokenT = Aws::String>
193 void SetUpdateToken(UpdateTokenT&& value) {
194 m_updateTokenHasBeenSet = true;
195 m_updateToken = std::forward<UpdateTokenT>(value);
196 }
197 template <typename UpdateTokenT = Aws::String>
198 GetRuleResult& WithUpdateToken(UpdateTokenT&& value) {
199 SetUpdateToken(std::forward<UpdateTokenT>(value));
200 return *this;
201 }
203
205
208 inline bool GetIsSnapshot() const { return m_isSnapshot; }
209 inline void SetIsSnapshot(bool value) {
210 m_isSnapshotHasBeenSet = true;
211 m_isSnapshot = value;
212 }
213 inline GetRuleResult& WithIsSnapshot(bool value) {
214 SetIsSnapshot(value);
215 return *this;
216 }
218
220
223 inline bool GetHasPublishedVersion() const { return m_hasPublishedVersion; }
224 inline void SetHasPublishedVersion(bool value) {
225 m_hasPublishedVersionHasBeenSet = true;
226 m_hasPublishedVersion = value;
227 }
230 return *this;
231 }
233
235
238 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
239 template <typename UpdatedAtT = Aws::Utils::DateTime>
240 void SetUpdatedAt(UpdatedAtT&& value) {
241 m_updatedAtHasBeenSet = true;
242 m_updatedAt = std::forward<UpdatedAtT>(value);
243 }
244 template <typename UpdatedAtT = Aws::Utils::DateTime>
245 GetRuleResult& WithUpdatedAt(UpdatedAtT&& value) {
246 SetUpdatedAt(std::forward<UpdatedAtT>(value));
247 return *this;
248 }
250
252
253 inline const Aws::String& GetRequestId() const { return m_requestId; }
254 template <typename RequestIdT = Aws::String>
255 void SetRequestId(RequestIdT&& value) {
256 m_requestIdHasBeenSet = true;
257 m_requestId = std::forward<RequestIdT>(value);
258 }
259 template <typename RequestIdT = Aws::String>
260 GetRuleResult& WithRequestId(RequestIdT&& value) {
261 SetRequestId(std::forward<RequestIdT>(value));
262 return *this;
263 }
265 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
266
267 private:
268 Aws::String m_ruleId;
269
270 Aws::String m_ruleArn;
271
272 Aws::String m_ruleName;
273
275
276 RuleType m_ruleType{RuleType::NOT_SET};
277
278 Aws::String m_ruleDescription;
279
280 Aws::Utils::Document m_configuration;
281
283
284 Aws::String m_version;
285
286 Aws::String m_updateToken;
287
288 bool m_isSnapshot{false};
289
290 bool m_hasPublishedVersion{false};
291
292 Aws::Utils::DateTime m_updatedAt{};
293
294 Aws::String m_requestId;
295 Aws::Http::HttpResponseCode m_HttpResponseCode;
296 bool m_ruleIdHasBeenSet = false;
297 bool m_ruleArnHasBeenSet = false;
298 bool m_ruleNameHasBeenSet = false;
299 bool m_firewallTypeHasBeenSet = false;
300 bool m_ruleTypeHasBeenSet = false;
301 bool m_ruleDescriptionHasBeenSet = false;
302 bool m_configurationHasBeenSet = false;
303 bool m_statusHasBeenSet = false;
304 bool m_versionHasBeenSet = false;
305 bool m_updateTokenHasBeenSet = false;
306 bool m_isSnapshotHasBeenSet = false;
307 bool m_hasPublishedVersionHasBeenSet = false;
308 bool m_updatedAtHasBeenSet = false;
309 bool m_requestIdHasBeenSet = false;
310};
311
312} // namespace Model
313} // namespace NetworkSecurityManager
314} // namespace Aws
AWS_NETWORKSECURITYMANAGER_API GetRuleResult()=default
GetRuleResult & WithRequestId(RequestIdT &&value)
GetRuleResult & WithRuleDescription(RuleDescriptionT &&value)
GetRuleResult & WithRuleType(RuleType value)
const Aws::Utils::DateTime & GetUpdatedAt() const
GetRuleResult & WithUpdatedAt(UpdatedAtT &&value)
GetRuleResult & WithRuleName(RuleNameT &&value)
GetRuleResult & WithFirewallType(RuleFirewallType value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetRuleResult & WithHasPublishedVersion(bool value)
AWS_NETWORKSECURITYMANAGER_API GetRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetRuleDescription(RuleDescriptionT &&value)
GetRuleResult & WithVersion(VersionT &&value)
AWS_NETWORKSECURITYMANAGER_API GetRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetRuleResult & WithUpdateToken(UpdateTokenT &&value)
GetRuleResult & WithConfiguration(ConfigurationT &&value)
GetRuleResult & WithRuleArn(RuleArnT &&value)
GetRuleResult & WithRuleId(RuleIdT &&value)
GetRuleResult & WithStatus(EntityStatus value)
Aws::Utils::DocumentView GetConfiguration() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue