AWS SDK for C++

AWS SDK for C++ Version 1.11.784

Loading...
Searching...
No Matches
BatchUpdateFirewallRuleResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/route53globalresolver/Route53GlobalResolver_EXPORTS.h>
10#include <aws/route53globalresolver/model/BlockOverrideDnsQueryType.h>
11#include <aws/route53globalresolver/model/CRResourceStatus.h>
12#include <aws/route53globalresolver/model/ConfidenceThreshold.h>
13#include <aws/route53globalresolver/model/DnsAdvancedProtection.h>
14#include <aws/route53globalresolver/model/FirewallBlockResponse.h>
15#include <aws/route53globalresolver/model/FirewallRuleAction.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Route53GlobalResolver {
27namespace Model {
28
36 public:
37 AWS_ROUTE53GLOBALRESOLVER_API BatchUpdateFirewallRuleResult() = default;
38 AWS_ROUTE53GLOBALRESOLVER_API BatchUpdateFirewallRuleResult(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ROUTE53GLOBALRESOLVER_API BatchUpdateFirewallRuleResult& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ROUTE53GLOBALRESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline FirewallRuleAction GetAction() const { return m_action; }
47 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
48 inline void SetAction(FirewallRuleAction value) {
49 m_actionHasBeenSet = true;
50 m_action = value;
51 }
53 SetAction(value);
54 return *this;
55 }
57
59
63 inline BlockOverrideDnsQueryType GetBlockOverrideDnsType() const { return m_blockOverrideDnsType; }
64 inline bool BlockOverrideDnsTypeHasBeenSet() const { return m_blockOverrideDnsTypeHasBeenSet; }
66 m_blockOverrideDnsTypeHasBeenSet = true;
67 m_blockOverrideDnsType = value;
68 }
71 return *this;
72 }
74
76
80 inline const Aws::String& GetBlockOverrideDomain() const { return m_blockOverrideDomain; }
81 inline bool BlockOverrideDomainHasBeenSet() const { return m_blockOverrideDomainHasBeenSet; }
82 template <typename BlockOverrideDomainT = Aws::String>
83 void SetBlockOverrideDomain(BlockOverrideDomainT&& value) {
84 m_blockOverrideDomainHasBeenSet = true;
85 m_blockOverrideDomain = std::forward<BlockOverrideDomainT>(value);
86 }
87 template <typename BlockOverrideDomainT = Aws::String>
89 SetBlockOverrideDomain(std::forward<BlockOverrideDomainT>(value));
90 return *this;
91 }
93
95
98 inline int GetBlockOverrideTtl() const { return m_blockOverrideTtl; }
99 inline bool BlockOverrideTtlHasBeenSet() const { return m_blockOverrideTtlHasBeenSet; }
100 inline void SetBlockOverrideTtl(int value) {
101 m_blockOverrideTtlHasBeenSet = true;
102 m_blockOverrideTtl = value;
103 }
105 SetBlockOverrideTtl(value);
106 return *this;
107 }
109
111
114 inline FirewallBlockResponse GetBlockResponse() const { return m_blockResponse; }
115 inline bool BlockResponseHasBeenSet() const { return m_blockResponseHasBeenSet; }
117 m_blockResponseHasBeenSet = true;
118 m_blockResponse = value;
119 }
121 SetBlockResponse(value);
122 return *this;
123 }
125
127
130 inline const Aws::String& GetClientToken() const { return m_clientToken; }
131 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
132 template <typename ClientTokenT = Aws::String>
133 void SetClientToken(ClientTokenT&& value) {
134 m_clientTokenHasBeenSet = true;
135 m_clientToken = std::forward<ClientTokenT>(value);
136 }
137 template <typename ClientTokenT = Aws::String>
139 SetClientToken(std::forward<ClientTokenT>(value));
140 return *this;
141 }
143
145
149 inline ConfidenceThreshold GetConfidenceThreshold() const { return m_confidenceThreshold; }
150 inline bool ConfidenceThresholdHasBeenSet() const { return m_confidenceThresholdHasBeenSet; }
152 m_confidenceThresholdHasBeenSet = true;
153 m_confidenceThreshold = value;
154 }
157 return *this;
158 }
160
162
165 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
166 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
167 template <typename CreatedAtT = Aws::Utils::DateTime>
168 void SetCreatedAt(CreatedAtT&& value) {
169 m_createdAtHasBeenSet = true;
170 m_createdAt = std::forward<CreatedAtT>(value);
171 }
172 template <typename CreatedAtT = Aws::Utils::DateTime>
174 SetCreatedAt(std::forward<CreatedAtT>(value));
175 return *this;
176 }
178
180
183 inline const Aws::String& GetDescription() const { return m_description; }
184 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
185 template <typename DescriptionT = Aws::String>
186 void SetDescription(DescriptionT&& value) {
187 m_descriptionHasBeenSet = true;
188 m_description = std::forward<DescriptionT>(value);
189 }
190 template <typename DescriptionT = Aws::String>
192 SetDescription(std::forward<DescriptionT>(value));
193 return *this;
194 }
196
198
202 inline DnsAdvancedProtection GetDnsAdvancedProtection() const { return m_dnsAdvancedProtection; }
203 inline bool DnsAdvancedProtectionHasBeenSet() const { return m_dnsAdvancedProtectionHasBeenSet; }
205 m_dnsAdvancedProtectionHasBeenSet = true;
206 m_dnsAdvancedProtection = value;
207 }
210 return *this;
211 }
213
215
219 inline const Aws::String& GetFirewallDomainListId() const { return m_firewallDomainListId; }
220 inline bool FirewallDomainListIdHasBeenSet() const { return m_firewallDomainListIdHasBeenSet; }
221 template <typename FirewallDomainListIdT = Aws::String>
222 void SetFirewallDomainListId(FirewallDomainListIdT&& value) {
223 m_firewallDomainListIdHasBeenSet = true;
224 m_firewallDomainListId = std::forward<FirewallDomainListIdT>(value);
225 }
226 template <typename FirewallDomainListIdT = Aws::String>
228 SetFirewallDomainListId(std::forward<FirewallDomainListIdT>(value));
229 return *this;
230 }
232
234
237 inline const Aws::String& GetId() const { return m_id; }
238 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
239 template <typename IdT = Aws::String>
240 void SetId(IdT&& value) {
241 m_idHasBeenSet = true;
242 m_id = std::forward<IdT>(value);
243 }
244 template <typename IdT = Aws::String>
246 SetId(std::forward<IdT>(value));
247 return *this;
248 }
250
252
255 inline const Aws::String& GetName() const { return m_name; }
256 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
257 template <typename NameT = Aws::String>
258 void SetName(NameT&& value) {
259 m_nameHasBeenSet = true;
260 m_name = std::forward<NameT>(value);
261 }
262 template <typename NameT = Aws::String>
264 SetName(std::forward<NameT>(value));
265 return *this;
266 }
268
270
273 inline long long GetPriority() const { return m_priority; }
274 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
275 inline void SetPriority(long long value) {
276 m_priorityHasBeenSet = true;
277 m_priority = value;
278 }
280 SetPriority(value);
281 return *this;
282 }
284
286
289 inline const Aws::String& GetDnsViewId() const { return m_dnsViewId; }
290 inline bool DnsViewIdHasBeenSet() const { return m_dnsViewIdHasBeenSet; }
291 template <typename DnsViewIdT = Aws::String>
292 void SetDnsViewId(DnsViewIdT&& value) {
293 m_dnsViewIdHasBeenSet = true;
294 m_dnsViewId = std::forward<DnsViewIdT>(value);
295 }
296 template <typename DnsViewIdT = Aws::String>
298 SetDnsViewId(std::forward<DnsViewIdT>(value));
299 return *this;
300 }
302
304
307 inline const Aws::String& GetQueryType() const { return m_queryType; }
308 inline bool QueryTypeHasBeenSet() const { return m_queryTypeHasBeenSet; }
309 template <typename QueryTypeT = Aws::String>
310 void SetQueryType(QueryTypeT&& value) {
311 m_queryTypeHasBeenSet = true;
312 m_queryType = std::forward<QueryTypeT>(value);
313 }
314 template <typename QueryTypeT = Aws::String>
316 SetQueryType(std::forward<QueryTypeT>(value));
317 return *this;
318 }
320
322
325 inline CRResourceStatus GetStatus() const { return m_status; }
326 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
327 inline void SetStatus(CRResourceStatus value) {
328 m_statusHasBeenSet = true;
329 m_status = value;
330 }
332 SetStatus(value);
333 return *this;
334 }
336
338
341 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
342 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
343 template <typename UpdatedAtT = Aws::Utils::DateTime>
344 void SetUpdatedAt(UpdatedAtT&& value) {
345 m_updatedAtHasBeenSet = true;
346 m_updatedAt = std::forward<UpdatedAtT>(value);
347 }
348 template <typename UpdatedAtT = Aws::Utils::DateTime>
350 SetUpdatedAt(std::forward<UpdatedAtT>(value));
351 return *this;
352 }
354 private:
356
358
359 Aws::String m_blockOverrideDomain;
360
361 int m_blockOverrideTtl{0};
362
364
365 Aws::String m_clientToken;
366
368
369 Aws::Utils::DateTime m_createdAt{};
370
371 Aws::String m_description;
372
374
375 Aws::String m_firewallDomainListId;
376
377 Aws::String m_id;
378
379 Aws::String m_name;
380
381 long long m_priority{0};
382
383 Aws::String m_dnsViewId;
384
385 Aws::String m_queryType;
386
388
389 Aws::Utils::DateTime m_updatedAt{};
390 bool m_actionHasBeenSet = false;
391 bool m_blockOverrideDnsTypeHasBeenSet = false;
392 bool m_blockOverrideDomainHasBeenSet = false;
393 bool m_blockOverrideTtlHasBeenSet = false;
394 bool m_blockResponseHasBeenSet = false;
395 bool m_clientTokenHasBeenSet = false;
396 bool m_confidenceThresholdHasBeenSet = false;
397 bool m_createdAtHasBeenSet = false;
398 bool m_descriptionHasBeenSet = false;
399 bool m_dnsAdvancedProtectionHasBeenSet = false;
400 bool m_firewallDomainListIdHasBeenSet = false;
401 bool m_idHasBeenSet = false;
402 bool m_nameHasBeenSet = false;
403 bool m_priorityHasBeenSet = false;
404 bool m_dnsViewIdHasBeenSet = false;
405 bool m_queryTypeHasBeenSet = false;
406 bool m_statusHasBeenSet = false;
407 bool m_updatedAtHasBeenSet = false;
408};
409
410} // namespace Model
411} // namespace Route53GlobalResolver
412} // namespace Aws
BatchUpdateFirewallRuleResult & WithDnsAdvancedProtection(DnsAdvancedProtection value)
AWS_ROUTE53GLOBALRESOLVER_API BatchUpdateFirewallRuleResult(Aws::Utils::Json::JsonView jsonValue)
BatchUpdateFirewallRuleResult & WithUpdatedAt(UpdatedAtT &&value)
AWS_ROUTE53GLOBALRESOLVER_API BatchUpdateFirewallRuleResult & operator=(Aws::Utils::Json::JsonView jsonValue)
BatchUpdateFirewallRuleResult & WithClientToken(ClientTokenT &&value)
BatchUpdateFirewallRuleResult & WithFirewallDomainListId(FirewallDomainListIdT &&value)
BatchUpdateFirewallRuleResult & WithDnsViewId(DnsViewIdT &&value)
BatchUpdateFirewallRuleResult & WithConfidenceThreshold(ConfidenceThreshold value)
BatchUpdateFirewallRuleResult & WithDescription(DescriptionT &&value)
BatchUpdateFirewallRuleResult & WithBlockOverrideDomain(BlockOverrideDomainT &&value)
AWS_ROUTE53GLOBALRESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const
BatchUpdateFirewallRuleResult & WithQueryType(QueryTypeT &&value)
BatchUpdateFirewallRuleResult & WithCreatedAt(CreatedAtT &&value)
BatchUpdateFirewallRuleResult & WithBlockOverrideDnsType(BlockOverrideDnsQueryType value)
BatchUpdateFirewallRuleResult & WithAction(FirewallRuleAction value)
AWS_ROUTE53GLOBALRESOLVER_API BatchUpdateFirewallRuleResult()=default
BatchUpdateFirewallRuleResult & WithStatus(CRResourceStatus value)
BatchUpdateFirewallRuleResult & WithBlockResponse(FirewallBlockResponse value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue