AWS SDK for C++  1.9.129
AWS SDK for C++
UpdateRegexPatternSetRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace WAFRegional
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 "UpdateRegexPatternSet"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
44  inline const Aws::String& GetRegexPatternSetId() const{ return m_regexPatternSetId; }
45 
51  inline bool RegexPatternSetIdHasBeenSet() const { return m_regexPatternSetIdHasBeenSet; }
52 
58  inline void SetRegexPatternSetId(const Aws::String& value) { m_regexPatternSetIdHasBeenSet = true; m_regexPatternSetId = value; }
59 
65  inline void SetRegexPatternSetId(Aws::String&& value) { m_regexPatternSetIdHasBeenSet = true; m_regexPatternSetId = std::move(value); }
66 
72  inline void SetRegexPatternSetId(const char* value) { m_regexPatternSetIdHasBeenSet = true; m_regexPatternSetId.assign(value); }
73 
79  inline UpdateRegexPatternSetRequest& WithRegexPatternSetId(const Aws::String& value) { SetRegexPatternSetId(value); return *this;}
80 
86  inline UpdateRegexPatternSetRequest& WithRegexPatternSetId(Aws::String&& value) { SetRegexPatternSetId(std::move(value)); return *this;}
87 
93  inline UpdateRegexPatternSetRequest& WithRegexPatternSetId(const char* value) { SetRegexPatternSetId(value); return *this;}
94 
95 
100  inline const Aws::Vector<RegexPatternSetUpdate>& GetUpdates() const{ return m_updates; }
101 
106  inline bool UpdatesHasBeenSet() const { return m_updatesHasBeenSet; }
107 
112  inline void SetUpdates(const Aws::Vector<RegexPatternSetUpdate>& value) { m_updatesHasBeenSet = true; m_updates = value; }
113 
118  inline void SetUpdates(Aws::Vector<RegexPatternSetUpdate>&& value) { m_updatesHasBeenSet = true; m_updates = std::move(value); }
119 
124  inline UpdateRegexPatternSetRequest& WithUpdates(const Aws::Vector<RegexPatternSetUpdate>& value) { SetUpdates(value); return *this;}
125 
130  inline UpdateRegexPatternSetRequest& WithUpdates(Aws::Vector<RegexPatternSetUpdate>&& value) { SetUpdates(std::move(value)); return *this;}
131 
136  inline UpdateRegexPatternSetRequest& AddUpdates(const RegexPatternSetUpdate& value) { m_updatesHasBeenSet = true; m_updates.push_back(value); return *this; }
137 
142  inline UpdateRegexPatternSetRequest& AddUpdates(RegexPatternSetUpdate&& value) { m_updatesHasBeenSet = true; m_updates.push_back(std::move(value)); return *this; }
143 
144 
148  inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
149 
153  inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
154 
158  inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
159 
163  inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
164 
168  inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
169 
173  inline UpdateRegexPatternSetRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
174 
178  inline UpdateRegexPatternSetRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
179 
183  inline UpdateRegexPatternSetRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
184 
185  private:
186 
187  Aws::String m_regexPatternSetId;
188  bool m_regexPatternSetIdHasBeenSet;
189 
191  bool m_updatesHasBeenSet;
192 
193  Aws::String m_changeToken;
194  bool m_changeTokenHasBeenSet;
195  };
196 
197 } // namespace Model
198 } // namespace WAFRegional
199 } // namespace Aws
RegexPatternSetUpdate.h
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WAFRegional::WAFRegionalRequest
Definition: WAFRegionalRequest.h:17
Aws::WAFRegional::Model::UpdateRegexPatternSetRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::WAFRegional::Model::UpdateRegexPatternSetRequest::SetChangeToken
void SetChangeToken(Aws::String &&value)
Definition: UpdateRegexPatternSetRequest.h:163
Aws::WAFRegional::Model::UpdateRegexPatternSetRequest::WithRegexPatternSetId
UpdateRegexPatternSetRequest & WithRegexPatternSetId(const char *value)
Definition: UpdateRegexPatternSetRequest.h:93
Aws::WAFRegional::Model::UpdateRegexPatternSetRequest::WithUpdates
UpdateRegexPatternSetRequest & WithUpdates(Aws::Vector< RegexPatternSetUpdate > &&value)
Definition: UpdateRegexPatternSetRequest.h:130
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWS_WAFREGIONAL_API
#define AWS_WAFREGIONAL_API
Definition: WAFRegional_EXPORTS.h:28
WAFRegionalRequest.h
Aws::WAFRegional::Model::UpdateRegexPatternSetRequest::WithRegexPatternSetId
UpdateRegexPatternSetRequest & WithRegexPatternSetId(Aws::String &&value)
Definition: UpdateRegexPatternSetRequest.h:86
Aws::WAFRegional::Model::UpdateRegexPatternSetRequest::SetUpdates
void SetUpdates(Aws::Vector< RegexPatternSetUpdate > &&value)
Definition: UpdateRegexPatternSetRequest.h:118
Aws::WAFRegional::Model::UpdateRegexPatternSetRequest::SetUpdates
void SetUpdates(const Aws::Vector< RegexPatternSetUpdate > &value)
Definition: UpdateRegexPatternSetRequest.h:112
Aws::WAFRegional::Model::UpdateRegexPatternSetRequest::GetChangeToken
const Aws::String & GetChangeToken() const
Definition: UpdateRegexPatternSetRequest.h:148
AWSVector.h
Aws::WAFRegional::Model::UpdateRegexPatternSetRequest::WithChangeToken
UpdateRegexPatternSetRequest & WithChangeToken(Aws::String &&value)
Definition: UpdateRegexPatternSetRequest.h:178
Aws::WAFRegional::Model::UpdateRegexPatternSetRequest::AddUpdates
UpdateRegexPatternSetRequest & AddUpdates(RegexPatternSetUpdate &&value)
Definition: UpdateRegexPatternSetRequest.h:142
Aws::WAFRegional::Model::UpdateRegexPatternSetRequest
Definition: UpdateRegexPatternSetRequest.h:24
Aws::WAFRegional::Model::RegexPatternSetUpdate
Definition: RegexPatternSetUpdate.h:44
Aws::WAFRegional::Model::UpdateRegexPatternSetRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateRegexPatternSetRequest.h:32
Aws::WAFRegional::Model::UpdateRegexPatternSetRequest::SetChangeToken
void SetChangeToken(const char *value)
Definition: UpdateRegexPatternSetRequest.h:168
Aws::WAFRegional::Model::UpdateRegexPatternSetRequest::WithUpdates
UpdateRegexPatternSetRequest & WithUpdates(const Aws::Vector< RegexPatternSetUpdate > &value)
Definition: UpdateRegexPatternSetRequest.h:124
Aws::WAFRegional::Model::UpdateRegexPatternSetRequest::SetRegexPatternSetId
void SetRegexPatternSetId(const Aws::String &value)
Definition: UpdateRegexPatternSetRequest.h:58
Aws::WAFRegional::Model::UpdateRegexPatternSetRequest::SerializePayload
Aws::String SerializePayload() const override
AWSString.h
Aws::WAFRegional::Model::UpdateRegexPatternSetRequest::AddUpdates
UpdateRegexPatternSetRequest & AddUpdates(const RegexPatternSetUpdate &value)
Definition: UpdateRegexPatternSetRequest.h:136
Aws::WAFRegional::Model::UpdateRegexPatternSetRequest::WithRegexPatternSetId
UpdateRegexPatternSetRequest & WithRegexPatternSetId(const Aws::String &value)
Definition: UpdateRegexPatternSetRequest.h:79
WAFRegional_EXPORTS.h
Aws::WAFRegional::Model::UpdateRegexPatternSetRequest::GetRegexPatternSetId
const Aws::String & GetRegexPatternSetId() const
Definition: UpdateRegexPatternSetRequest.h:44
Aws::WAFRegional::Model::UpdateRegexPatternSetRequest::ChangeTokenHasBeenSet
bool ChangeTokenHasBeenSet() const
Definition: UpdateRegexPatternSetRequest.h:153
Aws::WAFRegional::Model::UpdateRegexPatternSetRequest::WithChangeToken
UpdateRegexPatternSetRequest & WithChangeToken(const char *value)
Definition: UpdateRegexPatternSetRequest.h:183
Aws::WAFRegional::Model::UpdateRegexPatternSetRequest::RegexPatternSetIdHasBeenSet
bool RegexPatternSetIdHasBeenSet() const
Definition: UpdateRegexPatternSetRequest.h:51
Aws
Definition: AccessManagementClient.h:15
Aws::WAFRegional::Model::UpdateRegexPatternSetRequest::SetChangeToken
void SetChangeToken(const Aws::String &value)
Definition: UpdateRegexPatternSetRequest.h:158
Aws::WAFRegional::Model::UpdateRegexPatternSetRequest::SetRegexPatternSetId
void SetRegexPatternSetId(const char *value)
Definition: UpdateRegexPatternSetRequest.h:72
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFRegional::Model::UpdateRegexPatternSetRequest::UpdateRegexPatternSetRequest
UpdateRegexPatternSetRequest()
Aws::WAFRegional::Model::UpdateRegexPatternSetRequest::SetRegexPatternSetId
void SetRegexPatternSetId(Aws::String &&value)
Definition: UpdateRegexPatternSetRequest.h:65
Aws::WAFRegional::Model::UpdateRegexPatternSetRequest::WithChangeToken
UpdateRegexPatternSetRequest & WithChangeToken(const Aws::String &value)
Definition: UpdateRegexPatternSetRequest.h:173
Aws::WAFRegional::Model::UpdateRegexPatternSetRequest::UpdatesHasBeenSet
bool UpdatesHasBeenSet() const
Definition: UpdateRegexPatternSetRequest.h:106
Aws::WAFRegional::Model::UpdateRegexPatternSetRequest::GetUpdates
const Aws::Vector< RegexPatternSetUpdate > & GetUpdates() const
Definition: UpdateRegexPatternSetRequest.h:100