AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateRegexPatternSetRequest.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/wafv2/WAFV2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/wafv2/model/Scope.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/wafv2/model/Regex.h>
13#include <aws/wafv2/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace WAFV2
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_WAFV2_API CreateRegexPatternSetRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateRegexPatternSet"; }
35
36 AWS_WAFV2_API Aws::String SerializePayload() const override;
37
39
40
42
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 CreateRegexPatternSetRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
52
54
63 inline Scope GetScope() const { return m_scope; }
64 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
65 inline void SetScope(Scope value) { m_scopeHasBeenSet = true; m_scope = value; }
66 inline CreateRegexPatternSetRequest& WithScope(Scope value) { SetScope(value); return *this;}
68
70
73 inline const Aws::String& GetDescription() const { return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 template<typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
77 template<typename DescriptionT = Aws::String>
78 CreateRegexPatternSetRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
80
82
85 inline const Aws::Vector<Regex>& GetRegularExpressionList() const { return m_regularExpressionList; }
86 inline bool RegularExpressionListHasBeenSet() const { return m_regularExpressionListHasBeenSet; }
87 template<typename RegularExpressionListT = Aws::Vector<Regex>>
88 void SetRegularExpressionList(RegularExpressionListT&& value) { m_regularExpressionListHasBeenSet = true; m_regularExpressionList = std::forward<RegularExpressionListT>(value); }
89 template<typename RegularExpressionListT = Aws::Vector<Regex>>
90 CreateRegexPatternSetRequest& WithRegularExpressionList(RegularExpressionListT&& value) { SetRegularExpressionList(std::forward<RegularExpressionListT>(value)); return *this;}
91 template<typename RegularExpressionListT = Regex>
92 CreateRegexPatternSetRequest& AddRegularExpressionList(RegularExpressionListT&& value) { m_regularExpressionListHasBeenSet = true; m_regularExpressionList.emplace_back(std::forward<RegularExpressionListT>(value)); return *this; }
94
96
99 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
100 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
101 template<typename TagsT = Aws::Vector<Tag>>
102 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
103 template<typename TagsT = Aws::Vector<Tag>>
104 CreateRegexPatternSetRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
105 template<typename TagsT = Tag>
106 CreateRegexPatternSetRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
108 private:
109
110 Aws::String m_name;
111 bool m_nameHasBeenSet = false;
112
113 Scope m_scope{Scope::NOT_SET};
114 bool m_scopeHasBeenSet = false;
115
116 Aws::String m_description;
117 bool m_descriptionHasBeenSet = false;
118
119 Aws::Vector<Regex> m_regularExpressionList;
120 bool m_regularExpressionListHasBeenSet = false;
121
122 Aws::Vector<Tag> m_tags;
123 bool m_tagsHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace WAFV2
128} // 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