AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsWafv2WebAclActionDetails.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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SecurityHub
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SECURITYHUB_API AwsWafv2WebAclActionDetails() = default;
39 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const AwsWafv2ActionAllowDetails& GetAllow() const { return m_allow; }
47 inline bool AllowHasBeenSet() const { return m_allowHasBeenSet; }
48 template<typename AllowT = AwsWafv2ActionAllowDetails>
49 void SetAllow(AllowT&& value) { m_allowHasBeenSet = true; m_allow = std::forward<AllowT>(value); }
50 template<typename AllowT = AwsWafv2ActionAllowDetails>
51 AwsWafv2WebAclActionDetails& WithAllow(AllowT&& value) { SetAllow(std::forward<AllowT>(value)); return *this;}
53
55
58 inline const AwsWafv2ActionBlockDetails& GetBlock() const { return m_block; }
59 inline bool BlockHasBeenSet() const { return m_blockHasBeenSet; }
60 template<typename BlockT = AwsWafv2ActionBlockDetails>
61 void SetBlock(BlockT&& value) { m_blockHasBeenSet = true; m_block = std::forward<BlockT>(value); }
62 template<typename BlockT = AwsWafv2ActionBlockDetails>
63 AwsWafv2WebAclActionDetails& WithBlock(BlockT&& value) { SetBlock(std::forward<BlockT>(value)); return *this;}
65 private:
66
68 bool m_allowHasBeenSet = false;
69
71 bool m_blockHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace SecurityHub
76} // namespace Aws
AWS_SECURITYHUB_API AwsWafv2WebAclActionDetails()=default
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsWafv2WebAclActionDetails & WithAllow(AllowT &&value)
AWS_SECURITYHUB_API AwsWafv2WebAclActionDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API AwsWafv2WebAclActionDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsWafv2WebAclActionDetails & WithBlock(BlockT &&value)
Aws::Utils::Json::JsonValue JsonValue