AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AwsWafRuleGroupDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/securityhub/model/AwsWafRuleGroupRulesDetails.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SecurityHub
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_SECURITYHUB_API AwsWafRuleGroupDetails();
39 AWS_SECURITYHUB_API AwsWafRuleGroupDetails(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetMetricName() const{ return m_metricName; }
49 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
50 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
51 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
52 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
53 inline AwsWafRuleGroupDetails& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
54 inline AwsWafRuleGroupDetails& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
55 inline AwsWafRuleGroupDetails& WithMetricName(const char* value) { SetMetricName(value); return *this;}
57
59
62 inline const Aws::String& GetName() const{ return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
65 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
66 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
67 inline AwsWafRuleGroupDetails& WithName(const Aws::String& value) { SetName(value); return *this;}
68 inline AwsWafRuleGroupDetails& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
69 inline AwsWafRuleGroupDetails& WithName(const char* value) { SetName(value); return *this;}
71
73
76 inline const Aws::String& GetRuleGroupId() const{ return m_ruleGroupId; }
77 inline bool RuleGroupIdHasBeenSet() const { return m_ruleGroupIdHasBeenSet; }
78 inline void SetRuleGroupId(const Aws::String& value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId = value; }
79 inline void SetRuleGroupId(Aws::String&& value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId = std::move(value); }
80 inline void SetRuleGroupId(const char* value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId.assign(value); }
81 inline AwsWafRuleGroupDetails& WithRuleGroupId(const Aws::String& value) { SetRuleGroupId(value); return *this;}
82 inline AwsWafRuleGroupDetails& WithRuleGroupId(Aws::String&& value) { SetRuleGroupId(std::move(value)); return *this;}
83 inline AwsWafRuleGroupDetails& WithRuleGroupId(const char* value) { SetRuleGroupId(value); return *this;}
85
87
91 inline const Aws::Vector<AwsWafRuleGroupRulesDetails>& GetRules() const{ return m_rules; }
92 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
93 inline void SetRules(const Aws::Vector<AwsWafRuleGroupRulesDetails>& value) { m_rulesHasBeenSet = true; m_rules = value; }
94 inline void SetRules(Aws::Vector<AwsWafRuleGroupRulesDetails>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
96 inline AwsWafRuleGroupDetails& WithRules(Aws::Vector<AwsWafRuleGroupRulesDetails>&& value) { SetRules(std::move(value)); return *this;}
97 inline AwsWafRuleGroupDetails& AddRules(const AwsWafRuleGroupRulesDetails& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
98 inline AwsWafRuleGroupDetails& AddRules(AwsWafRuleGroupRulesDetails&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
100 private:
101
102 Aws::String m_metricName;
103 bool m_metricNameHasBeenSet = false;
104
105 Aws::String m_name;
106 bool m_nameHasBeenSet = false;
107
108 Aws::String m_ruleGroupId;
109 bool m_ruleGroupIdHasBeenSet = false;
110
112 bool m_rulesHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace SecurityHub
117} // namespace Aws
AWS_SECURITYHUB_API AwsWafRuleGroupDetails(Aws::Utils::Json::JsonView jsonValue)
AwsWafRuleGroupDetails & WithRuleGroupId(Aws::String &&value)
AwsWafRuleGroupDetails & AddRules(const AwsWafRuleGroupRulesDetails &value)
AwsWafRuleGroupDetails & WithMetricName(const Aws::String &value)
AWS_SECURITYHUB_API AwsWafRuleGroupDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< AwsWafRuleGroupRulesDetails > & GetRules() const
AwsWafRuleGroupDetails & AddRules(AwsWafRuleGroupRulesDetails &&value)
void SetRules(const Aws::Vector< AwsWafRuleGroupRulesDetails > &value)
void SetRules(Aws::Vector< AwsWafRuleGroupRulesDetails > &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsWafRuleGroupDetails & WithName(const char *value)
AwsWafRuleGroupDetails & WithRuleGroupId(const char *value)
AwsWafRuleGroupDetails & WithName(const Aws::String &value)
AwsWafRuleGroupDetails & WithMetricName(Aws::String &&value)
AwsWafRuleGroupDetails & WithRules(const Aws::Vector< AwsWafRuleGroupRulesDetails > &value)
AwsWafRuleGroupDetails & WithRules(Aws::Vector< AwsWafRuleGroupRulesDetails > &&value)
AwsWafRuleGroupDetails & WithName(Aws::String &&value)
AwsWafRuleGroupDetails & WithMetricName(const char *value)
AwsWafRuleGroupDetails & WithRuleGroupId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue