AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAllow(const AwsWafv2ActionAllowDetails& value) { m_allowHasBeenSet = true; m_allow = value; }
49 inline void SetAllow(AwsWafv2ActionAllowDetails&& value) { m_allowHasBeenSet = true; m_allow = std::move(value); }
50 inline AwsWafv2WebAclActionDetails& WithAllow(const AwsWafv2ActionAllowDetails& value) { SetAllow(value); return *this;}
51 inline AwsWafv2WebAclActionDetails& WithAllow(AwsWafv2ActionAllowDetails&& value) { SetAllow(std::move(value)); return *this;}
53
55
58 inline const AwsWafv2ActionBlockDetails& GetBlock() const{ return m_block; }
59 inline bool BlockHasBeenSet() const { return m_blockHasBeenSet; }
60 inline void SetBlock(const AwsWafv2ActionBlockDetails& value) { m_blockHasBeenSet = true; m_block = value; }
61 inline void SetBlock(AwsWafv2ActionBlockDetails&& value) { m_blockHasBeenSet = true; m_block = std::move(value); }
62 inline AwsWafv2WebAclActionDetails& WithBlock(const AwsWafv2ActionBlockDetails& value) { SetBlock(value); return *this;}
63 inline AwsWafv2WebAclActionDetails& WithBlock(AwsWafv2ActionBlockDetails&& value) { SetBlock(std::move(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
AwsWafv2WebAclActionDetails & WithBlock(AwsWafv2ActionBlockDetails &&value)
AwsWafv2WebAclActionDetails & WithBlock(const AwsWafv2ActionBlockDetails &value)
AwsWafv2WebAclActionDetails & WithAllow(const AwsWafv2ActionAllowDetails &value)
AwsWafv2WebAclActionDetails & WithAllow(AwsWafv2ActionAllowDetails &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetBlock(const AwsWafv2ActionBlockDetails &value)
AWS_SECURITYHUB_API AwsWafv2WebAclActionDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API AwsWafv2WebAclActionDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAllow(const AwsWafv2ActionAllowDetails &value)
Aws::Utils::Json::JsonValue JsonValue