AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 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 CreateRegexPatternSetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
51 inline CreateRegexPatternSetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
52 inline CreateRegexPatternSetRequest& WithName(const char* value) { SetName(value); return *this;}
54
56
67 inline const Scope& GetScope() const{ return m_scope; }
68 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
69 inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; }
70 inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
71 inline CreateRegexPatternSetRequest& WithScope(const Scope& value) { SetScope(value); return *this;}
72 inline CreateRegexPatternSetRequest& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;}
74
76
79 inline const Aws::String& GetDescription() const{ return m_description; }
80 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
82 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
83 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
84 inline CreateRegexPatternSetRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
85 inline CreateRegexPatternSetRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
86 inline CreateRegexPatternSetRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
88
90
93 inline const Aws::Vector<Regex>& GetRegularExpressionList() const{ return m_regularExpressionList; }
94 inline bool RegularExpressionListHasBeenSet() const { return m_regularExpressionListHasBeenSet; }
95 inline void SetRegularExpressionList(const Aws::Vector<Regex>& value) { m_regularExpressionListHasBeenSet = true; m_regularExpressionList = value; }
96 inline void SetRegularExpressionList(Aws::Vector<Regex>&& value) { m_regularExpressionListHasBeenSet = true; m_regularExpressionList = std::move(value); }
99 inline CreateRegexPatternSetRequest& AddRegularExpressionList(const Regex& value) { m_regularExpressionListHasBeenSet = true; m_regularExpressionList.push_back(value); return *this; }
100 inline CreateRegexPatternSetRequest& AddRegularExpressionList(Regex&& value) { m_regularExpressionListHasBeenSet = true; m_regularExpressionList.push_back(std::move(value)); return *this; }
102
104
107 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
108 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
109 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
110 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
111 inline CreateRegexPatternSetRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
112 inline CreateRegexPatternSetRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
113 inline CreateRegexPatternSetRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
114 inline CreateRegexPatternSetRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
116 private:
117
118 Aws::String m_name;
119 bool m_nameHasBeenSet = false;
120
121 Scope m_scope;
122 bool m_scopeHasBeenSet = false;
123
124 Aws::String m_description;
125 bool m_descriptionHasBeenSet = false;
126
127 Aws::Vector<Regex> m_regularExpressionList;
128 bool m_regularExpressionListHasBeenSet = false;
129
130 Aws::Vector<Tag> m_tags;
131 bool m_tagsHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace WAFV2
136} // namespace Aws
CreateRegexPatternSetRequest & WithRegularExpressionList(Aws::Vector< Regex > &&value)
CreateRegexPatternSetRequest & WithScope(Scope &&value)
CreateRegexPatternSetRequest & WithName(const char *value)
CreateRegexPatternSetRequest & WithDescription(Aws::String &&value)
CreateRegexPatternSetRequest & AddRegularExpressionList(const Regex &value)
CreateRegexPatternSetRequest & WithDescription(const char *value)
CreateRegexPatternSetRequest & WithTags(Aws::Vector< Tag > &&value)
AWS_WAFV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateRegexPatternSetRequest & WithDescription(const Aws::String &value)
AWS_WAFV2_API Aws::String SerializePayload() const override
CreateRegexPatternSetRequest & WithName(const Aws::String &value)
const Aws::Vector< Regex > & GetRegularExpressionList() const
CreateRegexPatternSetRequest & AddTags(const Tag &value)
CreateRegexPatternSetRequest & AddTags(Tag &&value)
CreateRegexPatternSetRequest & WithRegularExpressionList(const Aws::Vector< Regex > &value)
void SetRegularExpressionList(const Aws::Vector< Regex > &value)
CreateRegexPatternSetRequest & WithTags(const Aws::Vector< Tag > &value)
CreateRegexPatternSetRequest & AddRegularExpressionList(Regex &&value)
CreateRegexPatternSetRequest & WithScope(const Scope &value)
CreateRegexPatternSetRequest & WithName(Aws::String &&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