AWS SDK for C++

AWS SDK for C++ Version 1.11.784

Loading...
Searching...
No Matches
CreateFirewallRuleResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/route53globalresolver/Route53GlobalResolver_EXPORTS.h>
11#include <aws/route53globalresolver/model/BlockOverrideDnsQueryType.h>
12#include <aws/route53globalresolver/model/CRResourceStatus.h>
13#include <aws/route53globalresolver/model/ConfidenceThreshold.h>
14#include <aws/route53globalresolver/model/DnsAdvancedProtection.h>
15#include <aws/route53globalresolver/model/FirewallBlockResponse.h>
16#include <aws/route53globalresolver/model/FirewallRuleAction.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace Route53GlobalResolver {
30namespace Model {
32 public:
33 AWS_ROUTE53GLOBALRESOLVER_API CreateFirewallRuleResult() = default;
36
38
41 inline FirewallRuleAction GetAction() const { return m_action; }
42 inline void SetAction(FirewallRuleAction value) {
43 m_actionHasBeenSet = true;
44 m_action = value;
45 }
47 SetAction(value);
48 return *this;
49 }
51
53
57 inline BlockOverrideDnsQueryType GetBlockOverrideDnsType() const { return m_blockOverrideDnsType; }
59 m_blockOverrideDnsTypeHasBeenSet = true;
60 m_blockOverrideDnsType = value;
61 }
64 return *this;
65 }
67
69
73 inline const Aws::String& GetBlockOverrideDomain() const { return m_blockOverrideDomain; }
74 template <typename BlockOverrideDomainT = Aws::String>
75 void SetBlockOverrideDomain(BlockOverrideDomainT&& value) {
76 m_blockOverrideDomainHasBeenSet = true;
77 m_blockOverrideDomain = std::forward<BlockOverrideDomainT>(value);
78 }
79 template <typename BlockOverrideDomainT = Aws::String>
80 CreateFirewallRuleResult& WithBlockOverrideDomain(BlockOverrideDomainT&& value) {
81 SetBlockOverrideDomain(std::forward<BlockOverrideDomainT>(value));
82 return *this;
83 }
85
87
91 inline int GetBlockOverrideTtl() const { return m_blockOverrideTtl; }
92 inline void SetBlockOverrideTtl(int value) {
93 m_blockOverrideTtlHasBeenSet = true;
94 m_blockOverrideTtl = value;
95 }
98 return *this;
99 }
101
103
106 inline FirewallBlockResponse GetBlockResponse() const { return m_blockResponse; }
108 m_blockResponseHasBeenSet = true;
109 m_blockResponse = value;
110 }
112 SetBlockResponse(value);
113 return *this;
114 }
116
118
121 inline ConfidenceThreshold GetConfidenceThreshold() const { return m_confidenceThreshold; }
123 m_confidenceThresholdHasBeenSet = true;
124 m_confidenceThreshold = value;
125 }
128 return *this;
129 }
131
133
136 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
137 template <typename CreatedAtT = Aws::Utils::DateTime>
138 void SetCreatedAt(CreatedAtT&& value) {
139 m_createdAtHasBeenSet = true;
140 m_createdAt = std::forward<CreatedAtT>(value);
141 }
142 template <typename CreatedAtT = Aws::Utils::DateTime>
144 SetCreatedAt(std::forward<CreatedAtT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::String& GetDescription() const { return m_description; }
154 template <typename DescriptionT = Aws::String>
155 void SetDescription(DescriptionT&& value) {
156 m_descriptionHasBeenSet = true;
157 m_description = std::forward<DescriptionT>(value);
158 }
159 template <typename DescriptionT = Aws::String>
161 SetDescription(std::forward<DescriptionT>(value));
162 return *this;
163 }
165
167
170 inline DnsAdvancedProtection GetDnsAdvancedProtection() const { return m_dnsAdvancedProtection; }
172 m_dnsAdvancedProtectionHasBeenSet = true;
173 m_dnsAdvancedProtection = value;
174 }
177 return *this;
178 }
180
182
185 inline const Aws::String& GetFirewallDomainListId() const { return m_firewallDomainListId; }
186 template <typename FirewallDomainListIdT = Aws::String>
187 void SetFirewallDomainListId(FirewallDomainListIdT&& value) {
188 m_firewallDomainListIdHasBeenSet = true;
189 m_firewallDomainListId = std::forward<FirewallDomainListIdT>(value);
190 }
191 template <typename FirewallDomainListIdT = Aws::String>
192 CreateFirewallRuleResult& WithFirewallDomainListId(FirewallDomainListIdT&& value) {
193 SetFirewallDomainListId(std::forward<FirewallDomainListIdT>(value));
194 return *this;
195 }
197
199
202 inline const Aws::String& GetId() const { return m_id; }
203 template <typename IdT = Aws::String>
204 void SetId(IdT&& value) {
205 m_idHasBeenSet = true;
206 m_id = std::forward<IdT>(value);
207 }
208 template <typename IdT = Aws::String>
210 SetId(std::forward<IdT>(value));
211 return *this;
212 }
214
216
219 inline const Aws::String& GetName() const { return m_name; }
220 template <typename NameT = Aws::String>
221 void SetName(NameT&& value) {
222 m_nameHasBeenSet = true;
223 m_name = std::forward<NameT>(value);
224 }
225 template <typename NameT = Aws::String>
227 SetName(std::forward<NameT>(value));
228 return *this;
229 }
231
233
236 inline long long GetPriority() const { return m_priority; }
237 inline void SetPriority(long long value) {
238 m_priorityHasBeenSet = true;
239 m_priority = value;
240 }
241 inline CreateFirewallRuleResult& WithPriority(long long value) {
242 SetPriority(value);
243 return *this;
244 }
246
248
251 inline const Aws::String& GetDnsViewId() const { return m_dnsViewId; }
252 template <typename DnsViewIdT = Aws::String>
253 void SetDnsViewId(DnsViewIdT&& value) {
254 m_dnsViewIdHasBeenSet = true;
255 m_dnsViewId = std::forward<DnsViewIdT>(value);
256 }
257 template <typename DnsViewIdT = Aws::String>
259 SetDnsViewId(std::forward<DnsViewIdT>(value));
260 return *this;
261 }
263
265
268 inline const Aws::String& GetQueryType() const { return m_queryType; }
269 template <typename QueryTypeT = Aws::String>
270 void SetQueryType(QueryTypeT&& value) {
271 m_queryTypeHasBeenSet = true;
272 m_queryType = std::forward<QueryTypeT>(value);
273 }
274 template <typename QueryTypeT = Aws::String>
276 SetQueryType(std::forward<QueryTypeT>(value));
277 return *this;
278 }
280
282
285 inline CRResourceStatus GetStatus() const { return m_status; }
286 inline void SetStatus(CRResourceStatus value) {
287 m_statusHasBeenSet = true;
288 m_status = value;
289 }
291 SetStatus(value);
292 return *this;
293 }
295
297
300 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
301 template <typename UpdatedAtT = Aws::Utils::DateTime>
302 void SetUpdatedAt(UpdatedAtT&& value) {
303 m_updatedAtHasBeenSet = true;
304 m_updatedAt = std::forward<UpdatedAtT>(value);
305 }
306 template <typename UpdatedAtT = Aws::Utils::DateTime>
308 SetUpdatedAt(std::forward<UpdatedAtT>(value));
309 return *this;
310 }
312
314
315 inline const Aws::String& GetRequestId() const { return m_requestId; }
316 template <typename RequestIdT = Aws::String>
317 void SetRequestId(RequestIdT&& value) {
318 m_requestIdHasBeenSet = true;
319 m_requestId = std::forward<RequestIdT>(value);
320 }
321 template <typename RequestIdT = Aws::String>
323 SetRequestId(std::forward<RequestIdT>(value));
324 return *this;
325 }
327 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
328
329 private:
331
333
334 Aws::String m_blockOverrideDomain;
335
336 int m_blockOverrideTtl{0};
337
339
341
342 Aws::Utils::DateTime m_createdAt{};
343
344 Aws::String m_description;
345
347
348 Aws::String m_firewallDomainListId;
349
350 Aws::String m_id;
351
352 Aws::String m_name;
353
354 long long m_priority{0};
355
356 Aws::String m_dnsViewId;
357
358 Aws::String m_queryType;
359
361
362 Aws::Utils::DateTime m_updatedAt{};
363
364 Aws::String m_requestId;
365 Aws::Http::HttpResponseCode m_HttpResponseCode;
366 bool m_actionHasBeenSet = false;
367 bool m_blockOverrideDnsTypeHasBeenSet = false;
368 bool m_blockOverrideDomainHasBeenSet = false;
369 bool m_blockOverrideTtlHasBeenSet = false;
370 bool m_blockResponseHasBeenSet = false;
371 bool m_confidenceThresholdHasBeenSet = false;
372 bool m_createdAtHasBeenSet = false;
373 bool m_descriptionHasBeenSet = false;
374 bool m_dnsAdvancedProtectionHasBeenSet = false;
375 bool m_firewallDomainListIdHasBeenSet = false;
376 bool m_idHasBeenSet = false;
377 bool m_nameHasBeenSet = false;
378 bool m_priorityHasBeenSet = false;
379 bool m_dnsViewIdHasBeenSet = false;
380 bool m_queryTypeHasBeenSet = false;
381 bool m_statusHasBeenSet = false;
382 bool m_updatedAtHasBeenSet = false;
383 bool m_requestIdHasBeenSet = false;
384};
385
386} // namespace Model
387} // namespace Route53GlobalResolver
388} // namespace Aws
CreateFirewallRuleResult & WithDnsAdvancedProtection(DnsAdvancedProtection value)
CreateFirewallRuleResult & WithQueryType(QueryTypeT &&value)
CreateFirewallRuleResult & WithUpdatedAt(UpdatedAtT &&value)
CreateFirewallRuleResult & WithFirewallDomainListId(FirewallDomainListIdT &&value)
AWS_ROUTE53GLOBALRESOLVER_API CreateFirewallRuleResult()=default
CreateFirewallRuleResult & WithDnsViewId(DnsViewIdT &&value)
CreateFirewallRuleResult & WithBlockOverrideDnsType(BlockOverrideDnsQueryType value)
CreateFirewallRuleResult & WithConfidenceThreshold(ConfidenceThreshold value)
CreateFirewallRuleResult & WithRequestId(RequestIdT &&value)
CreateFirewallRuleResult & WithCreatedAt(CreatedAtT &&value)
CreateFirewallRuleResult & WithAction(FirewallRuleAction value)
AWS_ROUTE53GLOBALRESOLVER_API CreateFirewallRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateFirewallRuleResult & WithStatus(CRResourceStatus value)
CreateFirewallRuleResult & WithBlockResponse(FirewallBlockResponse value)
CreateFirewallRuleResult & WithDescription(DescriptionT &&value)
AWS_ROUTE53GLOBALRESOLVER_API CreateFirewallRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateFirewallRuleResult & WithBlockOverrideDomain(BlockOverrideDomainT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue