AWS SDK for C++

AWS SDK for C++ Version 1.11.784

Loading...
Searching...
No Matches
FirewallRulesItem.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
35 public:
36 AWS_ROUTE53GLOBALRESOLVER_API FirewallRulesItem() = default;
37 AWS_ROUTE53GLOBALRESOLVER_API FirewallRulesItem(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ROUTE53GLOBALRESOLVER_API FirewallRulesItem& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ROUTE53GLOBALRESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline FirewallRuleAction GetAction() const { return m_action; }
46 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
47 inline void SetAction(FirewallRuleAction value) {
48 m_actionHasBeenSet = true;
49 m_action = value;
50 }
52 SetAction(value);
53 return *this;
54 }
56
58
61 inline BlockOverrideDnsQueryType GetBlockOverrideDnsType() const { return m_blockOverrideDnsType; }
62 inline bool BlockOverrideDnsTypeHasBeenSet() const { return m_blockOverrideDnsTypeHasBeenSet; }
64 m_blockOverrideDnsTypeHasBeenSet = true;
65 m_blockOverrideDnsType = value;
66 }
69 return *this;
70 }
72
74
77 inline const Aws::String& GetBlockOverrideDomain() const { return m_blockOverrideDomain; }
78 inline bool BlockOverrideDomainHasBeenSet() const { return m_blockOverrideDomainHasBeenSet; }
79 template <typename BlockOverrideDomainT = Aws::String>
80 void SetBlockOverrideDomain(BlockOverrideDomainT&& value) {
81 m_blockOverrideDomainHasBeenSet = true;
82 m_blockOverrideDomain = std::forward<BlockOverrideDomainT>(value);
83 }
84 template <typename BlockOverrideDomainT = Aws::String>
85 FirewallRulesItem& WithBlockOverrideDomain(BlockOverrideDomainT&& value) {
86 SetBlockOverrideDomain(std::forward<BlockOverrideDomainT>(value));
87 return *this;
88 }
90
92
95 inline int GetBlockOverrideTtl() const { return m_blockOverrideTtl; }
96 inline bool BlockOverrideTtlHasBeenSet() const { return m_blockOverrideTtlHasBeenSet; }
97 inline void SetBlockOverrideTtl(int value) {
98 m_blockOverrideTtlHasBeenSet = true;
99 m_blockOverrideTtl = value;
100 }
102 SetBlockOverrideTtl(value);
103 return *this;
104 }
106
108
111 inline FirewallBlockResponse GetBlockResponse() const { return m_blockResponse; }
112 inline bool BlockResponseHasBeenSet() const { return m_blockResponseHasBeenSet; }
114 m_blockResponseHasBeenSet = true;
115 m_blockResponse = value;
116 }
118 SetBlockResponse(value);
119 return *this;
120 }
122
124
128 inline ConfidenceThreshold GetConfidenceThreshold() const { return m_confidenceThreshold; }
129 inline bool ConfidenceThresholdHasBeenSet() const { return m_confidenceThresholdHasBeenSet; }
131 m_confidenceThresholdHasBeenSet = true;
132 m_confidenceThreshold = value;
133 }
136 return *this;
137 }
139
141
144 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
145 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
146 template <typename CreatedAtT = Aws::Utils::DateTime>
147 void SetCreatedAt(CreatedAtT&& value) {
148 m_createdAtHasBeenSet = true;
149 m_createdAt = std::forward<CreatedAtT>(value);
150 }
151 template <typename CreatedAtT = Aws::Utils::DateTime>
152 FirewallRulesItem& WithCreatedAt(CreatedAtT&& value) {
153 SetCreatedAt(std::forward<CreatedAtT>(value));
154 return *this;
155 }
157
159
162 inline const Aws::String& GetDescription() const { return m_description; }
163 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
164 template <typename DescriptionT = Aws::String>
165 void SetDescription(DescriptionT&& value) {
166 m_descriptionHasBeenSet = true;
167 m_description = std::forward<DescriptionT>(value);
168 }
169 template <typename DescriptionT = Aws::String>
170 FirewallRulesItem& WithDescription(DescriptionT&& value) {
171 SetDescription(std::forward<DescriptionT>(value));
172 return *this;
173 }
175
177
180 inline DnsAdvancedProtection GetDnsAdvancedProtection() const { return m_dnsAdvancedProtection; }
181 inline bool DnsAdvancedProtectionHasBeenSet() const { return m_dnsAdvancedProtectionHasBeenSet; }
183 m_dnsAdvancedProtectionHasBeenSet = true;
184 m_dnsAdvancedProtection = value;
185 }
188 return *this;
189 }
191
193
196 inline const Aws::String& GetFirewallDomainListId() const { return m_firewallDomainListId; }
197 inline bool FirewallDomainListIdHasBeenSet() const { return m_firewallDomainListIdHasBeenSet; }
198 template <typename FirewallDomainListIdT = Aws::String>
199 void SetFirewallDomainListId(FirewallDomainListIdT&& value) {
200 m_firewallDomainListIdHasBeenSet = true;
201 m_firewallDomainListId = std::forward<FirewallDomainListIdT>(value);
202 }
203 template <typename FirewallDomainListIdT = Aws::String>
204 FirewallRulesItem& WithFirewallDomainListId(FirewallDomainListIdT&& value) {
205 SetFirewallDomainListId(std::forward<FirewallDomainListIdT>(value));
206 return *this;
207 }
209
211
214 inline const Aws::String& GetId() const { return m_id; }
215 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
216 template <typename IdT = Aws::String>
217 void SetId(IdT&& value) {
218 m_idHasBeenSet = true;
219 m_id = std::forward<IdT>(value);
220 }
221 template <typename IdT = Aws::String>
222 FirewallRulesItem& WithId(IdT&& value) {
223 SetId(std::forward<IdT>(value));
224 return *this;
225 }
227
229
232 inline const Aws::String& GetName() const { return m_name; }
233 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
234 template <typename NameT = Aws::String>
235 void SetName(NameT&& value) {
236 m_nameHasBeenSet = true;
237 m_name = std::forward<NameT>(value);
238 }
239 template <typename NameT = Aws::String>
240 FirewallRulesItem& WithName(NameT&& value) {
241 SetName(std::forward<NameT>(value));
242 return *this;
243 }
245
247
250 inline long long GetPriority() const { return m_priority; }
251 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
252 inline void SetPriority(long long value) {
253 m_priorityHasBeenSet = true;
254 m_priority = value;
255 }
256 inline FirewallRulesItem& WithPriority(long long value) {
257 SetPriority(value);
258 return *this;
259 }
261
263
266 inline const Aws::String& GetDnsViewId() const { return m_dnsViewId; }
267 inline bool DnsViewIdHasBeenSet() const { return m_dnsViewIdHasBeenSet; }
268 template <typename DnsViewIdT = Aws::String>
269 void SetDnsViewId(DnsViewIdT&& value) {
270 m_dnsViewIdHasBeenSet = true;
271 m_dnsViewId = std::forward<DnsViewIdT>(value);
272 }
273 template <typename DnsViewIdT = Aws::String>
274 FirewallRulesItem& WithDnsViewId(DnsViewIdT&& value) {
275 SetDnsViewId(std::forward<DnsViewIdT>(value));
276 return *this;
277 }
279
281
284 inline const Aws::String& GetQueryType() const { return m_queryType; }
285 inline bool QueryTypeHasBeenSet() const { return m_queryTypeHasBeenSet; }
286 template <typename QueryTypeT = Aws::String>
287 void SetQueryType(QueryTypeT&& value) {
288 m_queryTypeHasBeenSet = true;
289 m_queryType = std::forward<QueryTypeT>(value);
290 }
291 template <typename QueryTypeT = Aws::String>
292 FirewallRulesItem& WithQueryType(QueryTypeT&& value) {
293 SetQueryType(std::forward<QueryTypeT>(value));
294 return *this;
295 }
297
299
302 inline CRResourceStatus GetStatus() const { return m_status; }
303 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
304 inline void SetStatus(CRResourceStatus value) {
305 m_statusHasBeenSet = true;
306 m_status = value;
307 }
309 SetStatus(value);
310 return *this;
311 }
313
315
318 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
319 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
320 template <typename UpdatedAtT = Aws::Utils::DateTime>
321 void SetUpdatedAt(UpdatedAtT&& value) {
322 m_updatedAtHasBeenSet = true;
323 m_updatedAt = std::forward<UpdatedAtT>(value);
324 }
325 template <typename UpdatedAtT = Aws::Utils::DateTime>
326 FirewallRulesItem& WithUpdatedAt(UpdatedAtT&& value) {
327 SetUpdatedAt(std::forward<UpdatedAtT>(value));
328 return *this;
329 }
331 private:
333
335
336 Aws::String m_blockOverrideDomain;
337
338 int m_blockOverrideTtl{0};
339
341
343
344 Aws::Utils::DateTime m_createdAt{};
345
346 Aws::String m_description;
347
349
350 Aws::String m_firewallDomainListId;
351
352 Aws::String m_id;
353
354 Aws::String m_name;
355
356 long long m_priority{0};
357
358 Aws::String m_dnsViewId;
359
360 Aws::String m_queryType;
361
363
364 Aws::Utils::DateTime m_updatedAt{};
365 bool m_actionHasBeenSet = false;
366 bool m_blockOverrideDnsTypeHasBeenSet = false;
367 bool m_blockOverrideDomainHasBeenSet = false;
368 bool m_blockOverrideTtlHasBeenSet = false;
369 bool m_blockResponseHasBeenSet = false;
370 bool m_confidenceThresholdHasBeenSet = false;
371 bool m_createdAtHasBeenSet = false;
372 bool m_descriptionHasBeenSet = false;
373 bool m_dnsAdvancedProtectionHasBeenSet = false;
374 bool m_firewallDomainListIdHasBeenSet = false;
375 bool m_idHasBeenSet = false;
376 bool m_nameHasBeenSet = false;
377 bool m_priorityHasBeenSet = false;
378 bool m_dnsViewIdHasBeenSet = false;
379 bool m_queryTypeHasBeenSet = false;
380 bool m_statusHasBeenSet = false;
381 bool m_updatedAtHasBeenSet = false;
382};
383
384} // namespace Model
385} // namespace Route53GlobalResolver
386} // namespace Aws
void SetBlockOverrideDnsType(BlockOverrideDnsQueryType value)
FirewallRulesItem & WithDescription(DescriptionT &&value)
FirewallRulesItem & WithBlockOverrideDnsType(BlockOverrideDnsQueryType value)
FirewallRulesItem & WithAction(FirewallRuleAction value)
FirewallRulesItem & WithDnsViewId(DnsViewIdT &&value)
FirewallRulesItem & WithPriority(long long value)
FirewallRulesItem & WithFirewallDomainListId(FirewallDomainListIdT &&value)
void SetDnsAdvancedProtection(DnsAdvancedProtection value)
void SetBlockOverrideDomain(BlockOverrideDomainT &&value)
void SetFirewallDomainListId(FirewallDomainListIdT &&value)
FirewallRulesItem & WithUpdatedAt(UpdatedAtT &&value)
AWS_ROUTE53GLOBALRESOLVER_API FirewallRulesItem & operator=(Aws::Utils::Json::JsonView jsonValue)
FirewallRulesItem & WithStatus(CRResourceStatus value)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_ROUTE53GLOBALRESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ROUTE53GLOBALRESOLVER_API FirewallRulesItem()=default
AWS_ROUTE53GLOBALRESOLVER_API FirewallRulesItem(Aws::Utils::Json::JsonView jsonValue)
FirewallRulesItem & WithDnsAdvancedProtection(DnsAdvancedProtection value)
BlockOverrideDnsQueryType GetBlockOverrideDnsType() const
FirewallRulesItem & WithBlockOverrideDomain(BlockOverrideDomainT &&value)
FirewallRulesItem & WithCreatedAt(CreatedAtT &&value)
FirewallRulesItem & WithBlockResponse(FirewallBlockResponse value)
FirewallRulesItem & WithConfidenceThreshold(ConfidenceThreshold value)
const Aws::Utils::DateTime & GetUpdatedAt() const
FirewallRulesItem & WithQueryType(QueryTypeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue