AWS SDK for C++  1.9.40
AWS SDK for C++
UpdateRegexMatchSetRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/waf/WAF_EXPORTS.h>
8 #include <aws/waf/WAFRequest.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace WAF
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "UpdateRegexMatchSet"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
44  inline const Aws::String& GetRegexMatchSetId() const{ return m_regexMatchSetId; }
45 
51  inline bool RegexMatchSetIdHasBeenSet() const { return m_regexMatchSetIdHasBeenSet; }
52 
58  inline void SetRegexMatchSetId(const Aws::String& value) { m_regexMatchSetIdHasBeenSet = true; m_regexMatchSetId = value; }
59 
65  inline void SetRegexMatchSetId(Aws::String&& value) { m_regexMatchSetIdHasBeenSet = true; m_regexMatchSetId = std::move(value); }
66 
72  inline void SetRegexMatchSetId(const char* value) { m_regexMatchSetIdHasBeenSet = true; m_regexMatchSetId.assign(value); }
73 
79  inline UpdateRegexMatchSetRequest& WithRegexMatchSetId(const Aws::String& value) { SetRegexMatchSetId(value); return *this;}
80 
86  inline UpdateRegexMatchSetRequest& WithRegexMatchSetId(Aws::String&& value) { SetRegexMatchSetId(std::move(value)); return *this;}
87 
93  inline UpdateRegexMatchSetRequest& WithRegexMatchSetId(const char* value) { SetRegexMatchSetId(value); return *this;}
94 
95 
101  inline const Aws::Vector<RegexMatchSetUpdate>& GetUpdates() const{ return m_updates; }
102 
108  inline bool UpdatesHasBeenSet() const { return m_updatesHasBeenSet; }
109 
115  inline void SetUpdates(const Aws::Vector<RegexMatchSetUpdate>& value) { m_updatesHasBeenSet = true; m_updates = value; }
116 
122  inline void SetUpdates(Aws::Vector<RegexMatchSetUpdate>&& value) { m_updatesHasBeenSet = true; m_updates = std::move(value); }
123 
129  inline UpdateRegexMatchSetRequest& WithUpdates(const Aws::Vector<RegexMatchSetUpdate>& value) { SetUpdates(value); return *this;}
130 
136  inline UpdateRegexMatchSetRequest& WithUpdates(Aws::Vector<RegexMatchSetUpdate>&& value) { SetUpdates(std::move(value)); return *this;}
137 
143  inline UpdateRegexMatchSetRequest& AddUpdates(const RegexMatchSetUpdate& value) { m_updatesHasBeenSet = true; m_updates.push_back(value); return *this; }
144 
150  inline UpdateRegexMatchSetRequest& AddUpdates(RegexMatchSetUpdate&& value) { m_updatesHasBeenSet = true; m_updates.push_back(std::move(value)); return *this; }
151 
152 
156  inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
157 
161  inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
162 
166  inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
167 
171  inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
172 
176  inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
177 
181  inline UpdateRegexMatchSetRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
182 
186  inline UpdateRegexMatchSetRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
187 
191  inline UpdateRegexMatchSetRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
192 
193  private:
194 
195  Aws::String m_regexMatchSetId;
196  bool m_regexMatchSetIdHasBeenSet;
197 
199  bool m_updatesHasBeenSet;
200 
201  Aws::String m_changeToken;
202  bool m_changeTokenHasBeenSet;
203  };
204 
205 } // namespace Model
206 } // namespace WAF
207 } // namespace Aws
Aws::WAF::Model::UpdateRegexMatchSetRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WAF::Model::UpdateRegexMatchSetRequest::SetUpdates
void SetUpdates(Aws::Vector< RegexMatchSetUpdate > &&value)
Definition: UpdateRegexMatchSetRequest.h:122
Aws::WAF::Model::UpdateRegexMatchSetRequest::ChangeTokenHasBeenSet
bool ChangeTokenHasBeenSet() const
Definition: UpdateRegexMatchSetRequest.h:161
Aws::WAF::Model::RegexMatchSetUpdate
Definition: RegexMatchSetUpdate.h:43
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WAF::Model::UpdateRegexMatchSetRequest::UpdateRegexMatchSetRequest
UpdateRegexMatchSetRequest()
Aws::WAF::Model::UpdateRegexMatchSetRequest::WithRegexMatchSetId
UpdateRegexMatchSetRequest & WithRegexMatchSetId(const Aws::String &value)
Definition: UpdateRegexMatchSetRequest.h:79
Aws::WAF::Model::UpdateRegexMatchSetRequest::GetUpdates
const Aws::Vector< RegexMatchSetUpdate > & GetUpdates() const
Definition: UpdateRegexMatchSetRequest.h:101
AWS_WAF_API
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:28
Aws::WAF::Model::UpdateRegexMatchSetRequest::GetChangeToken
const Aws::String & GetChangeToken() const
Definition: UpdateRegexMatchSetRequest.h:156
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::WAF::Model::UpdateRegexMatchSetRequest::AddUpdates
UpdateRegexMatchSetRequest & AddUpdates(RegexMatchSetUpdate &&value)
Definition: UpdateRegexMatchSetRequest.h:150
Aws::WAF::Model::UpdateRegexMatchSetRequest::RegexMatchSetIdHasBeenSet
bool RegexMatchSetIdHasBeenSet() const
Definition: UpdateRegexMatchSetRequest.h:51
AWSVector.h
Aws::WAF::Model::UpdateRegexMatchSetRequest::WithChangeToken
UpdateRegexMatchSetRequest & WithChangeToken(Aws::String &&value)
Definition: UpdateRegexMatchSetRequest.h:186
Aws::WAF::Model::UpdateRegexMatchSetRequest
Definition: UpdateRegexMatchSetRequest.h:24
Aws::WAF::Model::UpdateRegexMatchSetRequest::GetRegexMatchSetId
const Aws::String & GetRegexMatchSetId() const
Definition: UpdateRegexMatchSetRequest.h:44
Aws::WAF::Model::UpdateRegexMatchSetRequest::WithChangeToken
UpdateRegexMatchSetRequest & WithChangeToken(const char *value)
Definition: UpdateRegexMatchSetRequest.h:191
Aws::WAF::Model::UpdateRegexMatchSetRequest::SetRegexMatchSetId
void SetRegexMatchSetId(Aws::String &&value)
Definition: UpdateRegexMatchSetRequest.h:65
Aws::WAF::Model::UpdateRegexMatchSetRequest::AddUpdates
UpdateRegexMatchSetRequest & AddUpdates(const RegexMatchSetUpdate &value)
Definition: UpdateRegexMatchSetRequest.h:143
Aws::WAF::Model::UpdateRegexMatchSetRequest::UpdatesHasBeenSet
bool UpdatesHasBeenSet() const
Definition: UpdateRegexMatchSetRequest.h:108
Aws::WAF::Model::UpdateRegexMatchSetRequest::WithUpdates
UpdateRegexMatchSetRequest & WithUpdates(Aws::Vector< RegexMatchSetUpdate > &&value)
Definition: UpdateRegexMatchSetRequest.h:136
Aws::WAF::Model::UpdateRegexMatchSetRequest::SetUpdates
void SetUpdates(const Aws::Vector< RegexMatchSetUpdate > &value)
Definition: UpdateRegexMatchSetRequest.h:115
RegexMatchSetUpdate.h
Aws::WAF::Model::UpdateRegexMatchSetRequest::SetChangeToken
void SetChangeToken(const Aws::String &value)
Definition: UpdateRegexMatchSetRequest.h:166
AWSString.h
Aws::WAF::Model::UpdateRegexMatchSetRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::WAF::Model::UpdateRegexMatchSetRequest::SetRegexMatchSetId
void SetRegexMatchSetId(const char *value)
Definition: UpdateRegexMatchSetRequest.h:72
WAF_EXPORTS.h
WAFRequest.h
Aws::WAF::Model::UpdateRegexMatchSetRequest::WithRegexMatchSetId
UpdateRegexMatchSetRequest & WithRegexMatchSetId(const char *value)
Definition: UpdateRegexMatchSetRequest.h:93
Aws::WAF::Model::UpdateRegexMatchSetRequest::WithUpdates
UpdateRegexMatchSetRequest & WithUpdates(const Aws::Vector< RegexMatchSetUpdate > &value)
Definition: UpdateRegexMatchSetRequest.h:129
Aws
Definition: AccessManagementClient.h:15
Aws::WAF::Model::UpdateRegexMatchSetRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateRegexMatchSetRequest.h:32
Aws::WAF::Model::UpdateRegexMatchSetRequest::WithRegexMatchSetId
UpdateRegexMatchSetRequest & WithRegexMatchSetId(Aws::String &&value)
Definition: UpdateRegexMatchSetRequest.h:86
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAF::Model::UpdateRegexMatchSetRequest::SetChangeToken
void SetChangeToken(Aws::String &&value)
Definition: UpdateRegexMatchSetRequest.h:171
Aws::WAF::Model::UpdateRegexMatchSetRequest::WithChangeToken
UpdateRegexMatchSetRequest & WithChangeToken(const Aws::String &value)
Definition: UpdateRegexMatchSetRequest.h:181
Aws::WAF::WAFRequest
Definition: WAFRequest.h:17
Aws::WAF::Model::UpdateRegexMatchSetRequest::SetRegexMatchSetId
void SetRegexMatchSetId(const Aws::String &value)
Definition: UpdateRegexMatchSetRequest.h:58
Aws::WAF::Model::UpdateRegexMatchSetRequest::SetChangeToken
void SetChangeToken(const char *value)
Definition: UpdateRegexMatchSetRequest.h:176