AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AwsWafv2RulesActionDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/securityhub/model/AwsWafv2ActionAllowDetails.h>
9#include <aws/securityhub/model/AwsWafv2ActionBlockDetails.h>
10#include <aws/securityhub/model/AwsWafv2RulesActionCaptchaDetails.h>
11#include <aws/securityhub/model/AwsWafv2RulesActionCountDetails.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SecurityHub {
23namespace Model {
24
33 public:
34 AWS_SECURITYHUB_API AwsWafv2RulesActionDetails() = default;
37 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const AwsWafv2ActionAllowDetails& GetAllow() const { return m_allow; }
44 inline bool AllowHasBeenSet() const { return m_allowHasBeenSet; }
45 template <typename AllowT = AwsWafv2ActionAllowDetails>
46 void SetAllow(AllowT&& value) {
47 m_allowHasBeenSet = true;
48 m_allow = std::forward<AllowT>(value);
49 }
50 template <typename AllowT = AwsWafv2ActionAllowDetails>
52 SetAllow(std::forward<AllowT>(value));
53 return *this;
54 }
56
58
61 inline const AwsWafv2ActionBlockDetails& GetBlock() const { return m_block; }
62 inline bool BlockHasBeenSet() const { return m_blockHasBeenSet; }
63 template <typename BlockT = AwsWafv2ActionBlockDetails>
64 void SetBlock(BlockT&& value) {
65 m_blockHasBeenSet = true;
66 m_block = std::forward<BlockT>(value);
67 }
68 template <typename BlockT = AwsWafv2ActionBlockDetails>
70 SetBlock(std::forward<BlockT>(value));
71 return *this;
72 }
74
76
79 inline const AwsWafv2RulesActionCaptchaDetails& GetCaptcha() const { return m_captcha; }
80 inline bool CaptchaHasBeenSet() const { return m_captchaHasBeenSet; }
81 template <typename CaptchaT = AwsWafv2RulesActionCaptchaDetails>
82 void SetCaptcha(CaptchaT&& value) {
83 m_captchaHasBeenSet = true;
84 m_captcha = std::forward<CaptchaT>(value);
85 }
86 template <typename CaptchaT = AwsWafv2RulesActionCaptchaDetails>
88 SetCaptcha(std::forward<CaptchaT>(value));
89 return *this;
90 }
92
94
98 inline const AwsWafv2RulesActionCountDetails& GetCount() const { return m_count; }
99 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
100 template <typename CountT = AwsWafv2RulesActionCountDetails>
101 void SetCount(CountT&& value) {
102 m_countHasBeenSet = true;
103 m_count = std::forward<CountT>(value);
104 }
105 template <typename CountT = AwsWafv2RulesActionCountDetails>
107 SetCount(std::forward<CountT>(value));
108 return *this;
109 }
111 private:
113
115
117
119 bool m_allowHasBeenSet = false;
120 bool m_blockHasBeenSet = false;
121 bool m_captchaHasBeenSet = false;
122 bool m_countHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace SecurityHub
127} // namespace Aws
const AwsWafv2ActionBlockDetails & GetBlock() const
AWS_SECURITYHUB_API AwsWafv2RulesActionDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
const AwsWafv2ActionAllowDetails & GetAllow() const
AwsWafv2RulesActionDetails & WithCount(CountT &&value)
AWS_SECURITYHUB_API AwsWafv2RulesActionDetails()=default
AwsWafv2RulesActionDetails & WithCaptcha(CaptchaT &&value)
AwsWafv2RulesActionDetails & WithBlock(BlockT &&value)
const AwsWafv2RulesActionCountDetails & GetCount() const
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API AwsWafv2RulesActionDetails(Aws::Utils::Json::JsonView jsonValue)
const AwsWafv2RulesActionCaptchaDetails & GetCaptcha() const
AwsWafv2RulesActionDetails & WithAllow(AllowT &&value)
Aws::Utils::Json::JsonValue JsonValue