AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAllow(const AwsWafv2ActionAllowDetails& value) { m_allowHasBeenSet = true; m_allow = value; }
52 inline void SetAllow(AwsWafv2ActionAllowDetails&& value) { m_allowHasBeenSet = true; m_allow = std::move(value); }
53 inline AwsWafv2RulesActionDetails& WithAllow(const AwsWafv2ActionAllowDetails& value) { SetAllow(value); return *this;}
54 inline AwsWafv2RulesActionDetails& WithAllow(AwsWafv2ActionAllowDetails&& value) { SetAllow(std::move(value)); return *this;}
56
58
61 inline const AwsWafv2ActionBlockDetails& GetBlock() const{ return m_block; }
62 inline bool BlockHasBeenSet() const { return m_blockHasBeenSet; }
63 inline void SetBlock(const AwsWafv2ActionBlockDetails& value) { m_blockHasBeenSet = true; m_block = value; }
64 inline void SetBlock(AwsWafv2ActionBlockDetails&& value) { m_blockHasBeenSet = true; m_block = std::move(value); }
65 inline AwsWafv2RulesActionDetails& WithBlock(const AwsWafv2ActionBlockDetails& value) { SetBlock(value); return *this;}
66 inline AwsWafv2RulesActionDetails& WithBlock(AwsWafv2ActionBlockDetails&& value) { SetBlock(std::move(value)); return *this;}
68
70
73 inline const AwsWafv2RulesActionCaptchaDetails& GetCaptcha() const{ return m_captcha; }
74 inline bool CaptchaHasBeenSet() const { return m_captchaHasBeenSet; }
75 inline void SetCaptcha(const AwsWafv2RulesActionCaptchaDetails& value) { m_captchaHasBeenSet = true; m_captcha = value; }
76 inline void SetCaptcha(AwsWafv2RulesActionCaptchaDetails&& value) { m_captchaHasBeenSet = true; m_captcha = std::move(value); }
78 inline AwsWafv2RulesActionDetails& WithCaptcha(AwsWafv2RulesActionCaptchaDetails&& value) { SetCaptcha(std::move(value)); return *this;}
80
82
86 inline const AwsWafv2RulesActionCountDetails& GetCount() const{ return m_count; }
87 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
88 inline void SetCount(const AwsWafv2RulesActionCountDetails& value) { m_countHasBeenSet = true; m_count = value; }
89 inline void SetCount(AwsWafv2RulesActionCountDetails&& value) { m_countHasBeenSet = true; m_count = std::move(value); }
91 inline AwsWafv2RulesActionDetails& WithCount(AwsWafv2RulesActionCountDetails&& value) { SetCount(std::move(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
AwsWafv2RulesActionDetails & WithAllow(AwsWafv2ActionAllowDetails &&value)
const AwsWafv2ActionBlockDetails & GetBlock() const
AWS_SECURITYHUB_API AwsWafv2RulesActionDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsWafv2RulesActionDetails & WithCaptcha(AwsWafv2RulesActionCaptchaDetails &&value)
const AwsWafv2ActionAllowDetails & GetAllow() const
void SetCaptcha(AwsWafv2RulesActionCaptchaDetails &&value)
void SetCount(const AwsWafv2RulesActionCountDetails &value)
AwsWafv2RulesActionDetails & WithBlock(const AwsWafv2ActionBlockDetails &value)
AwsWafv2RulesActionDetails & WithCaptcha(const AwsWafv2RulesActionCaptchaDetails &value)
const AwsWafv2RulesActionCountDetails & GetCount() const
void SetCaptcha(const AwsWafv2RulesActionCaptchaDetails &value)
AwsWafv2RulesActionDetails & WithBlock(AwsWafv2ActionBlockDetails &&value)
void SetBlock(const AwsWafv2ActionBlockDetails &value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCount(AwsWafv2RulesActionCountDetails &&value)
AwsWafv2RulesActionDetails & WithAllow(const AwsWafv2ActionAllowDetails &value)
AWS_SECURITYHUB_API AwsWafv2RulesActionDetails(Aws::Utils::Json::JsonView jsonValue)
const AwsWafv2RulesActionCaptchaDetails & GetCaptcha() const
AwsWafv2RulesActionDetails & WithCount(AwsWafv2RulesActionCountDetails &&value)
AwsWafv2RulesActionDetails & WithCount(const AwsWafv2RulesActionCountDetails &value)
void SetAllow(const AwsWafv2ActionAllowDetails &value)
Aws::Utils::Json::JsonValue JsonValue