AWS SDK for C++

AWS SDK for C++ Version 1.11.784

Loading...
Searching...
No Matches
BatchCreateFirewallRuleResult.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 BatchCreateFirewallRuleResult() = default;
38 AWS_ROUTE53GLOBALRESOLVER_API BatchCreateFirewallRuleResult(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ROUTE53GLOBALRESOLVER_API BatchCreateFirewallRuleResult& 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
256 inline const Aws::String& GetManagedDomainListName() const { return m_managedDomainListName; }
257 inline bool ManagedDomainListNameHasBeenSet() const { return m_managedDomainListNameHasBeenSet; }
258 template <typename ManagedDomainListNameT = Aws::String>
259 void SetManagedDomainListName(ManagedDomainListNameT&& value) {
260 m_managedDomainListNameHasBeenSet = true;
261 m_managedDomainListName = std::forward<ManagedDomainListNameT>(value);
262 }
263 template <typename ManagedDomainListNameT = Aws::String>
265 SetManagedDomainListName(std::forward<ManagedDomainListNameT>(value));
266 return *this;
267 }
269
271
274 inline const Aws::String& GetName() const { return m_name; }
275 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
276 template <typename NameT = Aws::String>
277 void SetName(NameT&& value) {
278 m_nameHasBeenSet = true;
279 m_name = std::forward<NameT>(value);
280 }
281 template <typename NameT = Aws::String>
283 SetName(std::forward<NameT>(value));
284 return *this;
285 }
287
289
292 inline long long GetPriority() const { return m_priority; }
293 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
294 inline void SetPriority(long long value) {
295 m_priorityHasBeenSet = true;
296 m_priority = value;
297 }
299 SetPriority(value);
300 return *this;
301 }
303
305
308 inline const Aws::String& GetDnsViewId() const { return m_dnsViewId; }
309 inline bool DnsViewIdHasBeenSet() const { return m_dnsViewIdHasBeenSet; }
310 template <typename DnsViewIdT = Aws::String>
311 void SetDnsViewId(DnsViewIdT&& value) {
312 m_dnsViewIdHasBeenSet = true;
313 m_dnsViewId = std::forward<DnsViewIdT>(value);
314 }
315 template <typename DnsViewIdT = Aws::String>
317 SetDnsViewId(std::forward<DnsViewIdT>(value));
318 return *this;
319 }
321
323
326 inline const Aws::String& GetQueryType() const { return m_queryType; }
327 inline bool QueryTypeHasBeenSet() const { return m_queryTypeHasBeenSet; }
328 template <typename QueryTypeT = Aws::String>
329 void SetQueryType(QueryTypeT&& value) {
330 m_queryTypeHasBeenSet = true;
331 m_queryType = std::forward<QueryTypeT>(value);
332 }
333 template <typename QueryTypeT = Aws::String>
335 SetQueryType(std::forward<QueryTypeT>(value));
336 return *this;
337 }
339
341
344 inline CRResourceStatus GetStatus() const { return m_status; }
345 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
346 inline void SetStatus(CRResourceStatus value) {
347 m_statusHasBeenSet = true;
348 m_status = value;
349 }
351 SetStatus(value);
352 return *this;
353 }
355
357
360 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
361 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
362 template <typename UpdatedAtT = Aws::Utils::DateTime>
363 void SetUpdatedAt(UpdatedAtT&& value) {
364 m_updatedAtHasBeenSet = true;
365 m_updatedAt = std::forward<UpdatedAtT>(value);
366 }
367 template <typename UpdatedAtT = Aws::Utils::DateTime>
369 SetUpdatedAt(std::forward<UpdatedAtT>(value));
370 return *this;
371 }
373 private:
375
377
378 Aws::String m_blockOverrideDomain;
379
380 int m_blockOverrideTtl{0};
381
383
384 Aws::String m_clientToken;
385
387
388 Aws::Utils::DateTime m_createdAt{};
389
390 Aws::String m_description;
391
393
394 Aws::String m_firewallDomainListId;
395
396 Aws::String m_id;
397
398 Aws::String m_managedDomainListName;
399
400 Aws::String m_name;
401
402 long long m_priority{0};
403
404 Aws::String m_dnsViewId;
405
406 Aws::String m_queryType;
407
409
410 Aws::Utils::DateTime m_updatedAt{};
411 bool m_actionHasBeenSet = false;
412 bool m_blockOverrideDnsTypeHasBeenSet = false;
413 bool m_blockOverrideDomainHasBeenSet = false;
414 bool m_blockOverrideTtlHasBeenSet = false;
415 bool m_blockResponseHasBeenSet = false;
416 bool m_clientTokenHasBeenSet = false;
417 bool m_confidenceThresholdHasBeenSet = false;
418 bool m_createdAtHasBeenSet = false;
419 bool m_descriptionHasBeenSet = false;
420 bool m_dnsAdvancedProtectionHasBeenSet = false;
421 bool m_firewallDomainListIdHasBeenSet = false;
422 bool m_idHasBeenSet = false;
423 bool m_managedDomainListNameHasBeenSet = false;
424 bool m_nameHasBeenSet = false;
425 bool m_priorityHasBeenSet = false;
426 bool m_dnsViewIdHasBeenSet = false;
427 bool m_queryTypeHasBeenSet = false;
428 bool m_statusHasBeenSet = false;
429 bool m_updatedAtHasBeenSet = false;
430};
431
432} // namespace Model
433} // namespace Route53GlobalResolver
434} // namespace Aws
BatchCreateFirewallRuleResult & WithDnsViewId(DnsViewIdT &&value)
BatchCreateFirewallRuleResult & WithClientToken(ClientTokenT &&value)
BatchCreateFirewallRuleResult & WithBlockOverrideDomain(BlockOverrideDomainT &&value)
BatchCreateFirewallRuleResult & WithDnsAdvancedProtection(DnsAdvancedProtection value)
BatchCreateFirewallRuleResult & WithFirewallDomainListId(FirewallDomainListIdT &&value)
BatchCreateFirewallRuleResult & WithManagedDomainListName(ManagedDomainListNameT &&value)
AWS_ROUTE53GLOBALRESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const
BatchCreateFirewallRuleResult & WithDescription(DescriptionT &&value)
BatchCreateFirewallRuleResult & WithCreatedAt(CreatedAtT &&value)
AWS_ROUTE53GLOBALRESOLVER_API BatchCreateFirewallRuleResult & operator=(Aws::Utils::Json::JsonView jsonValue)
BatchCreateFirewallRuleResult & WithBlockOverrideDnsType(BlockOverrideDnsQueryType value)
BatchCreateFirewallRuleResult & WithBlockResponse(FirewallBlockResponse value)
BatchCreateFirewallRuleResult & WithQueryType(QueryTypeT &&value)
AWS_ROUTE53GLOBALRESOLVER_API BatchCreateFirewallRuleResult(Aws::Utils::Json::JsonView jsonValue)
BatchCreateFirewallRuleResult & WithAction(FirewallRuleAction value)
BatchCreateFirewallRuleResult & WithUpdatedAt(UpdatedAtT &&value)
BatchCreateFirewallRuleResult & WithConfidenceThreshold(ConfidenceThreshold value)
BatchCreateFirewallRuleResult & WithStatus(CRResourceStatus value)
AWS_ROUTE53GLOBALRESOLVER_API BatchCreateFirewallRuleResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue