AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetRuleGroupId(const Aws::String& value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId = value; }
48 inline void SetRuleGroupId(Aws::String&& value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId = std::move(value); }
49 inline void SetRuleGroupId(const char* value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId.assign(value); }
50 inline UpdateRuleGroupRequest& WithRuleGroupId(const Aws::String& value) { SetRuleGroupId(value); return *this;}
51 inline UpdateRuleGroupRequest& WithRuleGroupId(Aws::String&& value) { SetRuleGroupId(std::move(value)); return *this;}
52 inline UpdateRuleGroupRequest& WithRuleGroupId(const char* value) { SetRuleGroupId(value); return *this;}
54
56
66 inline const Aws::Vector<RuleGroupUpdate>& GetUpdates() const{ return m_updates; }
67 inline bool UpdatesHasBeenSet() const { return m_updatesHasBeenSet; }
68 inline void SetUpdates(const Aws::Vector<RuleGroupUpdate>& value) { m_updatesHasBeenSet = true; m_updates = value; }
69 inline void SetUpdates(Aws::Vector<RuleGroupUpdate>&& value) { m_updatesHasBeenSet = true; m_updates = std::move(value); }
70 inline UpdateRuleGroupRequest& WithUpdates(const Aws::Vector<RuleGroupUpdate>& value) { SetUpdates(value); return *this;}
71 inline UpdateRuleGroupRequest& WithUpdates(Aws::Vector<RuleGroupUpdate>&& value) { SetUpdates(std::move(value)); return *this;}
72 inline UpdateRuleGroupRequest& AddUpdates(const RuleGroupUpdate& value) { m_updatesHasBeenSet = true; m_updates.push_back(value); return *this; }
73 inline UpdateRuleGroupRequest& AddUpdates(RuleGroupUpdate&& value) { m_updatesHasBeenSet = true; m_updates.push_back(std::move(value)); return *this; }
75
77
80 inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
81 inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
82 inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
83 inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
84 inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
85 inline UpdateRuleGroupRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
86 inline UpdateRuleGroupRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
87 inline UpdateRuleGroupRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
89 private:
90
91 Aws::String m_ruleGroupId;
92 bool m_ruleGroupIdHasBeenSet = false;
93
95 bool m_updatesHasBeenSet = false;
96
97 Aws::String m_changeToken;
98 bool m_changeTokenHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace WAF
103} // namespace Aws
UpdateRuleGroupRequest & WithRuleGroupId(const char *value)
UpdateRuleGroupRequest & WithRuleGroupId(Aws::String &&value)
const Aws::Vector< RuleGroupUpdate > & GetUpdates() const
UpdateRuleGroupRequest & WithChangeToken(const char *value)
virtual const char * GetServiceRequestName() const override
UpdateRuleGroupRequest & WithUpdates(const Aws::Vector< RuleGroupUpdate > &value)
void SetUpdates(Aws::Vector< RuleGroupUpdate > &&value)
UpdateRuleGroupRequest & WithChangeToken(const Aws::String &value)
void SetChangeToken(const Aws::String &value)
UpdateRuleGroupRequest & WithChangeToken(Aws::String &&value)
AWS_WAF_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateRuleGroupRequest & AddUpdates(RuleGroupUpdate &&value)
UpdateRuleGroupRequest & WithUpdates(Aws::Vector< RuleGroupUpdate > &&value)
void SetUpdates(const Aws::Vector< RuleGroupUpdate > &value)
UpdateRuleGroupRequest & AddUpdates(const RuleGroupUpdate &value)
AWS_WAF_API Aws::String SerializePayload() const override
void SetRuleGroupId(const Aws::String &value)
UpdateRuleGroupRequest & WithRuleGroupId(const Aws::String &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