AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AwsWafRegionalRuleGroupDetails.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/AwsWafRegionalRuleGroupRulesDetails.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 AwsWafRegionalRuleGroupDetails();
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 AwsWafRegionalRuleGroupDetails& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
54 inline AwsWafRegionalRuleGroupDetails& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
55 inline AwsWafRegionalRuleGroupDetails& 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 AwsWafRegionalRuleGroupDetails& WithName(const Aws::String& value) { SetName(value); return *this;}
68 inline AwsWafRegionalRuleGroupDetails& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
69 inline AwsWafRegionalRuleGroupDetails& 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 AwsWafRegionalRuleGroupDetails& WithRuleGroupId(const Aws::String& value) { SetRuleGroupId(value); return *this;}
82 inline AwsWafRegionalRuleGroupDetails& WithRuleGroupId(Aws::String&& value) { SetRuleGroupId(std::move(value)); return *this;}
83 inline AwsWafRegionalRuleGroupDetails& WithRuleGroupId(const char* value) { SetRuleGroupId(value); return *this;}
85
87
91 inline const Aws::Vector<AwsWafRegionalRuleGroupRulesDetails>& GetRules() const{ return m_rules; }
92 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
93 inline void SetRules(const Aws::Vector<AwsWafRegionalRuleGroupRulesDetails>& value) { m_rulesHasBeenSet = true; m_rules = value; }
94 inline void SetRules(Aws::Vector<AwsWafRegionalRuleGroupRulesDetails>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
97 inline AwsWafRegionalRuleGroupDetails& AddRules(const AwsWafRegionalRuleGroupRulesDetails& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
98 inline AwsWafRegionalRuleGroupDetails& AddRules(AwsWafRegionalRuleGroupRulesDetails&& 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
AwsWafRegionalRuleGroupDetails & WithName(Aws::String &&value)
AWS_SECURITYHUB_API AwsWafRegionalRuleGroupDetails(Aws::Utils::Json::JsonView jsonValue)
void SetRules(Aws::Vector< AwsWafRegionalRuleGroupRulesDetails > &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsWafRegionalRuleGroupDetails & WithMetricName(const char *value)
AwsWafRegionalRuleGroupDetails & AddRules(AwsWafRegionalRuleGroupRulesDetails &&value)
void SetRules(const Aws::Vector< AwsWafRegionalRuleGroupRulesDetails > &value)
AwsWafRegionalRuleGroupDetails & WithName(const char *value)
AwsWafRegionalRuleGroupDetails & AddRules(const AwsWafRegionalRuleGroupRulesDetails &value)
AwsWafRegionalRuleGroupDetails & WithRuleGroupId(const Aws::String &value)
AwsWafRegionalRuleGroupDetails & WithName(const Aws::String &value)
AWS_SECURITYHUB_API AwsWafRegionalRuleGroupDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< AwsWafRegionalRuleGroupRulesDetails > & GetRules() const
AwsWafRegionalRuleGroupDetails & WithMetricName(Aws::String &&value)
AwsWafRegionalRuleGroupDetails & WithRules(Aws::Vector< AwsWafRegionalRuleGroupRulesDetails > &&value)
AwsWafRegionalRuleGroupDetails & WithMetricName(const Aws::String &value)
AwsWafRegionalRuleGroupDetails & WithRuleGroupId(Aws::String &&value)
AwsWafRegionalRuleGroupDetails & WithRules(const Aws::Vector< AwsWafRegionalRuleGroupRulesDetails > &value)
AwsWafRegionalRuleGroupDetails & WithRuleGroupId(const char *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