AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateWebACLRequest.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/WafAction.h>
12#include <aws/waf-regional/model/WebACLUpdate.h>
13#include <utility>
14
15namespace Aws
16{
17namespace WAFRegional
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_WAFREGIONAL_API UpdateWebACLRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateWebACL"; }
34
35 AWS_WAFREGIONAL_API Aws::String SerializePayload() const override;
36
37 AWS_WAFREGIONAL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
46 inline const Aws::String& GetWebACLId() const{ return m_webACLId; }
47 inline bool WebACLIdHasBeenSet() const { return m_webACLIdHasBeenSet; }
48 inline void SetWebACLId(const Aws::String& value) { m_webACLIdHasBeenSet = true; m_webACLId = value; }
49 inline void SetWebACLId(Aws::String&& value) { m_webACLIdHasBeenSet = true; m_webACLId = std::move(value); }
50 inline void SetWebACLId(const char* value) { m_webACLIdHasBeenSet = true; m_webACLId.assign(value); }
51 inline UpdateWebACLRequest& WithWebACLId(const Aws::String& value) { SetWebACLId(value); return *this;}
52 inline UpdateWebACLRequest& WithWebACLId(Aws::String&& value) { SetWebACLId(std::move(value)); return *this;}
53 inline UpdateWebACLRequest& WithWebACLId(const char* value) { SetWebACLId(value); return *this;}
55
57
60 inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
61 inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
62 inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
63 inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
64 inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
65 inline UpdateWebACLRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
66 inline UpdateWebACLRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
67 inline UpdateWebACLRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
69
71
86 inline const Aws::Vector<WebACLUpdate>& GetUpdates() const{ return m_updates; }
87 inline bool UpdatesHasBeenSet() const { return m_updatesHasBeenSet; }
88 inline void SetUpdates(const Aws::Vector<WebACLUpdate>& value) { m_updatesHasBeenSet = true; m_updates = value; }
89 inline void SetUpdates(Aws::Vector<WebACLUpdate>&& value) { m_updatesHasBeenSet = true; m_updates = std::move(value); }
90 inline UpdateWebACLRequest& WithUpdates(const Aws::Vector<WebACLUpdate>& value) { SetUpdates(value); return *this;}
91 inline UpdateWebACLRequest& WithUpdates(Aws::Vector<WebACLUpdate>&& value) { SetUpdates(std::move(value)); return *this;}
92 inline UpdateWebACLRequest& AddUpdates(const WebACLUpdate& value) { m_updatesHasBeenSet = true; m_updates.push_back(value); return *this; }
93 inline UpdateWebACLRequest& AddUpdates(WebACLUpdate&& value) { m_updatesHasBeenSet = true; m_updates.push_back(std::move(value)); return *this; }
95
97
102 inline const WafAction& GetDefaultAction() const{ return m_defaultAction; }
103 inline bool DefaultActionHasBeenSet() const { return m_defaultActionHasBeenSet; }
104 inline void SetDefaultAction(const WafAction& value) { m_defaultActionHasBeenSet = true; m_defaultAction = value; }
105 inline void SetDefaultAction(WafAction&& value) { m_defaultActionHasBeenSet = true; m_defaultAction = std::move(value); }
106 inline UpdateWebACLRequest& WithDefaultAction(const WafAction& value) { SetDefaultAction(value); return *this;}
107 inline UpdateWebACLRequest& WithDefaultAction(WafAction&& value) { SetDefaultAction(std::move(value)); return *this;}
109 private:
110
111 Aws::String m_webACLId;
112 bool m_webACLIdHasBeenSet = false;
113
114 Aws::String m_changeToken;
115 bool m_changeTokenHasBeenSet = false;
116
118 bool m_updatesHasBeenSet = false;
119
120 WafAction m_defaultAction;
121 bool m_defaultActionHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace WAFRegional
126} // namespace Aws
UpdateWebACLRequest & WithWebACLId(Aws::String &&value)
UpdateWebACLRequest & WithChangeToken(const Aws::String &value)
UpdateWebACLRequest & WithUpdates(Aws::Vector< WebACLUpdate > &&value)
void SetUpdates(const Aws::Vector< WebACLUpdate > &value)
UpdateWebACLRequest & WithChangeToken(const char *value)
const Aws::Vector< WebACLUpdate > & GetUpdates() const
UpdateWebACLRequest & WithWebACLId(const char *value)
UpdateWebACLRequest & WithChangeToken(Aws::String &&value)
AWS_WAFREGIONAL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateWebACLRequest & AddUpdates(WebACLUpdate &&value)
void SetUpdates(Aws::Vector< WebACLUpdate > &&value)
virtual const char * GetServiceRequestName() const override
UpdateWebACLRequest & WithWebACLId(const Aws::String &value)
UpdateWebACLRequest & WithUpdates(const Aws::Vector< WebACLUpdate > &value)
UpdateWebACLRequest & WithDefaultAction(const WafAction &value)
UpdateWebACLRequest & WithDefaultAction(WafAction &&value)
AWS_WAFREGIONAL_API Aws::String SerializePayload() const override
UpdateWebACLRequest & AddUpdates(const WebACLUpdate &value)
void SetChangeToken(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