AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateRuleRequest.h
1
6#pragma once
7#include <aws/waf-regional/WAFRegional_EXPORTS.h>
8#include <aws/waf-regional/WAFRegionalRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/waf-regional/model/RuleUpdate.h>
12#include <utility>
13
14namespace Aws
15{
16namespace WAFRegional
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_WAFREGIONAL_API UpdateRuleRequest();
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 "UpdateRule"; }
33
34 AWS_WAFREGIONAL_API Aws::String SerializePayload() const override;
35
36 AWS_WAFREGIONAL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
45 inline const Aws::String& GetRuleId() const{ return m_ruleId; }
46 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
47 inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; }
48 inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); }
49 inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); }
50 inline UpdateRuleRequest& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;}
51 inline UpdateRuleRequest& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;}
52 inline UpdateRuleRequest& WithRuleId(const char* value) { SetRuleId(value); return *this;}
54
56
59 inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
60 inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
61 inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
62 inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
63 inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
64 inline UpdateRuleRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
65 inline UpdateRuleRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
66 inline UpdateRuleRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
68
70
79 inline const Aws::Vector<RuleUpdate>& GetUpdates() const{ return m_updates; }
80 inline bool UpdatesHasBeenSet() const { return m_updatesHasBeenSet; }
81 inline void SetUpdates(const Aws::Vector<RuleUpdate>& value) { m_updatesHasBeenSet = true; m_updates = value; }
82 inline void SetUpdates(Aws::Vector<RuleUpdate>&& value) { m_updatesHasBeenSet = true; m_updates = std::move(value); }
83 inline UpdateRuleRequest& WithUpdates(const Aws::Vector<RuleUpdate>& value) { SetUpdates(value); return *this;}
84 inline UpdateRuleRequest& WithUpdates(Aws::Vector<RuleUpdate>&& value) { SetUpdates(std::move(value)); return *this;}
85 inline UpdateRuleRequest& AddUpdates(const RuleUpdate& value) { m_updatesHasBeenSet = true; m_updates.push_back(value); return *this; }
86 inline UpdateRuleRequest& AddUpdates(RuleUpdate&& value) { m_updatesHasBeenSet = true; m_updates.push_back(std::move(value)); return *this; }
88 private:
89
90 Aws::String m_ruleId;
91 bool m_ruleIdHasBeenSet = false;
92
93 Aws::String m_changeToken;
94 bool m_changeTokenHasBeenSet = false;
95
97 bool m_updatesHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace WAFRegional
102} // namespace Aws
UpdateRuleRequest & WithChangeToken(const Aws::String &value)
UpdateRuleRequest & WithChangeToken(const char *value)
UpdateRuleRequest & WithRuleId(const Aws::String &value)
UpdateRuleRequest & AddUpdates(RuleUpdate &&value)
UpdateRuleRequest & WithUpdates(Aws::Vector< RuleUpdate > &&value)
void SetRuleId(const Aws::String &value)
UpdateRuleRequest & WithUpdates(const Aws::Vector< RuleUpdate > &value)
UpdateRuleRequest & WithChangeToken(Aws::String &&value)
AWS_WAFREGIONAL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetUpdates(const Aws::Vector< RuleUpdate > &value)
UpdateRuleRequest & WithRuleId(Aws::String &&value)
AWS_WAFREGIONAL_API Aws::String SerializePayload() const override
void SetUpdates(Aws::Vector< RuleUpdate > &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< RuleUpdate > & GetUpdates() const
void SetChangeToken(const Aws::String &value)
UpdateRuleRequest & AddUpdates(const RuleUpdate &value)
UpdateRuleRequest & WithRuleId(const char *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