AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateWebACLRequest.h
1
6#pragma once
7#include <aws/waf/WAF_EXPORTS.h>
8#include <aws/waf/WAFRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/waf/model/WafAction.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/waf/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace WAF
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_WAF_API CreateWebACLRequest() = default;
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_WAF_API Aws::String SerializePayload() const override;
36
38
39
41
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template<typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
49 template<typename NameT = Aws::String>
50 CreateWebACLRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
52
54
62 inline const Aws::String& GetMetricName() const { return m_metricName; }
63 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
64 template<typename MetricNameT = Aws::String>
65 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet = true; m_metricName = std::forward<MetricNameT>(value); }
66 template<typename MetricNameT = Aws::String>
67 CreateWebACLRequest& WithMetricName(MetricNameT&& value) { SetMetricName(std::forward<MetricNameT>(value)); return *this;}
69
71
76 inline const WafAction& GetDefaultAction() const { return m_defaultAction; }
77 inline bool DefaultActionHasBeenSet() const { return m_defaultActionHasBeenSet; }
78 template<typename DefaultActionT = WafAction>
79 void SetDefaultAction(DefaultActionT&& value) { m_defaultActionHasBeenSet = true; m_defaultAction = std::forward<DefaultActionT>(value); }
80 template<typename DefaultActionT = WafAction>
81 CreateWebACLRequest& WithDefaultAction(DefaultActionT&& value) { SetDefaultAction(std::forward<DefaultActionT>(value)); return *this;}
83
85
88 inline const Aws::String& GetChangeToken() const { return m_changeToken; }
89 inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
90 template<typename ChangeTokenT = Aws::String>
91 void SetChangeToken(ChangeTokenT&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::forward<ChangeTokenT>(value); }
92 template<typename ChangeTokenT = Aws::String>
93 CreateWebACLRequest& WithChangeToken(ChangeTokenT&& value) { SetChangeToken(std::forward<ChangeTokenT>(value)); return *this;}
95
97
100 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
101 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
102 template<typename TagsT = Aws::Vector<Tag>>
103 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
104 template<typename TagsT = Aws::Vector<Tag>>
105 CreateWebACLRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
106 template<typename TagsT = Tag>
107 CreateWebACLRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
109 private:
110
111 Aws::String m_name;
112 bool m_nameHasBeenSet = false;
113
114 Aws::String m_metricName;
115 bool m_metricNameHasBeenSet = false;
116
117 WafAction m_defaultAction;
118 bool m_defaultActionHasBeenSet = false;
119
120 Aws::String m_changeToken;
121 bool m_changeTokenHasBeenSet = false;
122
123 Aws::Vector<Tag> m_tags;
124 bool m_tagsHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace WAF
129} // namespace Aws
void SetDefaultAction(DefaultActionT &&value)
AWS_WAF_API CreateWebACLRequest()=default
CreateWebACLRequest & WithName(NameT &&value)
CreateWebACLRequest & WithChangeToken(ChangeTokenT &&value)
CreateWebACLRequest & WithDefaultAction(DefaultActionT &&value)
const Aws::String & GetMetricName() const
void SetMetricName(MetricNameT &&value)
const Aws::String & GetChangeToken() const
const WafAction & GetDefaultAction() const
AWS_WAF_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetName() const
AWS_WAF_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Tag > & GetTags() const
CreateWebACLRequest & WithTags(TagsT &&value)
CreateWebACLRequest & WithMetricName(MetricNameT &&value)
void SetChangeToken(ChangeTokenT &&value)
CreateWebACLRequest & AddTags(TagsT &&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