AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FirewallRule.h
1
6#pragma once
7#include <aws/route53resolver/Route53Resolver_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/route53resolver/model/Action.h>
10#include <aws/route53resolver/model/BlockResponse.h>
11#include <aws/route53resolver/model/BlockOverrideDnsType.h>
12#include <aws/route53resolver/model/FirewallDomainRedirectionAction.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Route53Resolver
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_ROUTE53RESOLVER_API FirewallRule();
39 AWS_ROUTE53RESOLVER_API FirewallRule(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ROUTE53RESOLVER_API FirewallRule& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ROUTE53RESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetFirewallRuleGroupId() const{ return m_firewallRuleGroupId; }
49 inline bool FirewallRuleGroupIdHasBeenSet() const { return m_firewallRuleGroupIdHasBeenSet; }
50 inline void SetFirewallRuleGroupId(const Aws::String& value) { m_firewallRuleGroupIdHasBeenSet = true; m_firewallRuleGroupId = value; }
51 inline void SetFirewallRuleGroupId(Aws::String&& value) { m_firewallRuleGroupIdHasBeenSet = true; m_firewallRuleGroupId = std::move(value); }
52 inline void SetFirewallRuleGroupId(const char* value) { m_firewallRuleGroupIdHasBeenSet = true; m_firewallRuleGroupId.assign(value); }
53 inline FirewallRule& WithFirewallRuleGroupId(const Aws::String& value) { SetFirewallRuleGroupId(value); return *this;}
54 inline FirewallRule& WithFirewallRuleGroupId(Aws::String&& value) { SetFirewallRuleGroupId(std::move(value)); return *this;}
55 inline FirewallRule& WithFirewallRuleGroupId(const char* value) { SetFirewallRuleGroupId(value); return *this;}
57
59
62 inline const Aws::String& GetFirewallDomainListId() const{ return m_firewallDomainListId; }
63 inline bool FirewallDomainListIdHasBeenSet() const { return m_firewallDomainListIdHasBeenSet; }
64 inline void SetFirewallDomainListId(const Aws::String& value) { m_firewallDomainListIdHasBeenSet = true; m_firewallDomainListId = value; }
65 inline void SetFirewallDomainListId(Aws::String&& value) { m_firewallDomainListIdHasBeenSet = true; m_firewallDomainListId = std::move(value); }
66 inline void SetFirewallDomainListId(const char* value) { m_firewallDomainListIdHasBeenSet = true; m_firewallDomainListId.assign(value); }
67 inline FirewallRule& WithFirewallDomainListId(const Aws::String& value) { SetFirewallDomainListId(value); return *this;}
68 inline FirewallRule& WithFirewallDomainListId(Aws::String&& value) { SetFirewallDomainListId(std::move(value)); return *this;}
69 inline FirewallRule& WithFirewallDomainListId(const char* value) { SetFirewallDomainListId(value); return *this;}
71
73
76 inline const Aws::String& GetName() const{ return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
79 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
80 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
81 inline FirewallRule& WithName(const Aws::String& value) { SetName(value); return *this;}
82 inline FirewallRule& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
83 inline FirewallRule& WithName(const char* value) { SetName(value); return *this;}
85
87
92 inline int GetPriority() const{ return m_priority; }
93 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
94 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
95 inline FirewallRule& WithPriority(int value) { SetPriority(value); return *this;}
97
99
108 inline const Action& GetAction() const{ return m_action; }
109 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
110 inline void SetAction(const Action& value) { m_actionHasBeenSet = true; m_action = value; }
111 inline void SetAction(Action&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
112 inline FirewallRule& WithAction(const Action& value) { SetAction(value); return *this;}
113 inline FirewallRule& WithAction(Action&& value) { SetAction(std::move(value)); return *this;}
115
117
127 inline const BlockResponse& GetBlockResponse() const{ return m_blockResponse; }
128 inline bool BlockResponseHasBeenSet() const { return m_blockResponseHasBeenSet; }
129 inline void SetBlockResponse(const BlockResponse& value) { m_blockResponseHasBeenSet = true; m_blockResponse = value; }
130 inline void SetBlockResponse(BlockResponse&& value) { m_blockResponseHasBeenSet = true; m_blockResponse = std::move(value); }
131 inline FirewallRule& WithBlockResponse(const BlockResponse& value) { SetBlockResponse(value); return *this;}
132 inline FirewallRule& WithBlockResponse(BlockResponse&& value) { SetBlockResponse(std::move(value)); return *this;}
134
136
141 inline const Aws::String& GetBlockOverrideDomain() const{ return m_blockOverrideDomain; }
142 inline bool BlockOverrideDomainHasBeenSet() const { return m_blockOverrideDomainHasBeenSet; }
143 inline void SetBlockOverrideDomain(const Aws::String& value) { m_blockOverrideDomainHasBeenSet = true; m_blockOverrideDomain = value; }
144 inline void SetBlockOverrideDomain(Aws::String&& value) { m_blockOverrideDomainHasBeenSet = true; m_blockOverrideDomain = std::move(value); }
145 inline void SetBlockOverrideDomain(const char* value) { m_blockOverrideDomainHasBeenSet = true; m_blockOverrideDomain.assign(value); }
146 inline FirewallRule& WithBlockOverrideDomain(const Aws::String& value) { SetBlockOverrideDomain(value); return *this;}
147 inline FirewallRule& WithBlockOverrideDomain(Aws::String&& value) { SetBlockOverrideDomain(std::move(value)); return *this;}
148 inline FirewallRule& WithBlockOverrideDomain(const char* value) { SetBlockOverrideDomain(value); return *this;}
150
152
158 inline const BlockOverrideDnsType& GetBlockOverrideDnsType() const{ return m_blockOverrideDnsType; }
159 inline bool BlockOverrideDnsTypeHasBeenSet() const { return m_blockOverrideDnsTypeHasBeenSet; }
160 inline void SetBlockOverrideDnsType(const BlockOverrideDnsType& value) { m_blockOverrideDnsTypeHasBeenSet = true; m_blockOverrideDnsType = value; }
161 inline void SetBlockOverrideDnsType(BlockOverrideDnsType&& value) { m_blockOverrideDnsTypeHasBeenSet = true; m_blockOverrideDnsType = std::move(value); }
163 inline FirewallRule& WithBlockOverrideDnsType(BlockOverrideDnsType&& value) { SetBlockOverrideDnsType(std::move(value)); return *this;}
165
167
173 inline int GetBlockOverrideTtl() const{ return m_blockOverrideTtl; }
174 inline bool BlockOverrideTtlHasBeenSet() const { return m_blockOverrideTtlHasBeenSet; }
175 inline void SetBlockOverrideTtl(int value) { m_blockOverrideTtlHasBeenSet = true; m_blockOverrideTtl = value; }
176 inline FirewallRule& WithBlockOverrideTtl(int value) { SetBlockOverrideTtl(value); return *this;}
178
180
185 inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; }
186 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
187 inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; }
188 inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); }
189 inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); }
190 inline FirewallRule& WithCreatorRequestId(const Aws::String& value) { SetCreatorRequestId(value); return *this;}
191 inline FirewallRule& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;}
192 inline FirewallRule& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;}
194
196
200 inline const Aws::String& GetCreationTime() const{ return m_creationTime; }
201 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
202 inline void SetCreationTime(const Aws::String& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
203 inline void SetCreationTime(Aws::String&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
204 inline void SetCreationTime(const char* value) { m_creationTimeHasBeenSet = true; m_creationTime.assign(value); }
205 inline FirewallRule& WithCreationTime(const Aws::String& value) { SetCreationTime(value); return *this;}
206 inline FirewallRule& WithCreationTime(Aws::String&& value) { SetCreationTime(std::move(value)); return *this;}
207 inline FirewallRule& WithCreationTime(const char* value) { SetCreationTime(value); return *this;}
209
211
215 inline const Aws::String& GetModificationTime() const{ return m_modificationTime; }
216 inline bool ModificationTimeHasBeenSet() const { return m_modificationTimeHasBeenSet; }
217 inline void SetModificationTime(const Aws::String& value) { m_modificationTimeHasBeenSet = true; m_modificationTime = value; }
218 inline void SetModificationTime(Aws::String&& value) { m_modificationTimeHasBeenSet = true; m_modificationTime = std::move(value); }
219 inline void SetModificationTime(const char* value) { m_modificationTimeHasBeenSet = true; m_modificationTime.assign(value); }
220 inline FirewallRule& WithModificationTime(const Aws::String& value) { SetModificationTime(value); return *this;}
221 inline FirewallRule& WithModificationTime(Aws::String&& value) { SetModificationTime(std::move(value)); return *this;}
222 inline FirewallRule& WithModificationTime(const char* value) { SetModificationTime(value); return *this;}
224
226
235 inline const FirewallDomainRedirectionAction& GetFirewallDomainRedirectionAction() const{ return m_firewallDomainRedirectionAction; }
236 inline bool FirewallDomainRedirectionActionHasBeenSet() const { return m_firewallDomainRedirectionActionHasBeenSet; }
237 inline void SetFirewallDomainRedirectionAction(const FirewallDomainRedirectionAction& value) { m_firewallDomainRedirectionActionHasBeenSet = true; m_firewallDomainRedirectionAction = value; }
238 inline void SetFirewallDomainRedirectionAction(FirewallDomainRedirectionAction&& value) { m_firewallDomainRedirectionActionHasBeenSet = true; m_firewallDomainRedirectionAction = std::move(value); }
242
244
263 inline const Aws::String& GetQtype() const{ return m_qtype; }
264 inline bool QtypeHasBeenSet() const { return m_qtypeHasBeenSet; }
265 inline void SetQtype(const Aws::String& value) { m_qtypeHasBeenSet = true; m_qtype = value; }
266 inline void SetQtype(Aws::String&& value) { m_qtypeHasBeenSet = true; m_qtype = std::move(value); }
267 inline void SetQtype(const char* value) { m_qtypeHasBeenSet = true; m_qtype.assign(value); }
268 inline FirewallRule& WithQtype(const Aws::String& value) { SetQtype(value); return *this;}
269 inline FirewallRule& WithQtype(Aws::String&& value) { SetQtype(std::move(value)); return *this;}
270 inline FirewallRule& WithQtype(const char* value) { SetQtype(value); return *this;}
272 private:
273
274 Aws::String m_firewallRuleGroupId;
275 bool m_firewallRuleGroupIdHasBeenSet = false;
276
277 Aws::String m_firewallDomainListId;
278 bool m_firewallDomainListIdHasBeenSet = false;
279
280 Aws::String m_name;
281 bool m_nameHasBeenSet = false;
282
283 int m_priority;
284 bool m_priorityHasBeenSet = false;
285
286 Action m_action;
287 bool m_actionHasBeenSet = false;
288
289 BlockResponse m_blockResponse;
290 bool m_blockResponseHasBeenSet = false;
291
292 Aws::String m_blockOverrideDomain;
293 bool m_blockOverrideDomainHasBeenSet = false;
294
295 BlockOverrideDnsType m_blockOverrideDnsType;
296 bool m_blockOverrideDnsTypeHasBeenSet = false;
297
298 int m_blockOverrideTtl;
299 bool m_blockOverrideTtlHasBeenSet = false;
300
301 Aws::String m_creatorRequestId;
302 bool m_creatorRequestIdHasBeenSet = false;
303
304 Aws::String m_creationTime;
305 bool m_creationTimeHasBeenSet = false;
306
307 Aws::String m_modificationTime;
308 bool m_modificationTimeHasBeenSet = false;
309
310 FirewallDomainRedirectionAction m_firewallDomainRedirectionAction;
311 bool m_firewallDomainRedirectionActionHasBeenSet = false;
312
313 Aws::String m_qtype;
314 bool m_qtypeHasBeenSet = false;
315 };
316
317} // namespace Model
318} // namespace Route53Resolver
319} // namespace Aws
FirewallRule & WithModificationTime(const Aws::String &value)
void SetModificationTime(const char *value)
void SetModificationTime(Aws::String &&value)
void SetModificationTime(const Aws::String &value)
FirewallRule & WithBlockOverrideDnsType(const BlockOverrideDnsType &value)
AWS_ROUTE53RESOLVER_API FirewallRule(Aws::Utils::Json::JsonView jsonValue)
FirewallRule & WithBlockOverrideDomain(const Aws::String &value)
FirewallRule & WithFirewallDomainListId(Aws::String &&value)
const FirewallDomainRedirectionAction & GetFirewallDomainRedirectionAction() const
FirewallRule & WithCreationTime(Aws::String &&value)
FirewallRule & WithFirewallDomainListId(const Aws::String &value)
const Aws::String & GetModificationTime() const
void SetFirewallDomainRedirectionAction(FirewallDomainRedirectionAction &&value)
void SetBlockOverrideDomain(const char *value)
FirewallRule & WithAction(const Action &value)
void SetBlockOverrideDomain(Aws::String &&value)
const Aws::String & GetCreationTime() const
void SetName(const Aws::String &value)
FirewallRule & WithName(const Aws::String &value)
FirewallRule & WithCreationTime(const char *value)
FirewallRule & WithModificationTime(const char *value)
FirewallRule & WithQtype(Aws::String &&value)
FirewallRule & WithFirewallRuleGroupId(const Aws::String &value)
FirewallRule & WithFirewallRuleGroupId(Aws::String &&value)
FirewallRule & WithFirewallDomainListId(const char *value)
FirewallRule & WithName(const char *value)
const Aws::String & GetBlockOverrideDomain() const
void SetBlockResponse(const BlockResponse &value)
void SetCreatorRequestId(Aws::String &&value)
void SetBlockOverrideDnsType(BlockOverrideDnsType &&value)
AWS_ROUTE53RESOLVER_API FirewallRule & operator=(Aws::Utils::Json::JsonView jsonValue)
FirewallRule & WithCreatorRequestId(const Aws::String &value)
const BlockResponse & GetBlockResponse() const
void SetCreationTime(const Aws::String &value)
void SetFirewallDomainListId(Aws::String &&value)
const BlockOverrideDnsType & GetBlockOverrideDnsType() const
FirewallRule & WithBlockResponse(const BlockResponse &value)
FirewallRule & WithFirewallRuleGroupId(const char *value)
void SetQtype(const Aws::String &value)
void SetBlockResponse(BlockResponse &&value)
FirewallRule & WithAction(Action &&value)
FirewallRule & WithPriority(int value)
FirewallRule & WithFirewallDomainRedirectionAction(const FirewallDomainRedirectionAction &value)
FirewallRule & WithName(Aws::String &&value)
void SetFirewallRuleGroupId(Aws::String &&value)
const Aws::String & GetCreatorRequestId() const
void SetFirewallRuleGroupId(const Aws::String &value)
const Aws::String & GetFirewallDomainListId() const
void SetBlockOverrideDnsType(const BlockOverrideDnsType &value)
FirewallRule & WithModificationTime(Aws::String &&value)
void SetCreatorRequestId(const char *value)
AWS_ROUTE53RESOLVER_API FirewallRule()
void SetBlockOverrideDomain(const Aws::String &value)
void SetFirewallRuleGroupId(const char *value)
FirewallRule & WithQtype(const Aws::String &value)
void SetCreationTime(Aws::String &&value)
FirewallRule & WithFirewallDomainRedirectionAction(FirewallDomainRedirectionAction &&value)
FirewallRule & WithBlockOverrideDnsType(BlockOverrideDnsType &&value)
const Aws::String & GetQtype() const
AWS_ROUTE53RESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetFirewallDomainListId(const Aws::String &value)
FirewallRule & WithBlockOverrideTtl(int value)
void SetFirewallDomainRedirectionAction(const FirewallDomainRedirectionAction &value)
FirewallRule & WithBlockOverrideDomain(const char *value)
FirewallRule & WithCreatorRequestId(const char *value)
FirewallRule & WithBlockResponse(BlockResponse &&value)
FirewallRule & WithCreationTime(const Aws::String &value)
FirewallRule & WithBlockOverrideDomain(Aws::String &&value)
const Aws::String & GetName() const
void SetCreatorRequestId(const Aws::String &value)
FirewallRule & WithQtype(const char *value)
const Aws::String & GetFirewallRuleGroupId() const
void SetFirewallDomainListId(const char *value)
FirewallRule & WithCreatorRequestId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue