AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateRegexMatchSetRequest.h
1
6#pragma once
7#include <aws/waf-regional/WAFRegional_EXPORTS.h>
8#include <aws/waf-regional/WAFRegionalRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/waf-regional/model/RegexMatchSetUpdate.h>
12#include <utility>
13
14namespace Aws
15{
16namespace WAFRegional
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_WAFREGIONAL_API UpdateRegexMatchSetRequest();
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_WAFREGIONAL_API Aws::String SerializePayload() const override;
35
36 AWS_WAFREGIONAL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
45 inline const Aws::String& GetRegexMatchSetId() const{ return m_regexMatchSetId; }
46 inline bool RegexMatchSetIdHasBeenSet() const { return m_regexMatchSetIdHasBeenSet; }
47 inline void SetRegexMatchSetId(const Aws::String& value) { m_regexMatchSetIdHasBeenSet = true; m_regexMatchSetId = value; }
48 inline void SetRegexMatchSetId(Aws::String&& value) { m_regexMatchSetIdHasBeenSet = true; m_regexMatchSetId = std::move(value); }
49 inline void SetRegexMatchSetId(const char* value) { m_regexMatchSetIdHasBeenSet = true; m_regexMatchSetId.assign(value); }
51 inline UpdateRegexMatchSetRequest& WithRegexMatchSetId(Aws::String&& value) { SetRegexMatchSetId(std::move(value)); return *this;}
52 inline UpdateRegexMatchSetRequest& WithRegexMatchSetId(const char* value) { SetRegexMatchSetId(value); return *this;}
54
56
61 inline const Aws::Vector<RegexMatchSetUpdate>& GetUpdates() const{ return m_updates; }
62 inline bool UpdatesHasBeenSet() const { return m_updatesHasBeenSet; }
63 inline void SetUpdates(const Aws::Vector<RegexMatchSetUpdate>& value) { m_updatesHasBeenSet = true; m_updates = value; }
64 inline void SetUpdates(Aws::Vector<RegexMatchSetUpdate>&& value) { m_updatesHasBeenSet = true; m_updates = std::move(value); }
66 inline UpdateRegexMatchSetRequest& WithUpdates(Aws::Vector<RegexMatchSetUpdate>&& value) { SetUpdates(std::move(value)); return *this;}
67 inline UpdateRegexMatchSetRequest& AddUpdates(const RegexMatchSetUpdate& value) { m_updatesHasBeenSet = true; m_updates.push_back(value); return *this; }
68 inline UpdateRegexMatchSetRequest& AddUpdates(RegexMatchSetUpdate&& value) { m_updatesHasBeenSet = true; m_updates.push_back(std::move(value)); return *this; }
70
72
75 inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
76 inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
77 inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
78 inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
79 inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
80 inline UpdateRegexMatchSetRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
81 inline UpdateRegexMatchSetRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
82 inline UpdateRegexMatchSetRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
84 private:
85
86 Aws::String m_regexMatchSetId;
87 bool m_regexMatchSetIdHasBeenSet = false;
88
90 bool m_updatesHasBeenSet = false;
91
92 Aws::String m_changeToken;
93 bool m_changeTokenHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace WAFRegional
98} // namespace Aws
UpdateRegexMatchSetRequest & AddUpdates(const RegexMatchSetUpdate &value)
UpdateRegexMatchSetRequest & AddUpdates(RegexMatchSetUpdate &&value)
UpdateRegexMatchSetRequest & WithRegexMatchSetId(const char *value)
void SetUpdates(const Aws::Vector< RegexMatchSetUpdate > &value)
UpdateRegexMatchSetRequest & WithChangeToken(const Aws::String &value)
UpdateRegexMatchSetRequest & WithChangeToken(Aws::String &&value)
UpdateRegexMatchSetRequest & WithUpdates(Aws::Vector< RegexMatchSetUpdate > &&value)
UpdateRegexMatchSetRequest & WithChangeToken(const char *value)
AWS_WAFREGIONAL_API Aws::String SerializePayload() const override
void SetUpdates(Aws::Vector< RegexMatchSetUpdate > &&value)
UpdateRegexMatchSetRequest & WithRegexMatchSetId(const Aws::String &value)
const Aws::Vector< RegexMatchSetUpdate > & GetUpdates() const
UpdateRegexMatchSetRequest & WithUpdates(const Aws::Vector< RegexMatchSetUpdate > &value)
virtual const char * GetServiceRequestName() const override
AWS_WAFREGIONAL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateRegexMatchSetRequest & WithRegexMatchSetId(Aws::String &&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