AWS SDK for C++

AWS SDK for C++ Version 1.11.931

Loading...
Searching...
No Matches
CreateRegexPatternSetRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/wafv2/WAFV2Request.h>
10#include <aws/wafv2/WAFV2_EXPORTS.h>
11#include <aws/wafv2/model/Regex.h>
12#include <aws/wafv2/model/Scope.h>
13#include <aws/wafv2/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace WAFV2 {
19namespace Model {
20
24 public:
25 AWS_WAFV2_API CreateRegexPatternSetRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateRegexPatternSet"; }
32
33 AWS_WAFV2_API Aws::String SerializePayload() const override;
34
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
65 inline Scope GetScope() const { return m_scope; }
66 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
67 inline void SetScope(Scope value) {
68 m_scopeHasBeenSet = true;
69 m_scope = value;
70 }
72 SetScope(value);
73 return *this;
74 }
76
78
81 inline const Aws::String& GetDescription() const { return m_description; }
82 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
83 template <typename DescriptionT = Aws::String>
84 void SetDescription(DescriptionT&& value) {
85 m_descriptionHasBeenSet = true;
86 m_description = std::forward<DescriptionT>(value);
87 }
88 template <typename DescriptionT = Aws::String>
90 SetDescription(std::forward<DescriptionT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::Vector<Regex>& GetRegularExpressionList() const { return m_regularExpressionList; }
100 inline bool RegularExpressionListHasBeenSet() const { return m_regularExpressionListHasBeenSet; }
101 template <typename RegularExpressionListT = Aws::Vector<Regex>>
102 void SetRegularExpressionList(RegularExpressionListT&& value) {
103 m_regularExpressionListHasBeenSet = true;
104 m_regularExpressionList = std::forward<RegularExpressionListT>(value);
105 }
106 template <typename RegularExpressionListT = Aws::Vector<Regex>>
108 SetRegularExpressionList(std::forward<RegularExpressionListT>(value));
109 return *this;
110 }
111 template <typename RegularExpressionListT = Regex>
113 m_regularExpressionListHasBeenSet = true;
114 m_regularExpressionList.emplace_back(std::forward<RegularExpressionListT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
124 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
125 template <typename TagsT = Aws::Vector<Tag>>
126 void SetTags(TagsT&& value) {
127 m_tagsHasBeenSet = true;
128 m_tags = std::forward<TagsT>(value);
129 }
130 template <typename TagsT = Aws::Vector<Tag>>
132 SetTags(std::forward<TagsT>(value));
133 return *this;
134 }
135 template <typename TagsT = Tag>
137 m_tagsHasBeenSet = true;
138 m_tags.emplace_back(std::forward<TagsT>(value));
139 return *this;
140 }
142 private:
143 Aws::String m_name;
144
145 Scope m_scope{Scope::NOT_SET};
146
147 Aws::String m_description;
148
149 Aws::Vector<Regex> m_regularExpressionList;
150
151 Aws::Vector<Tag> m_tags;
152 bool m_nameHasBeenSet = false;
153 bool m_scopeHasBeenSet = false;
154 bool m_descriptionHasBeenSet = false;
155 bool m_regularExpressionListHasBeenSet = false;
156 bool m_tagsHasBeenSet = false;
157};
158
159} // namespace Model
160} // namespace WAFV2
161} // namespace Aws
void SetRegularExpressionList(RegularExpressionListT &&value)
AWS_WAFV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_WAFV2_API Aws::String SerializePayload() const override
CreateRegexPatternSetRequest & WithScope(Scope value)
CreateRegexPatternSetRequest & WithRegularExpressionList(RegularExpressionListT &&value)
AWS_WAFV2_API CreateRegexPatternSetRequest()=default
const Aws::Vector< Regex > & GetRegularExpressionList() const
CreateRegexPatternSetRequest & AddTags(TagsT &&value)
CreateRegexPatternSetRequest & WithDescription(DescriptionT &&value)
CreateRegexPatternSetRequest & WithTags(TagsT &&value)
CreateRegexPatternSetRequest & AddRegularExpressionList(RegularExpressionListT &&value)
CreateRegexPatternSetRequest & WithName(NameT &&value)
virtual const char * GetServiceRequestName() const override
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