AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
UpdateRegexPatternSetRequest.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/waf/WAFRequest.h>
10#include <aws/waf/WAF_EXPORTS.h>
11#include <aws/waf/model/RegexPatternSetUpdate.h>
12
13#include <utility>
14
15namespace Aws {
16namespace WAF {
17namespace Model {
18
22 public:
23 AWS_WAF_API UpdateRegexPatternSetRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateRegexPatternSet"; }
30
31 AWS_WAF_API Aws::String SerializePayload() const override;
32
34
36
41 inline const Aws::String& GetRegexPatternSetId() const { return m_regexPatternSetId; }
42 inline bool RegexPatternSetIdHasBeenSet() const { return m_regexPatternSetIdHasBeenSet; }
43 template <typename RegexPatternSetIdT = Aws::String>
44 void SetRegexPatternSetId(RegexPatternSetIdT&& value) {
45 m_regexPatternSetIdHasBeenSet = true;
46 m_regexPatternSetId = std::forward<RegexPatternSetIdT>(value);
47 }
48 template <typename RegexPatternSetIdT = Aws::String>
50 SetRegexPatternSetId(std::forward<RegexPatternSetIdT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::Vector<RegexPatternSetUpdate>& GetUpdates() const { return m_updates; }
61 inline bool UpdatesHasBeenSet() const { return m_updatesHasBeenSet; }
62 template <typename UpdatesT = Aws::Vector<RegexPatternSetUpdate>>
63 void SetUpdates(UpdatesT&& value) {
64 m_updatesHasBeenSet = true;
65 m_updates = std::forward<UpdatesT>(value);
66 }
67 template <typename UpdatesT = Aws::Vector<RegexPatternSetUpdate>>
69 SetUpdates(std::forward<UpdatesT>(value));
70 return *this;
71 }
72 template <typename UpdatesT = RegexPatternSetUpdate>
74 m_updatesHasBeenSet = true;
75 m_updates.emplace_back(std::forward<UpdatesT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::String& GetChangeToken() const { return m_changeToken; }
85 inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
86 template <typename ChangeTokenT = Aws::String>
87 void SetChangeToken(ChangeTokenT&& value) {
88 m_changeTokenHasBeenSet = true;
89 m_changeToken = std::forward<ChangeTokenT>(value);
90 }
91 template <typename ChangeTokenT = Aws::String>
93 SetChangeToken(std::forward<ChangeTokenT>(value));
94 return *this;
95 }
97 private:
98 Aws::String m_regexPatternSetId;
99
101
102 Aws::String m_changeToken;
103 bool m_regexPatternSetIdHasBeenSet = false;
104 bool m_updatesHasBeenSet = false;
105 bool m_changeTokenHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace WAF
110} // namespace Aws
UpdateRegexPatternSetRequest & AddUpdates(UpdatesT &&value)
AWS_WAF_API UpdateRegexPatternSetRequest()=default
UpdateRegexPatternSetRequest & WithUpdates(UpdatesT &&value)
UpdateRegexPatternSetRequest & WithChangeToken(ChangeTokenT &&value)
const Aws::Vector< RegexPatternSetUpdate > & GetUpdates() const
UpdateRegexPatternSetRequest & WithRegexPatternSetId(RegexPatternSetIdT &&value)
AWS_WAF_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_WAF_API Aws::String SerializePayload() const override
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