AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
UpdateRuleGroupRequest.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/RuleGroupUpdate.h>
12
13#include <utility>
14
15namespace Aws {
16namespace WAF {
17namespace Model {
18
22 public:
23 AWS_WAF_API UpdateRuleGroupRequest() = 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 "UpdateRuleGroup"; }
30
31 AWS_WAF_API Aws::String SerializePayload() const override;
32
34
36
41 inline const Aws::String& GetRuleGroupId() const { return m_ruleGroupId; }
42 inline bool RuleGroupIdHasBeenSet() const { return m_ruleGroupIdHasBeenSet; }
43 template <typename RuleGroupIdT = Aws::String>
44 void SetRuleGroupId(RuleGroupIdT&& value) {
45 m_ruleGroupIdHasBeenSet = true;
46 m_ruleGroupId = std::forward<RuleGroupIdT>(value);
47 }
48 template <typename RuleGroupIdT = Aws::String>
49 UpdateRuleGroupRequest& WithRuleGroupId(RuleGroupIdT&& value) {
50 SetRuleGroupId(std::forward<RuleGroupIdT>(value));
51 return *this;
52 }
54
56
66 inline const Aws::Vector<RuleGroupUpdate>& GetUpdates() const { return m_updates; }
67 inline bool UpdatesHasBeenSet() const { return m_updatesHasBeenSet; }
68 template <typename UpdatesT = Aws::Vector<RuleGroupUpdate>>
69 void SetUpdates(UpdatesT&& value) {
70 m_updatesHasBeenSet = true;
71 m_updates = std::forward<UpdatesT>(value);
72 }
73 template <typename UpdatesT = Aws::Vector<RuleGroupUpdate>>
75 SetUpdates(std::forward<UpdatesT>(value));
76 return *this;
77 }
78 template <typename UpdatesT = RuleGroupUpdate>
80 m_updatesHasBeenSet = true;
81 m_updates.emplace_back(std::forward<UpdatesT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetChangeToken() const { return m_changeToken; }
91 inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
92 template <typename ChangeTokenT = Aws::String>
93 void SetChangeToken(ChangeTokenT&& value) {
94 m_changeTokenHasBeenSet = true;
95 m_changeToken = std::forward<ChangeTokenT>(value);
96 }
97 template <typename ChangeTokenT = Aws::String>
98 UpdateRuleGroupRequest& WithChangeToken(ChangeTokenT&& value) {
99 SetChangeToken(std::forward<ChangeTokenT>(value));
100 return *this;
101 }
103 private:
104 Aws::String m_ruleGroupId;
105
107
108 Aws::String m_changeToken;
109 bool m_ruleGroupIdHasBeenSet = false;
110 bool m_updatesHasBeenSet = false;
111 bool m_changeTokenHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace WAF
116} // namespace Aws
UpdateRuleGroupRequest & WithRuleGroupId(RuleGroupIdT &&value)
const Aws::Vector< RuleGroupUpdate > & GetUpdates() const
AWS_WAF_API UpdateRuleGroupRequest()=default
virtual const char * GetServiceRequestName() const override
UpdateRuleGroupRequest & AddUpdates(UpdatesT &&value)
UpdateRuleGroupRequest & WithUpdates(UpdatesT &&value)
AWS_WAF_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateRuleGroupRequest & WithChangeToken(ChangeTokenT &&value)
AWS_WAF_API Aws::String SerializePayload() 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