AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateFirewallRuleRequest.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#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace Route53Resolver
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_ROUTE53RESOLVER_API CreateFirewallRuleRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateFirewallRule"; }
36
37 AWS_ROUTE53RESOLVER_API Aws::String SerializePayload() const override;
38
39 AWS_ROUTE53RESOLVER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
49 inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; }
50 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
51 inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; }
52 inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); }
53 inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); }
55 inline CreateFirewallRuleRequest& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;}
56 inline CreateFirewallRuleRequest& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;}
58
60
64 inline const Aws::String& GetFirewallRuleGroupId() const{ return m_firewallRuleGroupId; }
65 inline bool FirewallRuleGroupIdHasBeenSet() const { return m_firewallRuleGroupIdHasBeenSet; }
66 inline void SetFirewallRuleGroupId(const Aws::String& value) { m_firewallRuleGroupIdHasBeenSet = true; m_firewallRuleGroupId = value; }
67 inline void SetFirewallRuleGroupId(Aws::String&& value) { m_firewallRuleGroupIdHasBeenSet = true; m_firewallRuleGroupId = std::move(value); }
68 inline void SetFirewallRuleGroupId(const char* value) { m_firewallRuleGroupIdHasBeenSet = true; m_firewallRuleGroupId.assign(value); }
70 inline CreateFirewallRuleRequest& WithFirewallRuleGroupId(Aws::String&& value) { SetFirewallRuleGroupId(std::move(value)); return *this;}
71 inline CreateFirewallRuleRequest& WithFirewallRuleGroupId(const char* value) { SetFirewallRuleGroupId(value); return *this;}
73
75
78 inline const Aws::String& GetFirewallDomainListId() const{ return m_firewallDomainListId; }
79 inline bool FirewallDomainListIdHasBeenSet() const { return m_firewallDomainListIdHasBeenSet; }
80 inline void SetFirewallDomainListId(const Aws::String& value) { m_firewallDomainListIdHasBeenSet = true; m_firewallDomainListId = value; }
81 inline void SetFirewallDomainListId(Aws::String&& value) { m_firewallDomainListIdHasBeenSet = true; m_firewallDomainListId = std::move(value); }
82 inline void SetFirewallDomainListId(const char* value) { m_firewallDomainListIdHasBeenSet = true; m_firewallDomainListId.assign(value); }
85 inline CreateFirewallRuleRequest& WithFirewallDomainListId(const char* value) { SetFirewallDomainListId(value); return *this;}
87
89
97 inline int GetPriority() const{ return m_priority; }
98 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
99 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
100 inline CreateFirewallRuleRequest& WithPriority(int value) { SetPriority(value); return *this;}
102
104
112 inline const Action& GetAction() const{ return m_action; }
113 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
114 inline void SetAction(const Action& value) { m_actionHasBeenSet = true; m_action = value; }
115 inline void SetAction(Action&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
116 inline CreateFirewallRuleRequest& WithAction(const Action& value) { SetAction(value); return *this;}
117 inline CreateFirewallRuleRequest& WithAction(Action&& value) { SetAction(std::move(value)); return *this;}
119
121
132 inline const BlockResponse& GetBlockResponse() const{ return m_blockResponse; }
133 inline bool BlockResponseHasBeenSet() const { return m_blockResponseHasBeenSet; }
134 inline void SetBlockResponse(const BlockResponse& value) { m_blockResponseHasBeenSet = true; m_blockResponse = value; }
135 inline void SetBlockResponse(BlockResponse&& value) { m_blockResponseHasBeenSet = true; m_blockResponse = std::move(value); }
136 inline CreateFirewallRuleRequest& WithBlockResponse(const BlockResponse& value) { SetBlockResponse(value); return *this;}
137 inline CreateFirewallRuleRequest& WithBlockResponse(BlockResponse&& value) { SetBlockResponse(std::move(value)); return *this;}
139
141
147 inline const Aws::String& GetBlockOverrideDomain() const{ return m_blockOverrideDomain; }
148 inline bool BlockOverrideDomainHasBeenSet() const { return m_blockOverrideDomainHasBeenSet; }
149 inline void SetBlockOverrideDomain(const Aws::String& value) { m_blockOverrideDomainHasBeenSet = true; m_blockOverrideDomain = value; }
150 inline void SetBlockOverrideDomain(Aws::String&& value) { m_blockOverrideDomainHasBeenSet = true; m_blockOverrideDomain = std::move(value); }
151 inline void SetBlockOverrideDomain(const char* value) { m_blockOverrideDomainHasBeenSet = true; m_blockOverrideDomain.assign(value); }
153 inline CreateFirewallRuleRequest& WithBlockOverrideDomain(Aws::String&& value) { SetBlockOverrideDomain(std::move(value)); return *this;}
154 inline CreateFirewallRuleRequest& WithBlockOverrideDomain(const char* value) { SetBlockOverrideDomain(value); return *this;}
156
158
165 inline const BlockOverrideDnsType& GetBlockOverrideDnsType() const{ return m_blockOverrideDnsType; }
166 inline bool BlockOverrideDnsTypeHasBeenSet() const { return m_blockOverrideDnsTypeHasBeenSet; }
167 inline void SetBlockOverrideDnsType(const BlockOverrideDnsType& value) { m_blockOverrideDnsTypeHasBeenSet = true; m_blockOverrideDnsType = value; }
168 inline void SetBlockOverrideDnsType(BlockOverrideDnsType&& value) { m_blockOverrideDnsTypeHasBeenSet = true; m_blockOverrideDnsType = std::move(value); }
172
174
181 inline int GetBlockOverrideTtl() const{ return m_blockOverrideTtl; }
182 inline bool BlockOverrideTtlHasBeenSet() const { return m_blockOverrideTtlHasBeenSet; }
183 inline void SetBlockOverrideTtl(int value) { m_blockOverrideTtlHasBeenSet = true; m_blockOverrideTtl = value; }
184 inline CreateFirewallRuleRequest& WithBlockOverrideTtl(int value) { SetBlockOverrideTtl(value); return *this;}
186
188
191 inline const Aws::String& GetName() const{ return m_name; }
192 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
193 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
194 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
195 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
196 inline CreateFirewallRuleRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
197 inline CreateFirewallRuleRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
198 inline CreateFirewallRuleRequest& WithName(const char* value) { SetName(value); return *this;}
200
202
211 inline const FirewallDomainRedirectionAction& GetFirewallDomainRedirectionAction() const{ return m_firewallDomainRedirectionAction; }
212 inline bool FirewallDomainRedirectionActionHasBeenSet() const { return m_firewallDomainRedirectionActionHasBeenSet; }
213 inline void SetFirewallDomainRedirectionAction(const FirewallDomainRedirectionAction& value) { m_firewallDomainRedirectionActionHasBeenSet = true; m_firewallDomainRedirectionAction = value; }
214 inline void SetFirewallDomainRedirectionAction(FirewallDomainRedirectionAction&& value) { m_firewallDomainRedirectionActionHasBeenSet = true; m_firewallDomainRedirectionAction = std::move(value); }
218
220
239 inline const Aws::String& GetQtype() const{ return m_qtype; }
240 inline bool QtypeHasBeenSet() const { return m_qtypeHasBeenSet; }
241 inline void SetQtype(const Aws::String& value) { m_qtypeHasBeenSet = true; m_qtype = value; }
242 inline void SetQtype(Aws::String&& value) { m_qtypeHasBeenSet = true; m_qtype = std::move(value); }
243 inline void SetQtype(const char* value) { m_qtypeHasBeenSet = true; m_qtype.assign(value); }
244 inline CreateFirewallRuleRequest& WithQtype(const Aws::String& value) { SetQtype(value); return *this;}
245 inline CreateFirewallRuleRequest& WithQtype(Aws::String&& value) { SetQtype(std::move(value)); return *this;}
246 inline CreateFirewallRuleRequest& WithQtype(const char* value) { SetQtype(value); return *this;}
248 private:
249
250 Aws::String m_creatorRequestId;
251 bool m_creatorRequestIdHasBeenSet = false;
252
253 Aws::String m_firewallRuleGroupId;
254 bool m_firewallRuleGroupIdHasBeenSet = false;
255
256 Aws::String m_firewallDomainListId;
257 bool m_firewallDomainListIdHasBeenSet = false;
258
259 int m_priority;
260 bool m_priorityHasBeenSet = false;
261
262 Action m_action;
263 bool m_actionHasBeenSet = false;
264
265 BlockResponse m_blockResponse;
266 bool m_blockResponseHasBeenSet = false;
267
268 Aws::String m_blockOverrideDomain;
269 bool m_blockOverrideDomainHasBeenSet = false;
270
271 BlockOverrideDnsType m_blockOverrideDnsType;
272 bool m_blockOverrideDnsTypeHasBeenSet = false;
273
274 int m_blockOverrideTtl;
275 bool m_blockOverrideTtlHasBeenSet = false;
276
277 Aws::String m_name;
278 bool m_nameHasBeenSet = false;
279
280 FirewallDomainRedirectionAction m_firewallDomainRedirectionAction;
281 bool m_firewallDomainRedirectionActionHasBeenSet = false;
282
283 Aws::String m_qtype;
284 bool m_qtypeHasBeenSet = false;
285 };
286
287} // namespace Model
288} // namespace Route53Resolver
289} // namespace Aws
CreateFirewallRuleRequest & WithCreatorRequestId(const Aws::String &value)
CreateFirewallRuleRequest & WithBlockOverrideDomain(Aws::String &&value)
CreateFirewallRuleRequest & WithFirewallRuleGroupId(Aws::String &&value)
CreateFirewallRuleRequest & WithFirewallDomainListId(const char *value)
CreateFirewallRuleRequest & WithAction(Action &&value)
CreateFirewallRuleRequest & WithFirewallDomainListId(const Aws::String &value)
CreateFirewallRuleRequest & WithCreatorRequestId(Aws::String &&value)
CreateFirewallRuleRequest & WithBlockResponse(BlockResponse &&value)
AWS_ROUTE53RESOLVER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const FirewallDomainRedirectionAction & GetFirewallDomainRedirectionAction() const
CreateFirewallRuleRequest & WithName(const char *value)
CreateFirewallRuleRequest & WithFirewallDomainRedirectionAction(const FirewallDomainRedirectionAction &value)
CreateFirewallRuleRequest & WithName(Aws::String &&value)
CreateFirewallRuleRequest & WithFirewallRuleGroupId(const Aws::String &value)
CreateFirewallRuleRequest & WithQtype(const char *value)
CreateFirewallRuleRequest & WithFirewallDomainListId(Aws::String &&value)
void SetFirewallDomainRedirectionAction(const FirewallDomainRedirectionAction &value)
AWS_ROUTE53RESOLVER_API Aws::String SerializePayload() const override
void SetBlockOverrideDnsType(const BlockOverrideDnsType &value)
CreateFirewallRuleRequest & WithFirewallRuleGroupId(const char *value)
CreateFirewallRuleRequest & WithFirewallDomainRedirectionAction(FirewallDomainRedirectionAction &&value)
CreateFirewallRuleRequest & WithBlockResponse(const BlockResponse &value)
CreateFirewallRuleRequest & WithBlockOverrideDomain(const char *value)
CreateFirewallRuleRequest & WithCreatorRequestId(const char *value)
CreateFirewallRuleRequest & WithBlockOverrideDnsType(BlockOverrideDnsType &&value)
CreateFirewallRuleRequest & WithBlockOverrideDnsType(const BlockOverrideDnsType &value)
CreateFirewallRuleRequest & WithQtype(const Aws::String &value)
CreateFirewallRuleRequest & WithAction(const Action &value)
CreateFirewallRuleRequest & WithQtype(Aws::String &&value)
void SetFirewallDomainRedirectionAction(FirewallDomainRedirectionAction &&value)
CreateFirewallRuleRequest & WithName(const Aws::String &value)
CreateFirewallRuleRequest & WithBlockOverrideDomain(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String