AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateRegexPatternSetRequest.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/RegexPatternSetUpdate.h>
12#include <utility>
13
14namespace Aws
15{
16namespace WAF
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_WAF_API UpdateRegexPatternSetRequest() = 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 "UpdateRegexPatternSet"; }
33
34 AWS_WAF_API Aws::String SerializePayload() const override;
35
37
38
40
45 inline const Aws::String& GetRegexPatternSetId() const { return m_regexPatternSetId; }
46 inline bool RegexPatternSetIdHasBeenSet() const { return m_regexPatternSetIdHasBeenSet; }
47 template<typename RegexPatternSetIdT = Aws::String>
48 void SetRegexPatternSetId(RegexPatternSetIdT&& value) { m_regexPatternSetIdHasBeenSet = true; m_regexPatternSetId = std::forward<RegexPatternSetIdT>(value); }
49 template<typename RegexPatternSetIdT = Aws::String>
50 UpdateRegexPatternSetRequest& WithRegexPatternSetId(RegexPatternSetIdT&& value) { SetRegexPatternSetId(std::forward<RegexPatternSetIdT>(value)); return *this;}
52
54
58 inline const Aws::Vector<RegexPatternSetUpdate>& GetUpdates() const { return m_updates; }
59 inline bool UpdatesHasBeenSet() const { return m_updatesHasBeenSet; }
60 template<typename UpdatesT = Aws::Vector<RegexPatternSetUpdate>>
61 void SetUpdates(UpdatesT&& value) { m_updatesHasBeenSet = true; m_updates = std::forward<UpdatesT>(value); }
62 template<typename UpdatesT = Aws::Vector<RegexPatternSetUpdate>>
63 UpdateRegexPatternSetRequest& WithUpdates(UpdatesT&& value) { SetUpdates(std::forward<UpdatesT>(value)); return *this;}
64 template<typename UpdatesT = RegexPatternSetUpdate>
65 UpdateRegexPatternSetRequest& AddUpdates(UpdatesT&& value) { m_updatesHasBeenSet = true; m_updates.emplace_back(std::forward<UpdatesT>(value)); return *this; }
67
69
72 inline const Aws::String& GetChangeToken() const { return m_changeToken; }
73 inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
74 template<typename ChangeTokenT = Aws::String>
75 void SetChangeToken(ChangeTokenT&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::forward<ChangeTokenT>(value); }
76 template<typename ChangeTokenT = Aws::String>
77 UpdateRegexPatternSetRequest& WithChangeToken(ChangeTokenT&& value) { SetChangeToken(std::forward<ChangeTokenT>(value)); return *this;}
79 private:
80
81 Aws::String m_regexPatternSetId;
82 bool m_regexPatternSetIdHasBeenSet = false;
83
85 bool m_updatesHasBeenSet = false;
86
87 Aws::String m_changeToken;
88 bool m_changeTokenHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace WAF
93} // 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