AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SecurityHub
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_SECURITYHUB_API AwsWafv2RulesActionDetails() = default;
42 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const AwsWafv2ActionAllowDetails& GetAllow() const { return m_allow; }
50 inline bool AllowHasBeenSet() const { return m_allowHasBeenSet; }
51 template<typename AllowT = AwsWafv2ActionAllowDetails>
52 void SetAllow(AllowT&& value) { m_allowHasBeenSet = true; m_allow = std::forward<AllowT>(value); }
53 template<typename AllowT = AwsWafv2ActionAllowDetails>
54 AwsWafv2RulesActionDetails& WithAllow(AllowT&& value) { SetAllow(std::forward<AllowT>(value)); return *this;}
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) { m_blockHasBeenSet = true; m_block = std::forward<BlockT>(value); }
65 template<typename BlockT = AwsWafv2ActionBlockDetails>
66 AwsWafv2RulesActionDetails& WithBlock(BlockT&& value) { SetBlock(std::forward<BlockT>(value)); return *this;}
68
70
73 inline const AwsWafv2RulesActionCaptchaDetails& GetCaptcha() const { return m_captcha; }
74 inline bool CaptchaHasBeenSet() const { return m_captchaHasBeenSet; }
75 template<typename CaptchaT = AwsWafv2RulesActionCaptchaDetails>
76 void SetCaptcha(CaptchaT&& value) { m_captchaHasBeenSet = true; m_captcha = std::forward<CaptchaT>(value); }
77 template<typename CaptchaT = AwsWafv2RulesActionCaptchaDetails>
78 AwsWafv2RulesActionDetails& WithCaptcha(CaptchaT&& value) { SetCaptcha(std::forward<CaptchaT>(value)); return *this;}
80
82
86 inline const AwsWafv2RulesActionCountDetails& GetCount() const { return m_count; }
87 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
88 template<typename CountT = AwsWafv2RulesActionCountDetails>
89 void SetCount(CountT&& value) { m_countHasBeenSet = true; m_count = std::forward<CountT>(value); }
90 template<typename CountT = AwsWafv2RulesActionCountDetails>
91 AwsWafv2RulesActionDetails& WithCount(CountT&& value) { SetCount(std::forward<CountT>(value)); return *this;}
93 private:
94
96 bool m_allowHasBeenSet = false;
97
99 bool m_blockHasBeenSet = false;
100
102 bool m_captchaHasBeenSet = false;
103
105 bool m_countHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace SecurityHub
110} // 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