AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateXssMatchSetRequest.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/XssMatchSetUpdate.h>
12#include <utility>
13
14namespace Aws
15{
16namespace WAF
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_WAF_API UpdateXssMatchSetRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "UpdateXssMatchSet"; }
36
37 AWS_WAF_API Aws::String SerializePayload() const override;
38
40
41
43
48 inline const Aws::String& GetXssMatchSetId() const { return m_xssMatchSetId; }
49 inline bool XssMatchSetIdHasBeenSet() const { return m_xssMatchSetIdHasBeenSet; }
50 template<typename XssMatchSetIdT = Aws::String>
51 void SetXssMatchSetId(XssMatchSetIdT&& value) { m_xssMatchSetIdHasBeenSet = true; m_xssMatchSetId = std::forward<XssMatchSetIdT>(value); }
52 template<typename XssMatchSetIdT = Aws::String>
53 UpdateXssMatchSetRequest& WithXssMatchSetId(XssMatchSetIdT&& value) { SetXssMatchSetId(std::forward<XssMatchSetIdT>(value)); return *this;}
55
57
60 inline const Aws::String& GetChangeToken() const { return m_changeToken; }
61 inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
62 template<typename ChangeTokenT = Aws::String>
63 void SetChangeToken(ChangeTokenT&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::forward<ChangeTokenT>(value); }
64 template<typename ChangeTokenT = Aws::String>
65 UpdateXssMatchSetRequest& WithChangeToken(ChangeTokenT&& value) { SetChangeToken(std::forward<ChangeTokenT>(value)); return *this;}
67
69
78 inline const Aws::Vector<XssMatchSetUpdate>& GetUpdates() const { return m_updates; }
79 inline bool UpdatesHasBeenSet() const { return m_updatesHasBeenSet; }
80 template<typename UpdatesT = Aws::Vector<XssMatchSetUpdate>>
81 void SetUpdates(UpdatesT&& value) { m_updatesHasBeenSet = true; m_updates = std::forward<UpdatesT>(value); }
82 template<typename UpdatesT = Aws::Vector<XssMatchSetUpdate>>
83 UpdateXssMatchSetRequest& WithUpdates(UpdatesT&& value) { SetUpdates(std::forward<UpdatesT>(value)); return *this;}
84 template<typename UpdatesT = XssMatchSetUpdate>
85 UpdateXssMatchSetRequest& AddUpdates(UpdatesT&& value) { m_updatesHasBeenSet = true; m_updates.emplace_back(std::forward<UpdatesT>(value)); return *this; }
87 private:
88
89 Aws::String m_xssMatchSetId;
90 bool m_xssMatchSetIdHasBeenSet = false;
91
92 Aws::String m_changeToken;
93 bool m_changeTokenHasBeenSet = false;
94
96 bool m_updatesHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace WAF
101} // 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