AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsWafRuleGroupRulesDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/securityhub/model/AwsWafRuleGroupRulesActionDetails.h>
9#include <aws/core/utils/memory/stl/AWSString.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
35 {
36 public:
37 AWS_SECURITYHUB_API AwsWafRuleGroupRulesDetails() = default;
40 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const AwsWafRuleGroupRulesActionDetails& GetAction() const { return m_action; }
49 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
50 template<typename ActionT = AwsWafRuleGroupRulesActionDetails>
51 void SetAction(ActionT&& value) { m_actionHasBeenSet = true; m_action = std::forward<ActionT>(value); }
52 template<typename ActionT = AwsWafRuleGroupRulesActionDetails>
53 AwsWafRuleGroupRulesDetails& WithAction(ActionT&& value) { SetAction(std::forward<ActionT>(value)); return *this;}
55
57
61 inline int GetPriority() const { return m_priority; }
62 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
63 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
64 inline AwsWafRuleGroupRulesDetails& WithPriority(int value) { SetPriority(value); return *this;}
66
68
71 inline const Aws::String& GetRuleId() const { return m_ruleId; }
72 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
73 template<typename RuleIdT = Aws::String>
74 void SetRuleId(RuleIdT&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::forward<RuleIdT>(value); }
75 template<typename RuleIdT = Aws::String>
76 AwsWafRuleGroupRulesDetails& WithRuleId(RuleIdT&& value) { SetRuleId(std::forward<RuleIdT>(value)); return *this;}
78
80
83 inline const Aws::String& GetType() const { return m_type; }
84 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
85 template<typename TypeT = Aws::String>
86 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
87 template<typename TypeT = Aws::String>
88 AwsWafRuleGroupRulesDetails& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
90 private:
91
93 bool m_actionHasBeenSet = false;
94
95 int m_priority{0};
96 bool m_priorityHasBeenSet = false;
97
98 Aws::String m_ruleId;
99 bool m_ruleIdHasBeenSet = false;
100
101 Aws::String m_type;
102 bool m_typeHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace SecurityHub
107} // namespace Aws
AwsWafRuleGroupRulesDetails & WithRuleId(RuleIdT &&value)
AWS_SECURITYHUB_API AwsWafRuleGroupRulesDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
const AwsWafRuleGroupRulesActionDetails & GetAction() const
AwsWafRuleGroupRulesDetails & WithAction(ActionT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API AwsWafRuleGroupRulesDetails()=default
AwsWafRuleGroupRulesDetails & WithType(TypeT &&value)
AWS_SECURITYHUB_API AwsWafRuleGroupRulesDetails(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue