AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ManagedRuleSet.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/wafv2/model/ManagedRuleSetVersion.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 WAFV2
24{
25namespace Model
26{
27
43 {
44 public:
45 AWS_WAFV2_API ManagedRuleSet();
48 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
57 inline const Aws::String& GetName() const{ return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
60 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
61 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
62 inline ManagedRuleSet& WithName(const Aws::String& value) { SetName(value); return *this;}
63 inline ManagedRuleSet& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
64 inline ManagedRuleSet& WithName(const char* value) { SetName(value); return *this;}
66
68
73 inline const Aws::String& GetId() const{ return m_id; }
74 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
75 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
76 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
77 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
78 inline ManagedRuleSet& WithId(const Aws::String& value) { SetId(value); return *this;}
79 inline ManagedRuleSet& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
80 inline ManagedRuleSet& WithId(const char* value) { SetId(value); return *this;}
82
84
87 inline const Aws::String& GetARN() const{ return m_aRN; }
88 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
89 inline void SetARN(const Aws::String& value) { m_aRNHasBeenSet = true; m_aRN = value; }
90 inline void SetARN(Aws::String&& value) { m_aRNHasBeenSet = true; m_aRN = std::move(value); }
91 inline void SetARN(const char* value) { m_aRNHasBeenSet = true; m_aRN.assign(value); }
92 inline ManagedRuleSet& WithARN(const Aws::String& value) { SetARN(value); return *this;}
93 inline ManagedRuleSet& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;}
94 inline ManagedRuleSet& WithARN(const char* value) { SetARN(value); return *this;}
96
98
101 inline const Aws::String& GetDescription() const{ return m_description; }
102 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
103 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
104 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
105 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
106 inline ManagedRuleSet& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
107 inline ManagedRuleSet& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
108 inline ManagedRuleSet& WithDescription(const char* value) { SetDescription(value); return *this;}
110
112
116 inline const Aws::Map<Aws::String, ManagedRuleSetVersion>& GetPublishedVersions() const{ return m_publishedVersions; }
117 inline bool PublishedVersionsHasBeenSet() const { return m_publishedVersionsHasBeenSet; }
118 inline void SetPublishedVersions(const Aws::Map<Aws::String, ManagedRuleSetVersion>& value) { m_publishedVersionsHasBeenSet = true; m_publishedVersions = value; }
119 inline void SetPublishedVersions(Aws::Map<Aws::String, ManagedRuleSetVersion>&& value) { m_publishedVersionsHasBeenSet = true; m_publishedVersions = std::move(value); }
122 inline ManagedRuleSet& AddPublishedVersions(const Aws::String& key, const ManagedRuleSetVersion& value) { m_publishedVersionsHasBeenSet = true; m_publishedVersions.emplace(key, value); return *this; }
123 inline ManagedRuleSet& AddPublishedVersions(Aws::String&& key, const ManagedRuleSetVersion& value) { m_publishedVersionsHasBeenSet = true; m_publishedVersions.emplace(std::move(key), value); return *this; }
124 inline ManagedRuleSet& AddPublishedVersions(const Aws::String& key, ManagedRuleSetVersion&& value) { m_publishedVersionsHasBeenSet = true; m_publishedVersions.emplace(key, std::move(value)); return *this; }
125 inline ManagedRuleSet& AddPublishedVersions(Aws::String&& key, ManagedRuleSetVersion&& value) { m_publishedVersionsHasBeenSet = true; m_publishedVersions.emplace(std::move(key), std::move(value)); return *this; }
126 inline ManagedRuleSet& AddPublishedVersions(const char* key, ManagedRuleSetVersion&& value) { m_publishedVersionsHasBeenSet = true; m_publishedVersions.emplace(key, std::move(value)); return *this; }
127 inline ManagedRuleSet& AddPublishedVersions(const char* key, const ManagedRuleSetVersion& value) { m_publishedVersionsHasBeenSet = true; m_publishedVersions.emplace(key, value); return *this; }
129
131
134 inline const Aws::String& GetRecommendedVersion() const{ return m_recommendedVersion; }
135 inline bool RecommendedVersionHasBeenSet() const { return m_recommendedVersionHasBeenSet; }
136 inline void SetRecommendedVersion(const Aws::String& value) { m_recommendedVersionHasBeenSet = true; m_recommendedVersion = value; }
137 inline void SetRecommendedVersion(Aws::String&& value) { m_recommendedVersionHasBeenSet = true; m_recommendedVersion = std::move(value); }
138 inline void SetRecommendedVersion(const char* value) { m_recommendedVersionHasBeenSet = true; m_recommendedVersion.assign(value); }
139 inline ManagedRuleSet& WithRecommendedVersion(const Aws::String& value) { SetRecommendedVersion(value); return *this;}
140 inline ManagedRuleSet& WithRecommendedVersion(Aws::String&& value) { SetRecommendedVersion(std::move(value)); return *this;}
141 inline ManagedRuleSet& WithRecommendedVersion(const char* value) { SetRecommendedVersion(value); return *this;}
143
145
157 inline const Aws::String& GetLabelNamespace() const{ return m_labelNamespace; }
158 inline bool LabelNamespaceHasBeenSet() const { return m_labelNamespaceHasBeenSet; }
159 inline void SetLabelNamespace(const Aws::String& value) { m_labelNamespaceHasBeenSet = true; m_labelNamespace = value; }
160 inline void SetLabelNamespace(Aws::String&& value) { m_labelNamespaceHasBeenSet = true; m_labelNamespace = std::move(value); }
161 inline void SetLabelNamespace(const char* value) { m_labelNamespaceHasBeenSet = true; m_labelNamespace.assign(value); }
162 inline ManagedRuleSet& WithLabelNamespace(const Aws::String& value) { SetLabelNamespace(value); return *this;}
163 inline ManagedRuleSet& WithLabelNamespace(Aws::String&& value) { SetLabelNamespace(std::move(value)); return *this;}
164 inline ManagedRuleSet& WithLabelNamespace(const char* value) { SetLabelNamespace(value); return *this;}
166 private:
167
168 Aws::String m_name;
169 bool m_nameHasBeenSet = false;
170
171 Aws::String m_id;
172 bool m_idHasBeenSet = false;
173
174 Aws::String m_aRN;
175 bool m_aRNHasBeenSet = false;
176
177 Aws::String m_description;
178 bool m_descriptionHasBeenSet = false;
179
181 bool m_publishedVersionsHasBeenSet = false;
182
183 Aws::String m_recommendedVersion;
184 bool m_recommendedVersionHasBeenSet = false;
185
186 Aws::String m_labelNamespace;
187 bool m_labelNamespaceHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace WAFV2
192} // namespace Aws
void SetRecommendedVersion(const Aws::String &value)
const Aws::String & GetRecommendedVersion() const
void SetARN(Aws::String &&value)
void SetDescription(Aws::String &&value)
ManagedRuleSet & WithPublishedVersions(Aws::Map< Aws::String, ManagedRuleSetVersion > &&value)
ManagedRuleSet & WithDescription(const Aws::String &value)
void SetLabelNamespace(const Aws::String &value)
void SetId(const Aws::String &value)
ManagedRuleSet & WithId(const char *value)
void SetName(const char *value)
const Aws::String & GetDescription() const
ManagedRuleSet & AddPublishedVersions(const Aws::String &key, ManagedRuleSetVersion &&value)
ManagedRuleSet & WithLabelNamespace(Aws::String &&value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetId(Aws::String &&value)
ManagedRuleSet & WithId(Aws::String &&value)
ManagedRuleSet & WithName(Aws::String &&value)
ManagedRuleSet & WithName(const Aws::String &value)
const Aws::String & GetId() const
ManagedRuleSet & WithDescription(const char *value)
void SetDescription(const char *value)
ManagedRuleSet & WithARN(const Aws::String &value)
void SetPublishedVersions(Aws::Map< Aws::String, ManagedRuleSetVersion > &&value)
void SetName(Aws::String &&value)
ManagedRuleSet & AddPublishedVersions(const char *key, const ManagedRuleSetVersion &value)
ManagedRuleSet & WithName(const char *value)
ManagedRuleSet & WithLabelNamespace(const char *value)
ManagedRuleSet & AddPublishedVersions(Aws::String &&key, ManagedRuleSetVersion &&value)
const Aws::String & GetARN() const
void SetName(const Aws::String &value)
void SetRecommendedVersion(Aws::String &&value)
const Aws::Map< Aws::String, ManagedRuleSetVersion > & GetPublishedVersions() const
ManagedRuleSet & WithLabelNamespace(const Aws::String &value)
void SetLabelNamespace(Aws::String &&value)
void SetPublishedVersions(const Aws::Map< Aws::String, ManagedRuleSetVersion > &value)
void SetRecommendedVersion(const char *value)
const Aws::String & GetName() const
void SetId(const char *value)
ManagedRuleSet & WithRecommendedVersion(Aws::String &&value)
ManagedRuleSet & WithARN(Aws::String &&value)
const Aws::String & GetLabelNamespace() const
void SetARN(const char *value)
ManagedRuleSet & WithDescription(Aws::String &&value)
ManagedRuleSet & WithRecommendedVersion(const Aws::String &value)
void SetLabelNamespace(const char *value)
ManagedRuleSet & AddPublishedVersions(Aws::String &&key, const ManagedRuleSetVersion &value)
AWS_WAFV2_API ManagedRuleSet(Aws::Utils::Json::JsonView jsonValue)
ManagedRuleSet & AddPublishedVersions(const Aws::String &key, const ManagedRuleSetVersion &value)
ManagedRuleSet & AddPublishedVersions(const char *key, ManagedRuleSetVersion &&value)
void SetDescription(const Aws::String &value)
ManagedRuleSet & WithPublishedVersions(const Aws::Map< Aws::String, ManagedRuleSetVersion > &value)
void SetARN(const Aws::String &value)
ManagedRuleSet & WithId(const Aws::String &value)
ManagedRuleSet & WithARN(const char *value)
ManagedRuleSet & WithRecommendedVersion(const char *value)
AWS_WAFV2_API ManagedRuleSet & operator=(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue