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/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/RuleUpdate.h>
12#include <utility>
13
14namespace Aws
15{
16namespace WAF
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_WAF_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_WAF_API Aws::String SerializePayload() const override;
35
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 WAF
102} // namespace Aws
AWS_WAF_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_WAF_API Aws::String SerializePayload() const override
const Aws::String & GetChangeToken() const
UpdateRuleRequest & WithRuleId(const Aws::String &value)
void SetChangeToken(const Aws::String &value)
void SetRuleId(Aws::String &&value)
void SetUpdates(const Aws::Vector< RuleUpdate > &value)
UpdateRuleRequest & WithChangeToken(const Aws::String &value)
UpdateRuleRequest & WithUpdates(const Aws::Vector< RuleUpdate > &value)
void SetUpdates(Aws::Vector< RuleUpdate > &&value)
UpdateRuleRequest & WithRuleId(Aws::String &&value)
UpdateRuleRequest & WithRuleId(const char *value)
virtual const char * GetServiceRequestName() const override
UpdateRuleRequest & WithUpdates(Aws::Vector< RuleUpdate > &&value)
UpdateRuleRequest & AddUpdates(const RuleUpdate &value)
const Aws::Vector< RuleUpdate > & GetUpdates() const
void SetChangeToken(Aws::String &&value)
UpdateRuleRequest & WithChangeToken(const char *value)
void SetChangeToken(const char *value)
void SetRuleId(const Aws::String &value)
UpdateRuleRequest & WithChangeToken(Aws::String &&value)
const Aws::String & GetRuleId() const
UpdateRuleRequest & AddUpdates(RuleUpdate &&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