AWS SDK for C++

AWS SDK for C++ Version 1.11.783

Loading...
Searching...
No Matches
UpdateFirewallRuleResult.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/route53globalresolver/Route53GlobalResolver_EXPORTS.h>
11#include <aws/route53globalresolver/model/BlockOverrideDnsQueryType.h>
12#include <aws/route53globalresolver/model/CRResourceStatus.h>
13#include <aws/route53globalresolver/model/ConfidenceThreshold.h>
14#include <aws/route53globalresolver/model/DnsAdvancedProtection.h>
15#include <aws/route53globalresolver/model/FirewallBlockResponse.h>
16#include <aws/route53globalresolver/model/FirewallRuleAction.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace Route53GlobalResolver {
30namespace Model {
32 public:
33 AWS_ROUTE53GLOBALRESOLVER_API UpdateFirewallRuleResult() = default;
36
38
43 inline FirewallRuleAction GetAction() const { return m_action; }
44 inline void SetAction(FirewallRuleAction value) {
45 m_actionHasBeenSet = true;
46 m_action = value;
47 }
49 SetAction(value);
50 return *this;
51 }
53
55
61 inline BlockOverrideDnsQueryType GetBlockOverrideDnsType() const { return m_blockOverrideDnsType; }
63 m_blockOverrideDnsTypeHasBeenSet = true;
64 m_blockOverrideDnsType = value;
65 }
68 return *this;
69 }
71
73
78 inline const Aws::String& GetBlockOverrideDomain() const { return m_blockOverrideDomain; }
79 template <typename BlockOverrideDomainT = Aws::String>
80 void SetBlockOverrideDomain(BlockOverrideDomainT&& value) {
81 m_blockOverrideDomainHasBeenSet = true;
82 m_blockOverrideDomain = std::forward<BlockOverrideDomainT>(value);
83 }
84 template <typename BlockOverrideDomainT = Aws::String>
85 UpdateFirewallRuleResult& WithBlockOverrideDomain(BlockOverrideDomainT&& value) {
86 SetBlockOverrideDomain(std::forward<BlockOverrideDomainT>(value));
87 return *this;
88 }
90
92
98 inline int GetBlockOverrideTtl() const { return m_blockOverrideTtl; }
99 inline void SetBlockOverrideTtl(int value) {
100 m_blockOverrideTtlHasBeenSet = true;
101 m_blockOverrideTtl = value;
102 }
104 SetBlockOverrideTtl(value);
105 return *this;
106 }
108
110
114 inline FirewallBlockResponse GetBlockResponse() const { return m_blockResponse; }
116 m_blockResponseHasBeenSet = true;
117 m_blockResponse = value;
118 }
120 SetBlockResponse(value);
121 return *this;
122 }
124
126
130 inline ConfidenceThreshold GetConfidenceThreshold() const { return m_confidenceThreshold; }
132 m_confidenceThresholdHasBeenSet = true;
133 m_confidenceThreshold = value;
134 }
137 return *this;
138 }
140
142
145 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
146 template <typename CreatedAtT = Aws::Utils::DateTime>
147 void SetCreatedAt(CreatedAtT&& value) {
148 m_createdAtHasBeenSet = true;
149 m_createdAt = std::forward<CreatedAtT>(value);
150 }
151 template <typename CreatedAtT = Aws::Utils::DateTime>
153 SetCreatedAt(std::forward<CreatedAtT>(value));
154 return *this;
155 }
157
159
162 inline const Aws::String& GetDescription() const { return m_description; }
163 template <typename DescriptionT = Aws::String>
164 void SetDescription(DescriptionT&& value) {
165 m_descriptionHasBeenSet = true;
166 m_description = std::forward<DescriptionT>(value);
167 }
168 template <typename DescriptionT = Aws::String>
170 SetDescription(std::forward<DescriptionT>(value));
171 return *this;
172 }
174
176
180 inline DnsAdvancedProtection GetDnsAdvancedProtection() const { return m_dnsAdvancedProtection; }
182 m_dnsAdvancedProtectionHasBeenSet = true;
183 m_dnsAdvancedProtection = value;
184 }
187 return *this;
188 }
190
192
195 inline const Aws::String& GetFirewallDomainListId() const { return m_firewallDomainListId; }
196 template <typename FirewallDomainListIdT = Aws::String>
197 void SetFirewallDomainListId(FirewallDomainListIdT&& value) {
198 m_firewallDomainListIdHasBeenSet = true;
199 m_firewallDomainListId = std::forward<FirewallDomainListIdT>(value);
200 }
201 template <typename FirewallDomainListIdT = Aws::String>
202 UpdateFirewallRuleResult& WithFirewallDomainListId(FirewallDomainListIdT&& value) {
203 SetFirewallDomainListId(std::forward<FirewallDomainListIdT>(value));
204 return *this;
205 }
207
209
212 inline const Aws::String& GetId() const { return m_id; }
213 template <typename IdT = Aws::String>
214 void SetId(IdT&& value) {
215 m_idHasBeenSet = true;
216 m_id = std::forward<IdT>(value);
217 }
218 template <typename IdT = Aws::String>
220 SetId(std::forward<IdT>(value));
221 return *this;
222 }
224
226
229 inline const Aws::String& GetName() const { return m_name; }
230 template <typename NameT = Aws::String>
231 void SetName(NameT&& value) {
232 m_nameHasBeenSet = true;
233 m_name = std::forward<NameT>(value);
234 }
235 template <typename NameT = Aws::String>
237 SetName(std::forward<NameT>(value));
238 return *this;
239 }
241
243
248 inline long long GetPriority() const { return m_priority; }
249 inline void SetPriority(long long value) {
250 m_priorityHasBeenSet = true;
251 m_priority = value;
252 }
253 inline UpdateFirewallRuleResult& WithPriority(long long value) {
254 SetPriority(value);
255 return *this;
256 }
258
260
263 inline const Aws::String& GetDnsViewId() const { return m_dnsViewId; }
264 template <typename DnsViewIdT = Aws::String>
265 void SetDnsViewId(DnsViewIdT&& value) {
266 m_dnsViewIdHasBeenSet = true;
267 m_dnsViewId = std::forward<DnsViewIdT>(value);
268 }
269 template <typename DnsViewIdT = Aws::String>
271 SetDnsViewId(std::forward<DnsViewIdT>(value));
272 return *this;
273 }
275
277
280 inline const Aws::String& GetQueryType() const { return m_queryType; }
281 template <typename QueryTypeT = Aws::String>
282 void SetQueryType(QueryTypeT&& value) {
283 m_queryTypeHasBeenSet = true;
284 m_queryType = std::forward<QueryTypeT>(value);
285 }
286 template <typename QueryTypeT = Aws::String>
288 SetQueryType(std::forward<QueryTypeT>(value));
289 return *this;
290 }
292
294
297 inline CRResourceStatus GetStatus() const { return m_status; }
298 inline void SetStatus(CRResourceStatus value) {
299 m_statusHasBeenSet = true;
300 m_status = value;
301 }
303 SetStatus(value);
304 return *this;
305 }
307
309
312 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
313 template <typename UpdatedAtT = Aws::Utils::DateTime>
314 void SetUpdatedAt(UpdatedAtT&& value) {
315 m_updatedAtHasBeenSet = true;
316 m_updatedAt = std::forward<UpdatedAtT>(value);
317 }
318 template <typename UpdatedAtT = Aws::Utils::DateTime>
320 SetUpdatedAt(std::forward<UpdatedAtT>(value));
321 return *this;
322 }
324
326
327 inline const Aws::String& GetRequestId() const { return m_requestId; }
328 template <typename RequestIdT = Aws::String>
329 void SetRequestId(RequestIdT&& value) {
330 m_requestIdHasBeenSet = true;
331 m_requestId = std::forward<RequestIdT>(value);
332 }
333 template <typename RequestIdT = Aws::String>
335 SetRequestId(std::forward<RequestIdT>(value));
336 return *this;
337 }
339 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
340
341 private:
343
345
346 Aws::String m_blockOverrideDomain;
347
348 int m_blockOverrideTtl{0};
349
351
353
354 Aws::Utils::DateTime m_createdAt{};
355
356 Aws::String m_description;
357
359
360 Aws::String m_firewallDomainListId;
361
362 Aws::String m_id;
363
364 Aws::String m_name;
365
366 long long m_priority{0};
367
368 Aws::String m_dnsViewId;
369
370 Aws::String m_queryType;
371
373
374 Aws::Utils::DateTime m_updatedAt{};
375
376 Aws::String m_requestId;
377 Aws::Http::HttpResponseCode m_HttpResponseCode;
378 bool m_actionHasBeenSet = false;
379 bool m_blockOverrideDnsTypeHasBeenSet = false;
380 bool m_blockOverrideDomainHasBeenSet = false;
381 bool m_blockOverrideTtlHasBeenSet = false;
382 bool m_blockResponseHasBeenSet = false;
383 bool m_confidenceThresholdHasBeenSet = false;
384 bool m_createdAtHasBeenSet = false;
385 bool m_descriptionHasBeenSet = false;
386 bool m_dnsAdvancedProtectionHasBeenSet = false;
387 bool m_firewallDomainListIdHasBeenSet = false;
388 bool m_idHasBeenSet = false;
389 bool m_nameHasBeenSet = false;
390 bool m_priorityHasBeenSet = false;
391 bool m_dnsViewIdHasBeenSet = false;
392 bool m_queryTypeHasBeenSet = false;
393 bool m_statusHasBeenSet = false;
394 bool m_updatedAtHasBeenSet = false;
395 bool m_requestIdHasBeenSet = false;
396};
397
398} // namespace Model
399} // namespace Route53GlobalResolver
400} // namespace Aws
UpdateFirewallRuleResult & WithBlockOverrideDnsType(BlockOverrideDnsQueryType value)
AWS_ROUTE53GLOBALRESOLVER_API UpdateFirewallRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateFirewallRuleResult & WithStatus(CRResourceStatus value)
UpdateFirewallRuleResult & WithAction(FirewallRuleAction value)
UpdateFirewallRuleResult & WithUpdatedAt(UpdatedAtT &&value)
UpdateFirewallRuleResult & WithDnsAdvancedProtection(DnsAdvancedProtection value)
UpdateFirewallRuleResult & WithBlockOverrideDomain(BlockOverrideDomainT &&value)
UpdateFirewallRuleResult & WithCreatedAt(CreatedAtT &&value)
UpdateFirewallRuleResult & WithFirewallDomainListId(FirewallDomainListIdT &&value)
UpdateFirewallRuleResult & WithQueryType(QueryTypeT &&value)
UpdateFirewallRuleResult & WithConfidenceThreshold(ConfidenceThreshold value)
UpdateFirewallRuleResult & WithBlockResponse(FirewallBlockResponse value)
AWS_ROUTE53GLOBALRESOLVER_API UpdateFirewallRuleResult()=default
UpdateFirewallRuleResult & WithDnsViewId(DnsViewIdT &&value)
AWS_ROUTE53GLOBALRESOLVER_API UpdateFirewallRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateFirewallRuleResult & WithRequestId(RequestIdT &&value)
UpdateFirewallRuleResult & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue