AWS SDK for C++

AWS SDK for C++ Version 1.11.931

Loading...
Searching...
No Matches
UpdateRegexPatternSetRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/wafv2/WAFV2Request.h>
10#include <aws/wafv2/WAFV2_EXPORTS.h>
11#include <aws/wafv2/model/Regex.h>
12#include <aws/wafv2/model/Scope.h>
13
14#include <utility>
15
16namespace Aws {
17namespace WAFV2 {
18namespace Model {
19
23 public:
24 AWS_WAFV2_API UpdateRegexPatternSetRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateRegexPatternSet"; }
31
32 AWS_WAFV2_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
64 inline Scope GetScope() const { return m_scope; }
65 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
66 inline void SetScope(Scope value) {
67 m_scopeHasBeenSet = true;
68 m_scope = value;
69 }
71 SetScope(value);
72 return *this;
73 }
75
77
82 inline const Aws::String& GetId() const { return m_id; }
83 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
84 template <typename IdT = Aws::String>
85 void SetId(IdT&& value) {
86 m_idHasBeenSet = true;
87 m_id = std::forward<IdT>(value);
88 }
89 template <typename IdT = Aws::String>
91 SetId(std::forward<IdT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetDescription() const { return m_description; }
101 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
102 template <typename DescriptionT = Aws::String>
103 void SetDescription(DescriptionT&& value) {
104 m_descriptionHasBeenSet = true;
105 m_description = std::forward<DescriptionT>(value);
106 }
107 template <typename DescriptionT = Aws::String>
109 SetDescription(std::forward<DescriptionT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::Vector<Regex>& GetRegularExpressionList() const { return m_regularExpressionList; }
119 inline bool RegularExpressionListHasBeenSet() const { return m_regularExpressionListHasBeenSet; }
120 template <typename RegularExpressionListT = Aws::Vector<Regex>>
121 void SetRegularExpressionList(RegularExpressionListT&& value) {
122 m_regularExpressionListHasBeenSet = true;
123 m_regularExpressionList = std::forward<RegularExpressionListT>(value);
124 }
125 template <typename RegularExpressionListT = Aws::Vector<Regex>>
127 SetRegularExpressionList(std::forward<RegularExpressionListT>(value));
128 return *this;
129 }
130 template <typename RegularExpressionListT = Regex>
132 m_regularExpressionListHasBeenSet = true;
133 m_regularExpressionList.emplace_back(std::forward<RegularExpressionListT>(value));
134 return *this;
135 }
137
139
149 inline const Aws::String& GetLockToken() const { return m_lockToken; }
150 inline bool LockTokenHasBeenSet() const { return m_lockTokenHasBeenSet; }
151 template <typename LockTokenT = Aws::String>
152 void SetLockToken(LockTokenT&& value) {
153 m_lockTokenHasBeenSet = true;
154 m_lockToken = std::forward<LockTokenT>(value);
155 }
156 template <typename LockTokenT = Aws::String>
158 SetLockToken(std::forward<LockTokenT>(value));
159 return *this;
160 }
162 private:
163 Aws::String m_name;
164
165 Scope m_scope{Scope::NOT_SET};
166
167 Aws::String m_id;
168
169 Aws::String m_description;
170
171 Aws::Vector<Regex> m_regularExpressionList;
172
173 Aws::String m_lockToken;
174 bool m_nameHasBeenSet = false;
175 bool m_scopeHasBeenSet = false;
176 bool m_idHasBeenSet = false;
177 bool m_descriptionHasBeenSet = false;
178 bool m_regularExpressionListHasBeenSet = false;
179 bool m_lockTokenHasBeenSet = false;
180};
181
182} // namespace Model
183} // namespace WAFV2
184} // namespace Aws
UpdateRegexPatternSetRequest & WithLockToken(LockTokenT &&value)
AWS_WAFV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateRegexPatternSetRequest & WithName(NameT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Regex > & GetRegularExpressionList() const
UpdateRegexPatternSetRequest & WithRegularExpressionList(RegularExpressionListT &&value)
void SetRegularExpressionList(RegularExpressionListT &&value)
AWS_WAFV2_API UpdateRegexPatternSetRequest()=default
UpdateRegexPatternSetRequest & AddRegularExpressionList(RegularExpressionListT &&value)
UpdateRegexPatternSetRequest & WithScope(Scope value)
UpdateRegexPatternSetRequest & WithDescription(DescriptionT &&value)
AWS_WAFV2_API Aws::String SerializePayload() const override
UpdateRegexPatternSetRequest & WithId(IdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector