AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateRuleGroupRequest.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/RuleGroupUpdate.h>
12#include <utility>
13
14namespace Aws
15{
16namespace WAF
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_WAF_API UpdateRuleGroupRequest() = 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 "UpdateRuleGroup"; }
33
34 AWS_WAF_API Aws::String SerializePayload() const override;
35
37
38
40
45 inline const Aws::String& GetRuleGroupId() const { return m_ruleGroupId; }
46 inline bool RuleGroupIdHasBeenSet() const { return m_ruleGroupIdHasBeenSet; }
47 template<typename RuleGroupIdT = Aws::String>
48 void SetRuleGroupId(RuleGroupIdT&& value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId = std::forward<RuleGroupIdT>(value); }
49 template<typename RuleGroupIdT = Aws::String>
50 UpdateRuleGroupRequest& WithRuleGroupId(RuleGroupIdT&& value) { SetRuleGroupId(std::forward<RuleGroupIdT>(value)); return *this;}
52
54
64 inline const Aws::Vector<RuleGroupUpdate>& GetUpdates() const { return m_updates; }
65 inline bool UpdatesHasBeenSet() const { return m_updatesHasBeenSet; }
66 template<typename UpdatesT = Aws::Vector<RuleGroupUpdate>>
67 void SetUpdates(UpdatesT&& value) { m_updatesHasBeenSet = true; m_updates = std::forward<UpdatesT>(value); }
68 template<typename UpdatesT = Aws::Vector<RuleGroupUpdate>>
69 UpdateRuleGroupRequest& WithUpdates(UpdatesT&& value) { SetUpdates(std::forward<UpdatesT>(value)); return *this;}
70 template<typename UpdatesT = RuleGroupUpdate>
71 UpdateRuleGroupRequest& AddUpdates(UpdatesT&& value) { m_updatesHasBeenSet = true; m_updates.emplace_back(std::forward<UpdatesT>(value)); return *this; }
73
75
78 inline const Aws::String& GetChangeToken() const { return m_changeToken; }
79 inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
80 template<typename ChangeTokenT = Aws::String>
81 void SetChangeToken(ChangeTokenT&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::forward<ChangeTokenT>(value); }
82 template<typename ChangeTokenT = Aws::String>
83 UpdateRuleGroupRequest& WithChangeToken(ChangeTokenT&& value) { SetChangeToken(std::forward<ChangeTokenT>(value)); return *this;}
85 private:
86
87 Aws::String m_ruleGroupId;
88 bool m_ruleGroupIdHasBeenSet = false;
89
91 bool m_updatesHasBeenSet = false;
92
93 Aws::String m_changeToken;
94 bool m_changeTokenHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace WAF
99} // 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