AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
UpdateRuleRequest.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/RuleUpdate.h>
12
13#include <utility>
14
15namespace Aws {
16namespace WAF {
17namespace Model {
18
22 public:
23 AWS_WAF_API UpdateRuleRequest() = 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 "UpdateRule"; }
30
31 AWS_WAF_API Aws::String SerializePayload() const override;
32
34
36
41 inline const Aws::String& GetRuleId() const { return m_ruleId; }
42 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
43 template <typename RuleIdT = Aws::String>
44 void SetRuleId(RuleIdT&& value) {
45 m_ruleIdHasBeenSet = true;
46 m_ruleId = std::forward<RuleIdT>(value);
47 }
48 template <typename RuleIdT = Aws::String>
49 UpdateRuleRequest& WithRuleId(RuleIdT&& value) {
50 SetRuleId(std::forward<RuleIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetChangeToken() const { return m_changeToken; }
60 inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
61 template <typename ChangeTokenT = Aws::String>
62 void SetChangeToken(ChangeTokenT&& value) {
63 m_changeTokenHasBeenSet = true;
64 m_changeToken = std::forward<ChangeTokenT>(value);
65 }
66 template <typename ChangeTokenT = Aws::String>
67 UpdateRuleRequest& WithChangeToken(ChangeTokenT&& value) {
68 SetChangeToken(std::forward<ChangeTokenT>(value));
69 return *this;
70 }
72
74
83 inline const Aws::Vector<RuleUpdate>& GetUpdates() const { return m_updates; }
84 inline bool UpdatesHasBeenSet() const { return m_updatesHasBeenSet; }
85 template <typename UpdatesT = Aws::Vector<RuleUpdate>>
86 void SetUpdates(UpdatesT&& value) {
87 m_updatesHasBeenSet = true;
88 m_updates = std::forward<UpdatesT>(value);
89 }
90 template <typename UpdatesT = Aws::Vector<RuleUpdate>>
91 UpdateRuleRequest& WithUpdates(UpdatesT&& value) {
92 SetUpdates(std::forward<UpdatesT>(value));
93 return *this;
94 }
95 template <typename UpdatesT = RuleUpdate>
96 UpdateRuleRequest& AddUpdates(UpdatesT&& value) {
97 m_updatesHasBeenSet = true;
98 m_updates.emplace_back(std::forward<UpdatesT>(value));
99 return *this;
100 }
102 private:
103 Aws::String m_ruleId;
104
105 Aws::String m_changeToken;
106
107 Aws::Vector<RuleUpdate> m_updates;
108 bool m_ruleIdHasBeenSet = false;
109 bool m_changeTokenHasBeenSet = false;
110 bool m_updatesHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace WAF
115} // namespace Aws
AWS_WAF_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_WAF_API Aws::String SerializePayload() const override
UpdateRuleRequest & AddUpdates(UpdatesT &&value)
UpdateRuleRequest & WithRuleId(RuleIdT &&value)
const Aws::String & GetChangeToken() const
void SetChangeToken(ChangeTokenT &&value)
AWS_WAF_API UpdateRuleRequest()=default
UpdateRuleRequest & WithUpdates(UpdatesT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< RuleUpdate > & GetUpdates() const
const Aws::String & GetRuleId() const
UpdateRuleRequest & 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