AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateFirewallRuleRequest.h
1
6#pragma once
7#include <aws/route53resolver/Route53Resolver_EXPORTS.h>
8#include <aws/route53resolver/Route53ResolverRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/route53resolver/model/Action.h>
11#include <aws/route53resolver/model/BlockResponse.h>
12#include <aws/route53resolver/model/BlockOverrideDnsType.h>
13#include <aws/route53resolver/model/FirewallDomainRedirectionAction.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Route53Resolver
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_ROUTE53RESOLVER_API UpdateFirewallRuleRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateFirewallRule"; }
35
36 AWS_ROUTE53RESOLVER_API Aws::String SerializePayload() const override;
37
38 AWS_ROUTE53RESOLVER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
45 inline const Aws::String& GetFirewallRuleGroupId() const{ return m_firewallRuleGroupId; }
46 inline bool FirewallRuleGroupIdHasBeenSet() const { return m_firewallRuleGroupIdHasBeenSet; }
47 inline void SetFirewallRuleGroupId(const Aws::String& value) { m_firewallRuleGroupIdHasBeenSet = true; m_firewallRuleGroupId = value; }
48 inline void SetFirewallRuleGroupId(Aws::String&& value) { m_firewallRuleGroupIdHasBeenSet = true; m_firewallRuleGroupId = std::move(value); }
49 inline void SetFirewallRuleGroupId(const char* value) { m_firewallRuleGroupIdHasBeenSet = true; m_firewallRuleGroupId.assign(value); }
51 inline UpdateFirewallRuleRequest& WithFirewallRuleGroupId(Aws::String&& value) { SetFirewallRuleGroupId(std::move(value)); return *this;}
52 inline UpdateFirewallRuleRequest& WithFirewallRuleGroupId(const char* value) { SetFirewallRuleGroupId(value); return *this;}
54
56
59 inline const Aws::String& GetFirewallDomainListId() const{ return m_firewallDomainListId; }
60 inline bool FirewallDomainListIdHasBeenSet() const { return m_firewallDomainListIdHasBeenSet; }
61 inline void SetFirewallDomainListId(const Aws::String& value) { m_firewallDomainListIdHasBeenSet = true; m_firewallDomainListId = value; }
62 inline void SetFirewallDomainListId(Aws::String&& value) { m_firewallDomainListIdHasBeenSet = true; m_firewallDomainListId = std::move(value); }
63 inline void SetFirewallDomainListId(const char* value) { m_firewallDomainListIdHasBeenSet = true; m_firewallDomainListId.assign(value); }
66 inline UpdateFirewallRuleRequest& WithFirewallDomainListId(const char* value) { SetFirewallDomainListId(value); return *this;}
68
70
78 inline int GetPriority() const{ return m_priority; }
79 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
80 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
81 inline UpdateFirewallRuleRequest& WithPriority(int value) { SetPriority(value); return *this;}
83
85
93 inline const Action& GetAction() const{ return m_action; }
94 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
95 inline void SetAction(const Action& value) { m_actionHasBeenSet = true; m_action = value; }
96 inline void SetAction(Action&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
97 inline UpdateFirewallRuleRequest& WithAction(const Action& value) { SetAction(value); return *this;}
98 inline UpdateFirewallRuleRequest& WithAction(Action&& value) { SetAction(std::move(value)); return *this;}
100
102
112 inline const BlockResponse& GetBlockResponse() const{ return m_blockResponse; }
113 inline bool BlockResponseHasBeenSet() const { return m_blockResponseHasBeenSet; }
114 inline void SetBlockResponse(const BlockResponse& value) { m_blockResponseHasBeenSet = true; m_blockResponse = value; }
115 inline void SetBlockResponse(BlockResponse&& value) { m_blockResponseHasBeenSet = true; m_blockResponse = std::move(value); }
116 inline UpdateFirewallRuleRequest& WithBlockResponse(const BlockResponse& value) { SetBlockResponse(value); return *this;}
117 inline UpdateFirewallRuleRequest& WithBlockResponse(BlockResponse&& value) { SetBlockResponse(std::move(value)); return *this;}
119
121
126 inline const Aws::String& GetBlockOverrideDomain() const{ return m_blockOverrideDomain; }
127 inline bool BlockOverrideDomainHasBeenSet() const { return m_blockOverrideDomainHasBeenSet; }
128 inline void SetBlockOverrideDomain(const Aws::String& value) { m_blockOverrideDomainHasBeenSet = true; m_blockOverrideDomain = value; }
129 inline void SetBlockOverrideDomain(Aws::String&& value) { m_blockOverrideDomainHasBeenSet = true; m_blockOverrideDomain = std::move(value); }
130 inline void SetBlockOverrideDomain(const char* value) { m_blockOverrideDomainHasBeenSet = true; m_blockOverrideDomain.assign(value); }
132 inline UpdateFirewallRuleRequest& WithBlockOverrideDomain(Aws::String&& value) { SetBlockOverrideDomain(std::move(value)); return *this;}
133 inline UpdateFirewallRuleRequest& WithBlockOverrideDomain(const char* value) { SetBlockOverrideDomain(value); return *this;}
135
137
143 inline const BlockOverrideDnsType& GetBlockOverrideDnsType() const{ return m_blockOverrideDnsType; }
144 inline bool BlockOverrideDnsTypeHasBeenSet() const { return m_blockOverrideDnsTypeHasBeenSet; }
145 inline void SetBlockOverrideDnsType(const BlockOverrideDnsType& value) { m_blockOverrideDnsTypeHasBeenSet = true; m_blockOverrideDnsType = value; }
146 inline void SetBlockOverrideDnsType(BlockOverrideDnsType&& value) { m_blockOverrideDnsTypeHasBeenSet = true; m_blockOverrideDnsType = std::move(value); }
150
152
158 inline int GetBlockOverrideTtl() const{ return m_blockOverrideTtl; }
159 inline bool BlockOverrideTtlHasBeenSet() const { return m_blockOverrideTtlHasBeenSet; }
160 inline void SetBlockOverrideTtl(int value) { m_blockOverrideTtlHasBeenSet = true; m_blockOverrideTtl = value; }
161 inline UpdateFirewallRuleRequest& WithBlockOverrideTtl(int value) { SetBlockOverrideTtl(value); return *this;}
163
165
168 inline const Aws::String& GetName() const{ return m_name; }
169 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
170 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
171 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
172 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
173 inline UpdateFirewallRuleRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
174 inline UpdateFirewallRuleRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
175 inline UpdateFirewallRuleRequest& WithName(const char* value) { SetName(value); return *this;}
177
179
188 inline const FirewallDomainRedirectionAction& GetFirewallDomainRedirectionAction() const{ return m_firewallDomainRedirectionAction; }
189 inline bool FirewallDomainRedirectionActionHasBeenSet() const { return m_firewallDomainRedirectionActionHasBeenSet; }
190 inline void SetFirewallDomainRedirectionAction(const FirewallDomainRedirectionAction& value) { m_firewallDomainRedirectionActionHasBeenSet = true; m_firewallDomainRedirectionAction = value; }
191 inline void SetFirewallDomainRedirectionAction(FirewallDomainRedirectionAction&& value) { m_firewallDomainRedirectionActionHasBeenSet = true; m_firewallDomainRedirectionAction = std::move(value); }
195
197
218 inline const Aws::String& GetQtype() const{ return m_qtype; }
219 inline bool QtypeHasBeenSet() const { return m_qtypeHasBeenSet; }
220 inline void SetQtype(const Aws::String& value) { m_qtypeHasBeenSet = true; m_qtype = value; }
221 inline void SetQtype(Aws::String&& value) { m_qtypeHasBeenSet = true; m_qtype = std::move(value); }
222 inline void SetQtype(const char* value) { m_qtypeHasBeenSet = true; m_qtype.assign(value); }
223 inline UpdateFirewallRuleRequest& WithQtype(const Aws::String& value) { SetQtype(value); return *this;}
224 inline UpdateFirewallRuleRequest& WithQtype(Aws::String&& value) { SetQtype(std::move(value)); return *this;}
225 inline UpdateFirewallRuleRequest& WithQtype(const char* value) { SetQtype(value); return *this;}
227 private:
228
229 Aws::String m_firewallRuleGroupId;
230 bool m_firewallRuleGroupIdHasBeenSet = false;
231
232 Aws::String m_firewallDomainListId;
233 bool m_firewallDomainListIdHasBeenSet = false;
234
235 int m_priority;
236 bool m_priorityHasBeenSet = false;
237
238 Action m_action;
239 bool m_actionHasBeenSet = false;
240
241 BlockResponse m_blockResponse;
242 bool m_blockResponseHasBeenSet = false;
243
244 Aws::String m_blockOverrideDomain;
245 bool m_blockOverrideDomainHasBeenSet = false;
246
247 BlockOverrideDnsType m_blockOverrideDnsType;
248 bool m_blockOverrideDnsTypeHasBeenSet = false;
249
250 int m_blockOverrideTtl;
251 bool m_blockOverrideTtlHasBeenSet = false;
252
253 Aws::String m_name;
254 bool m_nameHasBeenSet = false;
255
256 FirewallDomainRedirectionAction m_firewallDomainRedirectionAction;
257 bool m_firewallDomainRedirectionActionHasBeenSet = false;
258
259 Aws::String m_qtype;
260 bool m_qtypeHasBeenSet = false;
261 };
262
263} // namespace Model
264} // namespace Route53Resolver
265} // namespace Aws
UpdateFirewallRuleRequest & WithBlockResponse(const BlockResponse &value)
UpdateFirewallRuleRequest & WithName(Aws::String &&value)
UpdateFirewallRuleRequest & WithQtype(Aws::String &&value)
UpdateFirewallRuleRequest & WithName(const Aws::String &value)
UpdateFirewallRuleRequest & WithBlockOverrideDnsType(BlockOverrideDnsType &&value)
AWS_ROUTE53RESOLVER_API Aws::String SerializePayload() const override
AWS_ROUTE53RESOLVER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateFirewallRuleRequest & WithAction(const Action &value)
UpdateFirewallRuleRequest & WithFirewallDomainListId(Aws::String &&value)
UpdateFirewallRuleRequest & WithAction(Action &&value)
UpdateFirewallRuleRequest & WithFirewallDomainListId(const Aws::String &value)
UpdateFirewallRuleRequest & WithQtype(const Aws::String &value)
UpdateFirewallRuleRequest & WithFirewallRuleGroupId(Aws::String &&value)
const FirewallDomainRedirectionAction & GetFirewallDomainRedirectionAction() const
UpdateFirewallRuleRequest & WithQtype(const char *value)
UpdateFirewallRuleRequest & WithFirewallDomainRedirectionAction(FirewallDomainRedirectionAction &&value)
UpdateFirewallRuleRequest & WithFirewallRuleGroupId(const char *value)
UpdateFirewallRuleRequest & WithName(const char *value)
UpdateFirewallRuleRequest & WithBlockResponse(BlockResponse &&value)
void SetFirewallDomainRedirectionAction(const FirewallDomainRedirectionAction &value)
UpdateFirewallRuleRequest & WithFirewallRuleGroupId(const Aws::String &value)
UpdateFirewallRuleRequest & WithFirewallDomainRedirectionAction(const FirewallDomainRedirectionAction &value)
UpdateFirewallRuleRequest & WithBlockOverrideDomain(Aws::String &&value)
UpdateFirewallRuleRequest & WithBlockOverrideDomain(const char *value)
UpdateFirewallRuleRequest & WithFirewallDomainListId(const char *value)
UpdateFirewallRuleRequest & WithBlockOverrideDomain(const Aws::String &value)
UpdateFirewallRuleRequest & WithBlockOverrideDnsType(const BlockOverrideDnsType &value)
void SetBlockOverrideDnsType(const BlockOverrideDnsType &value)
void SetFirewallDomainRedirectionAction(FirewallDomainRedirectionAction &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String