AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateRegexMatchSetRequest.h
1
6#pragma once
7#include <aws/waf/WAF_EXPORTS.h>
8#include <aws/waf/WAFRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/waf/model/RegexMatchSetUpdate.h>
12#include <utility>
13
14namespace Aws
15{
16namespace WAF
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_WAF_API UpdateRegexMatchSetRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateRegexMatchSet"; }
33
34 AWS_WAF_API Aws::String SerializePayload() const override;
35
37
38
40
45 inline const Aws::String& GetRegexMatchSetId() const { return m_regexMatchSetId; }
46 inline bool RegexMatchSetIdHasBeenSet() const { return m_regexMatchSetIdHasBeenSet; }
47 template<typename RegexMatchSetIdT = Aws::String>
48 void SetRegexMatchSetId(RegexMatchSetIdT&& value) { m_regexMatchSetIdHasBeenSet = true; m_regexMatchSetId = std::forward<RegexMatchSetIdT>(value); }
49 template<typename RegexMatchSetIdT = Aws::String>
50 UpdateRegexMatchSetRequest& WithRegexMatchSetId(RegexMatchSetIdT&& value) { SetRegexMatchSetId(std::forward<RegexMatchSetIdT>(value)); return *this;}
52
54
59 inline const Aws::Vector<RegexMatchSetUpdate>& GetUpdates() const { return m_updates; }
60 inline bool UpdatesHasBeenSet() const { return m_updatesHasBeenSet; }
61 template<typename UpdatesT = Aws::Vector<RegexMatchSetUpdate>>
62 void SetUpdates(UpdatesT&& value) { m_updatesHasBeenSet = true; m_updates = std::forward<UpdatesT>(value); }
63 template<typename UpdatesT = Aws::Vector<RegexMatchSetUpdate>>
64 UpdateRegexMatchSetRequest& WithUpdates(UpdatesT&& value) { SetUpdates(std::forward<UpdatesT>(value)); return *this;}
65 template<typename UpdatesT = RegexMatchSetUpdate>
66 UpdateRegexMatchSetRequest& AddUpdates(UpdatesT&& value) { m_updatesHasBeenSet = true; m_updates.emplace_back(std::forward<UpdatesT>(value)); return *this; }
68
70
73 inline const Aws::String& GetChangeToken() const { return m_changeToken; }
74 inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
75 template<typename ChangeTokenT = Aws::String>
76 void SetChangeToken(ChangeTokenT&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::forward<ChangeTokenT>(value); }
77 template<typename ChangeTokenT = Aws::String>
78 UpdateRegexMatchSetRequest& WithChangeToken(ChangeTokenT&& value) { SetChangeToken(std::forward<ChangeTokenT>(value)); return *this;}
80 private:
81
82 Aws::String m_regexMatchSetId;
83 bool m_regexMatchSetIdHasBeenSet = false;
84
86 bool m_updatesHasBeenSet = false;
87
88 Aws::String m_changeToken;
89 bool m_changeTokenHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace WAF
94} // 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