AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAction(const AwsWafRuleGroupRulesActionDetails& value) { m_actionHasBeenSet = true; m_action = value; }
51 inline void SetAction(AwsWafRuleGroupRulesActionDetails&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
53 inline AwsWafRuleGroupRulesDetails& WithAction(AwsWafRuleGroupRulesActionDetails&& value) { SetAction(std::move(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 inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; }
74 inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); }
75 inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); }
76 inline AwsWafRuleGroupRulesDetails& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;}
77 inline AwsWafRuleGroupRulesDetails& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;}
78 inline AwsWafRuleGroupRulesDetails& WithRuleId(const char* value) { SetRuleId(value); return *this;}
80
82
85 inline const Aws::String& GetType() const{ return m_type; }
86 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
87 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
88 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
89 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
90 inline AwsWafRuleGroupRulesDetails& WithType(const Aws::String& value) { SetType(value); return *this;}
91 inline AwsWafRuleGroupRulesDetails& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
92 inline AwsWafRuleGroupRulesDetails& WithType(const char* value) { SetType(value); return *this;}
94 private:
95
97 bool m_actionHasBeenSet = false;
98
99 int m_priority;
100 bool m_priorityHasBeenSet = false;
101
102 Aws::String m_ruleId;
103 bool m_ruleIdHasBeenSet = false;
104
105 Aws::String m_type;
106 bool m_typeHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace SecurityHub
111} // namespace Aws
AwsWafRuleGroupRulesDetails & WithType(const Aws::String &value)
AwsWafRuleGroupRulesDetails & WithRuleId(const char *value)
AwsWafRuleGroupRulesDetails & WithAction(const AwsWafRuleGroupRulesActionDetails &value)
AWS_SECURITYHUB_API AwsWafRuleGroupRulesDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsWafRuleGroupRulesDetails & WithAction(AwsWafRuleGroupRulesActionDetails &&value)
const AwsWafRuleGroupRulesActionDetails & GetAction() const
AwsWafRuleGroupRulesDetails & WithRuleId(Aws::String &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsWafRuleGroupRulesDetails & WithType(const char *value)
void SetAction(const AwsWafRuleGroupRulesActionDetails &value)
AwsWafRuleGroupRulesDetails & WithType(Aws::String &&value)
AWS_SECURITYHUB_API AwsWafRuleGroupRulesDetails(Aws::Utils::Json::JsonView jsonValue)
AwsWafRuleGroupRulesDetails & WithRuleId(const Aws::String &value)
void SetAction(AwsWafRuleGroupRulesActionDetails &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue