AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AwsWafv2RuleGroupDetails.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/AwsWafv2VisibilityConfigDetails.h>
11#include <aws/securityhub/model/AwsWafv2RulesDetails.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SecurityHub
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_SECURITYHUB_API AwsWafv2RuleGroupDetails();
40 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline long long GetCapacity() const{ return m_capacity; }
48 inline bool CapacityHasBeenSet() const { return m_capacityHasBeenSet; }
49 inline void SetCapacity(long long value) { m_capacityHasBeenSet = true; m_capacity = value; }
50 inline AwsWafv2RuleGroupDetails& WithCapacity(long long value) { SetCapacity(value); return *this;}
52
54
57 inline const Aws::String& GetDescription() const{ return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
60 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
61 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
62 inline AwsWafv2RuleGroupDetails& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
63 inline AwsWafv2RuleGroupDetails& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
64 inline AwsWafv2RuleGroupDetails& WithDescription(const char* value) { SetDescription(value); return *this;}
66
68
71 inline const Aws::String& GetId() const{ return m_id; }
72 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
73 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
74 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
75 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
76 inline AwsWafv2RuleGroupDetails& WithId(const Aws::String& value) { SetId(value); return *this;}
77 inline AwsWafv2RuleGroupDetails& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
78 inline AwsWafv2RuleGroupDetails& WithId(const char* value) { SetId(value); return *this;}
80
82
86 inline const Aws::String& GetName() const{ return m_name; }
87 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
88 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
89 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
90 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
91 inline AwsWafv2RuleGroupDetails& WithName(const Aws::String& value) { SetName(value); return *this;}
92 inline AwsWafv2RuleGroupDetails& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
93 inline AwsWafv2RuleGroupDetails& WithName(const char* value) { SetName(value); return *this;}
95
97
100 inline const Aws::String& GetArn() const{ return m_arn; }
101 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
102 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
103 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
104 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
105 inline AwsWafv2RuleGroupDetails& WithArn(const Aws::String& value) { SetArn(value); return *this;}
106 inline AwsWafv2RuleGroupDetails& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
107 inline AwsWafv2RuleGroupDetails& WithArn(const char* value) { SetArn(value); return *this;}
109
111
117 inline const Aws::Vector<AwsWafv2RulesDetails>& GetRules() const{ return m_rules; }
118 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
119 inline void SetRules(const Aws::Vector<AwsWafv2RulesDetails>& value) { m_rulesHasBeenSet = true; m_rules = value; }
120 inline void SetRules(Aws::Vector<AwsWafv2RulesDetails>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
122 inline AwsWafv2RuleGroupDetails& WithRules(Aws::Vector<AwsWafv2RulesDetails>&& value) { SetRules(std::move(value)); return *this;}
123 inline AwsWafv2RuleGroupDetails& AddRules(const AwsWafv2RulesDetails& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
124 inline AwsWafv2RuleGroupDetails& AddRules(AwsWafv2RulesDetails&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
126
128
134 inline const Aws::String& GetScope() const{ return m_scope; }
135 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
136 inline void SetScope(const Aws::String& value) { m_scopeHasBeenSet = true; m_scope = value; }
137 inline void SetScope(Aws::String&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
138 inline void SetScope(const char* value) { m_scopeHasBeenSet = true; m_scope.assign(value); }
139 inline AwsWafv2RuleGroupDetails& WithScope(const Aws::String& value) { SetScope(value); return *this;}
140 inline AwsWafv2RuleGroupDetails& WithScope(Aws::String&& value) { SetScope(std::move(value)); return *this;}
141 inline AwsWafv2RuleGroupDetails& WithScope(const char* value) { SetScope(value); return *this;}
143
145
149 inline const AwsWafv2VisibilityConfigDetails& GetVisibilityConfig() const{ return m_visibilityConfig; }
150 inline bool VisibilityConfigHasBeenSet() const { return m_visibilityConfigHasBeenSet; }
151 inline void SetVisibilityConfig(const AwsWafv2VisibilityConfigDetails& value) { m_visibilityConfigHasBeenSet = true; m_visibilityConfig = value; }
152 inline void SetVisibilityConfig(AwsWafv2VisibilityConfigDetails&& value) { m_visibilityConfigHasBeenSet = true; m_visibilityConfig = std::move(value); }
156 private:
157
158 long long m_capacity;
159 bool m_capacityHasBeenSet = false;
160
161 Aws::String m_description;
162 bool m_descriptionHasBeenSet = false;
163
164 Aws::String m_id;
165 bool m_idHasBeenSet = false;
166
167 Aws::String m_name;
168 bool m_nameHasBeenSet = false;
169
170 Aws::String m_arn;
171 bool m_arnHasBeenSet = false;
172
174 bool m_rulesHasBeenSet = false;
175
176 Aws::String m_scope;
177 bool m_scopeHasBeenSet = false;
178
179 AwsWafv2VisibilityConfigDetails m_visibilityConfig;
180 bool m_visibilityConfigHasBeenSet = false;
181 };
182
183} // namespace Model
184} // namespace SecurityHub
185} // namespace Aws
AwsWafv2RuleGroupDetails & WithDescription(const char *value)
AwsWafv2RuleGroupDetails & WithArn(const char *value)
AWS_SECURITYHUB_API AwsWafv2RuleGroupDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsWafv2RuleGroupDetails & WithArn(Aws::String &&value)
AwsWafv2RuleGroupDetails & WithScope(const Aws::String &value)
AwsWafv2RuleGroupDetails & WithId(const char *value)
void SetVisibilityConfig(AwsWafv2VisibilityConfigDetails &&value)
AwsWafv2RuleGroupDetails & WithScope(Aws::String &&value)
const Aws::Vector< AwsWafv2RulesDetails > & GetRules() const
AwsWafv2RuleGroupDetails & WithVisibilityConfig(AwsWafv2VisibilityConfigDetails &&value)
AwsWafv2RuleGroupDetails & WithDescription(const Aws::String &value)
AwsWafv2RuleGroupDetails & WithName(Aws::String &&value)
AwsWafv2RuleGroupDetails & WithDescription(Aws::String &&value)
AwsWafv2RuleGroupDetails & WithScope(const char *value)
AwsWafv2RuleGroupDetails & WithName(const Aws::String &value)
const AwsWafv2VisibilityConfigDetails & GetVisibilityConfig() const
AwsWafv2RuleGroupDetails & WithName(const char *value)
AwsWafv2RuleGroupDetails & AddRules(AwsWafv2RulesDetails &&value)
AwsWafv2RuleGroupDetails & WithRules(const Aws::Vector< AwsWafv2RulesDetails > &value)
AwsWafv2RuleGroupDetails & WithVisibilityConfig(const AwsWafv2VisibilityConfigDetails &value)
AwsWafv2RuleGroupDetails & WithRules(Aws::Vector< AwsWafv2RulesDetails > &&value)
void SetRules(const Aws::Vector< AwsWafv2RulesDetails > &value)
AwsWafv2RuleGroupDetails & AddRules(const AwsWafv2RulesDetails &value)
AwsWafv2RuleGroupDetails & WithId(Aws::String &&value)
AwsWafv2RuleGroupDetails & WithId(const Aws::String &value)
AWS_SECURITYHUB_API AwsWafv2RuleGroupDetails(Aws::Utils::Json::JsonView jsonValue)
AwsWafv2RuleGroupDetails & WithArn(const Aws::String &value)
void SetVisibilityConfig(const AwsWafv2VisibilityConfigDetails &value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRules(Aws::Vector< AwsWafv2RulesDetails > &&value)
AwsWafv2RuleGroupDetails & WithCapacity(long long 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