AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
UpdateXssMatchSetRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/waf/WAFRequest.h>
10#include <aws/waf/WAF_EXPORTS.h>
11#include <aws/waf/model/XssMatchSetUpdate.h>
12
13#include <utility>
14
15namespace Aws {
16namespace WAF {
17namespace Model {
18
25 public:
26 AWS_WAF_API UpdateXssMatchSetRequest() = 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 "UpdateXssMatchSet"; }
33
34 AWS_WAF_API Aws::String SerializePayload() const override;
35
37
39
44 inline const Aws::String& GetXssMatchSetId() const { return m_xssMatchSetId; }
45 inline bool XssMatchSetIdHasBeenSet() const { return m_xssMatchSetIdHasBeenSet; }
46 template <typename XssMatchSetIdT = Aws::String>
47 void SetXssMatchSetId(XssMatchSetIdT&& value) {
48 m_xssMatchSetIdHasBeenSet = true;
49 m_xssMatchSetId = std::forward<XssMatchSetIdT>(value);
50 }
51 template <typename XssMatchSetIdT = Aws::String>
53 SetXssMatchSetId(std::forward<XssMatchSetIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetChangeToken() const { return m_changeToken; }
63 inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
64 template <typename ChangeTokenT = Aws::String>
65 void SetChangeToken(ChangeTokenT&& value) {
66 m_changeTokenHasBeenSet = true;
67 m_changeToken = std::forward<ChangeTokenT>(value);
68 }
69 template <typename ChangeTokenT = Aws::String>
71 SetChangeToken(std::forward<ChangeTokenT>(value));
72 return *this;
73 }
75
77
86 inline const Aws::Vector<XssMatchSetUpdate>& GetUpdates() const { return m_updates; }
87 inline bool UpdatesHasBeenSet() const { return m_updatesHasBeenSet; }
88 template <typename UpdatesT = Aws::Vector<XssMatchSetUpdate>>
89 void SetUpdates(UpdatesT&& value) {
90 m_updatesHasBeenSet = true;
91 m_updates = std::forward<UpdatesT>(value);
92 }
93 template <typename UpdatesT = Aws::Vector<XssMatchSetUpdate>>
95 SetUpdates(std::forward<UpdatesT>(value));
96 return *this;
97 }
98 template <typename UpdatesT = XssMatchSetUpdate>
100 m_updatesHasBeenSet = true;
101 m_updates.emplace_back(std::forward<UpdatesT>(value));
102 return *this;
103 }
105 private:
106 Aws::String m_xssMatchSetId;
107
108 Aws::String m_changeToken;
109
111 bool m_xssMatchSetIdHasBeenSet = false;
112 bool m_changeTokenHasBeenSet = false;
113 bool m_updatesHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace WAF
118} // namespace Aws
UpdateXssMatchSetRequest & AddUpdates(UpdatesT &&value)
virtual const char * GetServiceRequestName() const override
AWS_WAF_API Aws::String SerializePayload() const override
const Aws::Vector< XssMatchSetUpdate > & GetUpdates() const
AWS_WAF_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateXssMatchSetRequest & WithUpdates(UpdatesT &&value)
AWS_WAF_API UpdateXssMatchSetRequest()=default
UpdateXssMatchSetRequest & WithXssMatchSetId(XssMatchSetIdT &&value)
UpdateXssMatchSetRequest & WithChangeToken(ChangeTokenT &&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