AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateWebACLRequest.h
1
6#pragma once
7#include <aws/waf-regional/WAFRegional_EXPORTS.h>
8#include <aws/waf-regional/WAFRegionalRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/waf-regional/model/WafAction.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/waf-regional/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace WAFRegional
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_WAFREGIONAL_API CreateWebACLRequest();
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_WAFREGIONAL_API Aws::String SerializePayload() const override;
36
37 AWS_WAFREGIONAL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
45 inline const Aws::String& GetName() const{ return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
48 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
49 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
50 inline CreateWebACLRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
51 inline CreateWebACLRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
52 inline CreateWebACLRequest& WithName(const char* value) { SetName(value); return *this;}
54
56
64 inline const Aws::String& GetMetricName() const{ return m_metricName; }
65 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
66 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
67 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
68 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
69 inline CreateWebACLRequest& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
70 inline CreateWebACLRequest& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
71 inline CreateWebACLRequest& WithMetricName(const char* value) { SetMetricName(value); return *this;}
73
75
80 inline const WafAction& GetDefaultAction() const{ return m_defaultAction; }
81 inline bool DefaultActionHasBeenSet() const { return m_defaultActionHasBeenSet; }
82 inline void SetDefaultAction(const WafAction& value) { m_defaultActionHasBeenSet = true; m_defaultAction = value; }
83 inline void SetDefaultAction(WafAction&& value) { m_defaultActionHasBeenSet = true; m_defaultAction = std::move(value); }
84 inline CreateWebACLRequest& WithDefaultAction(const WafAction& value) { SetDefaultAction(value); return *this;}
85 inline CreateWebACLRequest& WithDefaultAction(WafAction&& value) { SetDefaultAction(std::move(value)); return *this;}
87
89
92 inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
93 inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
94 inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
95 inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
96 inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
97 inline CreateWebACLRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
98 inline CreateWebACLRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
99 inline CreateWebACLRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
101
103
106 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
107 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
108 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
109 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
110 inline CreateWebACLRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
111 inline CreateWebACLRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
112 inline CreateWebACLRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
113 inline CreateWebACLRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
115 private:
116
117 Aws::String m_name;
118 bool m_nameHasBeenSet = false;
119
120 Aws::String m_metricName;
121 bool m_metricNameHasBeenSet = false;
122
123 WafAction m_defaultAction;
124 bool m_defaultActionHasBeenSet = false;
125
126 Aws::String m_changeToken;
127 bool m_changeTokenHasBeenSet = false;
128
129 Aws::Vector<Tag> m_tags;
130 bool m_tagsHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace WAFRegional
135} // namespace Aws
CreateWebACLRequest & WithMetricName(const Aws::String &value)
CreateWebACLRequest & WithName(const Aws::String &value)
CreateWebACLRequest & WithChangeToken(Aws::String &&value)
void SetChangeToken(const Aws::String &value)
AWS_WAFREGIONAL_API Aws::String SerializePayload() const override
CreateWebACLRequest & WithDefaultAction(WafAction &&value)
CreateWebACLRequest & WithDefaultAction(const WafAction &value)
CreateWebACLRequest & WithChangeToken(const Aws::String &value)
CreateWebACLRequest & WithName(const char *value)
CreateWebACLRequest & WithTags(const Aws::Vector< Tag > &value)
CreateWebACLRequest & AddTags(Tag &&value)
CreateWebACLRequest & WithName(Aws::String &&value)
AWS_WAFREGIONAL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateWebACLRequest & WithMetricName(Aws::String &&value)
CreateWebACLRequest & WithMetricName(const char *value)
void SetTags(const Aws::Vector< Tag > &value)
virtual const char * GetServiceRequestName() const override
CreateWebACLRequest & WithChangeToken(const char *value)
CreateWebACLRequest & AddTags(const Tag &value)
const Aws::Vector< Tag > & GetTags() const
CreateWebACLRequest & WithTags(Aws::Vector< Tag > &&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