AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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:
27 AWS_WAFV2_API UpdateRegexPatternSetRequest() = 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 "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 template<typename NameT = Aws::String>
47 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
48 template<typename NameT = Aws::String>
49 UpdateRegexPatternSetRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
51
53
62 inline Scope GetScope() const { return m_scope; }
63 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
64 inline void SetScope(Scope value) { m_scopeHasBeenSet = true; m_scope = value; }
65 inline UpdateRegexPatternSetRequest& WithScope(Scope value) { SetScope(value); return *this;}
67
69
74 inline const Aws::String& GetId() const { return m_id; }
75 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
76 template<typename IdT = Aws::String>
77 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
78 template<typename IdT = Aws::String>
79 UpdateRegexPatternSetRequest& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
81
83
86 inline const Aws::String& GetDescription() const { return m_description; }
87 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
88 template<typename DescriptionT = Aws::String>
89 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
90 template<typename DescriptionT = Aws::String>
91 UpdateRegexPatternSetRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
93
95
98 inline const Aws::Vector<Regex>& GetRegularExpressionList() const { return m_regularExpressionList; }
99 inline bool RegularExpressionListHasBeenSet() const { return m_regularExpressionListHasBeenSet; }
100 template<typename RegularExpressionListT = Aws::Vector<Regex>>
101 void SetRegularExpressionList(RegularExpressionListT&& value) { m_regularExpressionListHasBeenSet = true; m_regularExpressionList = std::forward<RegularExpressionListT>(value); }
102 template<typename RegularExpressionListT = Aws::Vector<Regex>>
103 UpdateRegexPatternSetRequest& WithRegularExpressionList(RegularExpressionListT&& value) { SetRegularExpressionList(std::forward<RegularExpressionListT>(value)); return *this;}
104 template<typename RegularExpressionListT = Regex>
105 UpdateRegexPatternSetRequest& AddRegularExpressionList(RegularExpressionListT&& value) { m_regularExpressionListHasBeenSet = true; m_regularExpressionList.emplace_back(std::forward<RegularExpressionListT>(value)); return *this; }
107
109
119 inline const Aws::String& GetLockToken() const { return m_lockToken; }
120 inline bool LockTokenHasBeenSet() const { return m_lockTokenHasBeenSet; }
121 template<typename LockTokenT = Aws::String>
122 void SetLockToken(LockTokenT&& value) { m_lockTokenHasBeenSet = true; m_lockToken = std::forward<LockTokenT>(value); }
123 template<typename LockTokenT = Aws::String>
124 UpdateRegexPatternSetRequest& WithLockToken(LockTokenT&& value) { SetLockToken(std::forward<LockTokenT>(value)); return *this;}
126 private:
127
128 Aws::String m_name;
129 bool m_nameHasBeenSet = false;
130
131 Scope m_scope{Scope::NOT_SET};
132 bool m_scopeHasBeenSet = false;
133
134 Aws::String m_id;
135 bool m_idHasBeenSet = false;
136
137 Aws::String m_description;
138 bool m_descriptionHasBeenSet = false;
139
140 Aws::Vector<Regex> m_regularExpressionList;
141 bool m_regularExpressionListHasBeenSet = false;
142
143 Aws::String m_lockToken;
144 bool m_lockTokenHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace WAFV2
149} // namespace Aws
UpdateRegexPatternSetRequest & WithLockToken(LockTokenT &&value)
AWS_WAFV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateRegexPatternSetRequest & WithName(NameT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Regex > & GetRegularExpressionList() const
UpdateRegexPatternSetRequest & WithRegularExpressionList(RegularExpressionListT &&value)
void SetRegularExpressionList(RegularExpressionListT &&value)
AWS_WAFV2_API UpdateRegexPatternSetRequest()=default
UpdateRegexPatternSetRequest & AddRegularExpressionList(RegularExpressionListT &&value)
UpdateRegexPatternSetRequest & WithScope(Scope value)
UpdateRegexPatternSetRequest & WithDescription(DescriptionT &&value)
AWS_WAFV2_API Aws::String SerializePayload() const override
UpdateRegexPatternSetRequest & WithId(IdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector