AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
UpdateRegexMatchSetRequest.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/RegexMatchSetUpdate.h>
12
13#include <utility>
14
15namespace Aws {
16namespace WAF {
17namespace Model {
18
22 public:
23 AWS_WAF_API UpdateRegexMatchSetRequest() = 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 "UpdateRegexMatchSet"; }
30
31 AWS_WAF_API Aws::String SerializePayload() const override;
32
34
36
41 inline const Aws::String& GetRegexMatchSetId() const { return m_regexMatchSetId; }
42 inline bool RegexMatchSetIdHasBeenSet() const { return m_regexMatchSetIdHasBeenSet; }
43 template <typename RegexMatchSetIdT = Aws::String>
44 void SetRegexMatchSetId(RegexMatchSetIdT&& value) {
45 m_regexMatchSetIdHasBeenSet = true;
46 m_regexMatchSetId = std::forward<RegexMatchSetIdT>(value);
47 }
48 template <typename RegexMatchSetIdT = Aws::String>
50 SetRegexMatchSetId(std::forward<RegexMatchSetIdT>(value));
51 return *this;
52 }
54
56
61 inline const Aws::Vector<RegexMatchSetUpdate>& GetUpdates() const { return m_updates; }
62 inline bool UpdatesHasBeenSet() const { return m_updatesHasBeenSet; }
63 template <typename UpdatesT = Aws::Vector<RegexMatchSetUpdate>>
64 void SetUpdates(UpdatesT&& value) {
65 m_updatesHasBeenSet = true;
66 m_updates = std::forward<UpdatesT>(value);
67 }
68 template <typename UpdatesT = Aws::Vector<RegexMatchSetUpdate>>
70 SetUpdates(std::forward<UpdatesT>(value));
71 return *this;
72 }
73 template <typename UpdatesT = RegexMatchSetUpdate>
75 m_updatesHasBeenSet = true;
76 m_updates.emplace_back(std::forward<UpdatesT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::String& GetChangeToken() const { return m_changeToken; }
86 inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
87 template <typename ChangeTokenT = Aws::String>
88 void SetChangeToken(ChangeTokenT&& value) {
89 m_changeTokenHasBeenSet = true;
90 m_changeToken = std::forward<ChangeTokenT>(value);
91 }
92 template <typename ChangeTokenT = Aws::String>
94 SetChangeToken(std::forward<ChangeTokenT>(value));
95 return *this;
96 }
98 private:
99 Aws::String m_regexMatchSetId;
100
102
103 Aws::String m_changeToken;
104 bool m_regexMatchSetIdHasBeenSet = false;
105 bool m_updatesHasBeenSet = false;
106 bool m_changeTokenHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace WAF
111} // namespace Aws
UpdateRegexMatchSetRequest & WithRegexMatchSetId(RegexMatchSetIdT &&value)
UpdateRegexMatchSetRequest & WithUpdates(UpdatesT &&value)
const Aws::Vector< RegexMatchSetUpdate > & GetUpdates() const
UpdateRegexMatchSetRequest & AddUpdates(UpdatesT &&value)
AWS_WAF_API UpdateRegexMatchSetRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_WAF_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_WAF_API Aws::String SerializePayload() const override
UpdateRegexMatchSetRequest & WithChangeToken(ChangeTokenT &&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