AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateRegexPatternSetRequest.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 <utility>
14
15namespace Aws
16{
17namespace WAFV2
18{
19namespace Model
20{
21
25 {
26 public:
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 "UpdateRegexPatternSet"; }
34
35 AWS_WAFV2_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetName() const{ return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
47 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
48 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
49 inline UpdateRegexPatternSetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
50 inline UpdateRegexPatternSetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
51 inline UpdateRegexPatternSetRequest& WithName(const char* value) { SetName(value); return *this;}
53
55
66 inline const Scope& GetScope() const{ return m_scope; }
67 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
68 inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; }
69 inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
70 inline UpdateRegexPatternSetRequest& WithScope(const Scope& value) { SetScope(value); return *this;}
71 inline UpdateRegexPatternSetRequest& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;}
73
75
80 inline const Aws::String& GetId() const{ return m_id; }
81 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
82 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
83 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
84 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
85 inline UpdateRegexPatternSetRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
86 inline UpdateRegexPatternSetRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
87 inline UpdateRegexPatternSetRequest& WithId(const char* value) { SetId(value); return *this;}
89
91
94 inline const Aws::String& GetDescription() const{ return m_description; }
95 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
96 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
97 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
98 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
99 inline UpdateRegexPatternSetRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
100 inline UpdateRegexPatternSetRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
101 inline UpdateRegexPatternSetRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
103
105
108 inline const Aws::Vector<Regex>& GetRegularExpressionList() const{ return m_regularExpressionList; }
109 inline bool RegularExpressionListHasBeenSet() const { return m_regularExpressionListHasBeenSet; }
110 inline void SetRegularExpressionList(const Aws::Vector<Regex>& value) { m_regularExpressionListHasBeenSet = true; m_regularExpressionList = value; }
111 inline void SetRegularExpressionList(Aws::Vector<Regex>&& value) { m_regularExpressionListHasBeenSet = true; m_regularExpressionList = std::move(value); }
114 inline UpdateRegexPatternSetRequest& AddRegularExpressionList(const Regex& value) { m_regularExpressionListHasBeenSet = true; m_regularExpressionList.push_back(value); return *this; }
115 inline UpdateRegexPatternSetRequest& AddRegularExpressionList(Regex&& value) { m_regularExpressionListHasBeenSet = true; m_regularExpressionList.push_back(std::move(value)); return *this; }
117
119
129 inline const Aws::String& GetLockToken() const{ return m_lockToken; }
130 inline bool LockTokenHasBeenSet() const { return m_lockTokenHasBeenSet; }
131 inline void SetLockToken(const Aws::String& value) { m_lockTokenHasBeenSet = true; m_lockToken = value; }
132 inline void SetLockToken(Aws::String&& value) { m_lockTokenHasBeenSet = true; m_lockToken = std::move(value); }
133 inline void SetLockToken(const char* value) { m_lockTokenHasBeenSet = true; m_lockToken.assign(value); }
134 inline UpdateRegexPatternSetRequest& WithLockToken(const Aws::String& value) { SetLockToken(value); return *this;}
135 inline UpdateRegexPatternSetRequest& WithLockToken(Aws::String&& value) { SetLockToken(std::move(value)); return *this;}
136 inline UpdateRegexPatternSetRequest& WithLockToken(const char* value) { SetLockToken(value); return *this;}
138 private:
139
140 Aws::String m_name;
141 bool m_nameHasBeenSet = false;
142
143 Scope m_scope;
144 bool m_scopeHasBeenSet = false;
145
146 Aws::String m_id;
147 bool m_idHasBeenSet = false;
148
149 Aws::String m_description;
150 bool m_descriptionHasBeenSet = false;
151
152 Aws::Vector<Regex> m_regularExpressionList;
153 bool m_regularExpressionListHasBeenSet = false;
154
155 Aws::String m_lockToken;
156 bool m_lockTokenHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace WAFV2
161} // namespace Aws
AWS_WAFV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateRegexPatternSetRequest & WithScope(Scope &&value)
UpdateRegexPatternSetRequest & AddRegularExpressionList(const Regex &value)
UpdateRegexPatternSetRequest & WithName(const char *value)
UpdateRegexPatternSetRequest & WithScope(const Scope &value)
UpdateRegexPatternSetRequest & WithLockToken(const Aws::String &value)
UpdateRegexPatternSetRequest & WithName(Aws::String &&value)
UpdateRegexPatternSetRequest & WithDescription(const Aws::String &value)
UpdateRegexPatternSetRequest & WithId(const char *value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Regex > & GetRegularExpressionList() const
UpdateRegexPatternSetRequest & WithDescription(Aws::String &&value)
void SetRegularExpressionList(const Aws::Vector< Regex > &value)
UpdateRegexPatternSetRequest & WithRegularExpressionList(const Aws::Vector< Regex > &value)
UpdateRegexPatternSetRequest & WithLockToken(Aws::String &&value)
UpdateRegexPatternSetRequest & WithId(Aws::String &&value)
UpdateRegexPatternSetRequest & WithLockToken(const char *value)
UpdateRegexPatternSetRequest & WithName(const Aws::String &value)
UpdateRegexPatternSetRequest & WithDescription(const char *value)
UpdateRegexPatternSetRequest & WithRegularExpressionList(Aws::Vector< Regex > &&value)
UpdateRegexPatternSetRequest & WithId(const Aws::String &value)
AWS_WAFV2_API Aws::String SerializePayload() const override
UpdateRegexPatternSetRequest & AddRegularExpressionList(Regex &&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