AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateRegexPatternSetRequest.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/RegexPatternSetUpdate.h>
12#include <utility>
13
14namespace Aws
15{
16namespace WAFRegional
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_WAFREGIONAL_API UpdateRegexPatternSetRequest();
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 "UpdateRegexPatternSet"; }
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& GetRegexPatternSetId() const{ return m_regexPatternSetId; }
46 inline bool RegexPatternSetIdHasBeenSet() const { return m_regexPatternSetIdHasBeenSet; }
47 inline void SetRegexPatternSetId(const Aws::String& value) { m_regexPatternSetIdHasBeenSet = true; m_regexPatternSetId = value; }
48 inline void SetRegexPatternSetId(Aws::String&& value) { m_regexPatternSetIdHasBeenSet = true; m_regexPatternSetId = std::move(value); }
49 inline void SetRegexPatternSetId(const char* value) { m_regexPatternSetIdHasBeenSet = true; m_regexPatternSetId.assign(value); }
51 inline UpdateRegexPatternSetRequest& WithRegexPatternSetId(Aws::String&& value) { SetRegexPatternSetId(std::move(value)); return *this;}
52 inline UpdateRegexPatternSetRequest& WithRegexPatternSetId(const char* value) { SetRegexPatternSetId(value); return *this;}
54
56
60 inline const Aws::Vector<RegexPatternSetUpdate>& GetUpdates() const{ return m_updates; }
61 inline bool UpdatesHasBeenSet() const { return m_updatesHasBeenSet; }
62 inline void SetUpdates(const Aws::Vector<RegexPatternSetUpdate>& value) { m_updatesHasBeenSet = true; m_updates = value; }
63 inline void SetUpdates(Aws::Vector<RegexPatternSetUpdate>&& value) { m_updatesHasBeenSet = true; m_updates = std::move(value); }
66 inline UpdateRegexPatternSetRequest& AddUpdates(const RegexPatternSetUpdate& value) { m_updatesHasBeenSet = true; m_updates.push_back(value); return *this; }
67 inline UpdateRegexPatternSetRequest& AddUpdates(RegexPatternSetUpdate&& value) { m_updatesHasBeenSet = true; m_updates.push_back(std::move(value)); return *this; }
69
71
74 inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
75 inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
76 inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
77 inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
78 inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
79 inline UpdateRegexPatternSetRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
80 inline UpdateRegexPatternSetRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
81 inline UpdateRegexPatternSetRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
83 private:
84
85 Aws::String m_regexPatternSetId;
86 bool m_regexPatternSetIdHasBeenSet = false;
87
89 bool m_updatesHasBeenSet = false;
90
91 Aws::String m_changeToken;
92 bool m_changeTokenHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace WAFRegional
97} // namespace Aws
UpdateRegexPatternSetRequest & WithRegexPatternSetId(Aws::String &&value)
UpdateRegexPatternSetRequest & WithChangeToken(Aws::String &&value)
UpdateRegexPatternSetRequest & WithRegexPatternSetId(const char *value)
UpdateRegexPatternSetRequest & AddUpdates(RegexPatternSetUpdate &&value)
UpdateRegexPatternSetRequest & AddUpdates(const RegexPatternSetUpdate &value)
void SetUpdates(const Aws::Vector< RegexPatternSetUpdate > &value)
UpdateRegexPatternSetRequest & WithUpdates(const Aws::Vector< RegexPatternSetUpdate > &value)
AWS_WAFREGIONAL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateRegexPatternSetRequest & WithChangeToken(const Aws::String &value)
void SetUpdates(Aws::Vector< RegexPatternSetUpdate > &&value)
const Aws::Vector< RegexPatternSetUpdate > & GetUpdates() const
AWS_WAFREGIONAL_API Aws::String SerializePayload() const override
UpdateRegexPatternSetRequest & WithUpdates(Aws::Vector< RegexPatternSetUpdate > &&value)
UpdateRegexPatternSetRequest & WithRegexPatternSetId(const Aws::String &value)
UpdateRegexPatternSetRequest & WithChangeToken(const char *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