AWS SDK for C++  1.9.109
AWS SDK for C++
CreateWebACLRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace WAFRegional
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "CreateWebACL"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
44  inline const Aws::String& GetName() const{ return m_name; }
45 
50  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 
56  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
57 
62  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
63 
68  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
69 
74  inline CreateWebACLRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
75 
80  inline CreateWebACLRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
81 
86  inline CreateWebACLRequest& WithName(const char* value) { SetName(value); return *this;}
87 
88 
97  inline const Aws::String& GetMetricName() const{ return m_metricName; }
98 
107  inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
108 
117  inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
118 
127  inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
128 
137  inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
138 
147  inline CreateWebACLRequest& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
148 
157  inline CreateWebACLRequest& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
158 
167  inline CreateWebACLRequest& WithMetricName(const char* value) { SetMetricName(value); return *this;}
168 
169 
175  inline const WafAction& GetDefaultAction() const{ return m_defaultAction; }
176 
182  inline bool DefaultActionHasBeenSet() const { return m_defaultActionHasBeenSet; }
183 
189  inline void SetDefaultAction(const WafAction& value) { m_defaultActionHasBeenSet = true; m_defaultAction = value; }
190 
196  inline void SetDefaultAction(WafAction&& value) { m_defaultActionHasBeenSet = true; m_defaultAction = std::move(value); }
197 
203  inline CreateWebACLRequest& WithDefaultAction(const WafAction& value) { SetDefaultAction(value); return *this;}
204 
210  inline CreateWebACLRequest& WithDefaultAction(WafAction&& value) { SetDefaultAction(std::move(value)); return *this;}
211 
212 
216  inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
217 
221  inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
222 
226  inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
227 
231  inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
232 
236  inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
237 
241  inline CreateWebACLRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
242 
246  inline CreateWebACLRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
247 
251  inline CreateWebACLRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
252 
253 
257  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
258 
262  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
263 
267  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
268 
272  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
273 
277  inline CreateWebACLRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
278 
282  inline CreateWebACLRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
283 
287  inline CreateWebACLRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
288 
292  inline CreateWebACLRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
293 
294  private:
295 
296  Aws::String m_name;
297  bool m_nameHasBeenSet;
298 
299  Aws::String m_metricName;
300  bool m_metricNameHasBeenSet;
301 
302  WafAction m_defaultAction;
303  bool m_defaultActionHasBeenSet;
304 
305  Aws::String m_changeToken;
306  bool m_changeTokenHasBeenSet;
307 
308  Aws::Vector<Tag> m_tags;
309  bool m_tagsHasBeenSet;
310  };
311 
312 } // namespace Model
313 } // namespace WAFRegional
314 } // namespace Aws
Aws::WAFRegional::Model::CreateWebACLRequest::WithChangeToken
CreateWebACLRequest & WithChangeToken(const Aws::String &value)
Definition: CreateWebACLRequest.h:241
Aws::WAFRegional::Model::CreateWebACLRequest::WithName
CreateWebACLRequest & WithName(const Aws::String &value)
Definition: CreateWebACLRequest.h:74
Aws::WAFRegional::Model::CreateWebACLRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateWebACLRequest.h:262
Aws::WAFRegional::Model::CreateWebACLRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateWebACLRequest.h:257
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WAFRegional::Model::CreateWebACLRequest::WithName
CreateWebACLRequest & WithName(const char *value)
Definition: CreateWebACLRequest.h:86
Aws::WAFRegional::Model::CreateWebACLRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateWebACLRequest.h:272
Aws::WAFRegional::Model::CreateWebACLRequest::GetChangeToken
const Aws::String & GetChangeToken() const
Definition: CreateWebACLRequest.h:216
Aws::WAFRegional::WAFRegionalRequest
Definition: WAFRegionalRequest.h:17
Aws::WAFRegional::Model::CreateWebACLRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateWebACLRequest.h:267
Tag.h
Aws::WAFRegional::Model::CreateWebACLRequest::GetMetricName
const Aws::String & GetMetricName() const
Definition: CreateWebACLRequest.h:97
Aws::WAFRegional::Model::CreateWebACLRequest::WithDefaultAction
CreateWebACLRequest & WithDefaultAction(WafAction &&value)
Definition: CreateWebACLRequest.h:210
Aws::WAFRegional::Model::CreateWebACLRequest::WithDefaultAction
CreateWebACLRequest & WithDefaultAction(const WafAction &value)
Definition: CreateWebACLRequest.h:203
Aws::WAFRegional::Model::CreateWebACLRequest::SetMetricName
void SetMetricName(const Aws::String &value)
Definition: CreateWebACLRequest.h:117
WafAction.h
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::CreateWebACLRequest::WithChangeToken
CreateWebACLRequest & WithChangeToken(Aws::String &&value)
Definition: CreateWebACLRequest.h:246
Aws::WAFRegional::Model::CreateWebACLRequest::WithMetricName
CreateWebACLRequest & WithMetricName(Aws::String &&value)
Definition: CreateWebACLRequest.h:157
AWSVector.h
Aws::WAFRegional::Model::CreateWebACLRequest::CreateWebACLRequest
CreateWebACLRequest()
Aws::WAFRegional::Model::CreateWebACLRequest::AddTags
CreateWebACLRequest & AddTags(Tag &&value)
Definition: CreateWebACLRequest.h:292
Aws::WAFRegional::Model::CreateWebACLRequest::AddTags
CreateWebACLRequest & AddTags(const Tag &value)
Definition: CreateWebACLRequest.h:287
Aws::WAFRegional::Model::CreateWebACLRequest::WithMetricName
CreateWebACLRequest & WithMetricName(const char *value)
Definition: CreateWebACLRequest.h:167
Aws::WAFRegional::Model::CreateWebACLRequest::SetDefaultAction
void SetDefaultAction(WafAction &&value)
Definition: CreateWebACLRequest.h:196
Aws::WAFRegional::Model::CreateWebACLRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateWebACLRequest.h:62
Aws::WAFRegional::Model::CreateWebACLRequest::SetMetricName
void SetMetricName(Aws::String &&value)
Definition: CreateWebACLRequest.h:127
Aws::WAFRegional::Model::CreateWebACLRequest::SetChangeToken
void SetChangeToken(Aws::String &&value)
Definition: CreateWebACLRequest.h:231
Aws::WAFRegional::Model::CreateWebACLRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateWebACLRequest.h:56
Aws::WAFRegional::Model::CreateWebACLRequest::WithName
CreateWebACLRequest & WithName(Aws::String &&value)
Definition: CreateWebACLRequest.h:80
Aws::WAFRegional::Model::CreateWebACLRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateWebACLRequest.h:50
Aws::WAFRegional::Model::WafAction
Definition: WafAction.h:44
Aws::WAFRegional::Model::CreateWebACLRequest::SetChangeToken
void SetChangeToken(const char *value)
Definition: CreateWebACLRequest.h:236
Aws::WAFRegional::Model::CreateWebACLRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::WAFRegional::Model::CreateWebACLRequest::WithTags
CreateWebACLRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateWebACLRequest.h:282
AWSString.h
Aws::WAFRegional::Model::CreateWebACLRequest::SetMetricName
void SetMetricName(const char *value)
Definition: CreateWebACLRequest.h:137
Aws::WAFRegional::Model::CreateWebACLRequest::GetName
const Aws::String & GetName() const
Definition: CreateWebACLRequest.h:44
Aws::WAFRegional::Model::CreateWebACLRequest::SetName
void SetName(const char *value)
Definition: CreateWebACLRequest.h:68
WAFRegional_EXPORTS.h
Aws::WAFRegional::Model::CreateWebACLRequest::WithTags
CreateWebACLRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateWebACLRequest.h:277
Aws::WAFRegional::Model::CreateWebACLRequest::WithMetricName
CreateWebACLRequest & WithMetricName(const Aws::String &value)
Definition: CreateWebACLRequest.h:147
Aws::WAFRegional::Model::CreateWebACLRequest::MetricNameHasBeenSet
bool MetricNameHasBeenSet() const
Definition: CreateWebACLRequest.h:107
Aws::WAFRegional::Model::Tag
Definition: Tag.h:47
Aws::WAFRegional::Model::CreateWebACLRequest::WithChangeToken
CreateWebACLRequest & WithChangeToken(const char *value)
Definition: CreateWebACLRequest.h:251
Aws::WAFRegional::Model::CreateWebACLRequest
Definition: CreateWebACLRequest.h:25
Aws::WAFRegional::Model::CreateWebACLRequest::ChangeTokenHasBeenSet
bool ChangeTokenHasBeenSet() const
Definition: CreateWebACLRequest.h:221
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFRegional::Model::CreateWebACLRequest::SetDefaultAction
void SetDefaultAction(const WafAction &value)
Definition: CreateWebACLRequest.h:189
Aws::WAFRegional::Model::CreateWebACLRequest::DefaultActionHasBeenSet
bool DefaultActionHasBeenSet() const
Definition: CreateWebACLRequest.h:182
Aws::WAFRegional::Model::CreateWebACLRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WAFRegional::Model::CreateWebACLRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateWebACLRequest.h:33
Aws::WAFRegional::Model::CreateWebACLRequest::SetChangeToken
void SetChangeToken(const Aws::String &value)
Definition: CreateWebACLRequest.h:226
Aws::WAFRegional::Model::CreateWebACLRequest::GetDefaultAction
const WafAction & GetDefaultAction() const
Definition: CreateWebACLRequest.h:175