AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateXssMatchSetRequest.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/XssMatchSetUpdate.h>
12#include <utility>
13
14namespace Aws
15{
16namespace WAFRegional
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_WAFREGIONAL_API UpdateXssMatchSetRequest();
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_WAFREGIONAL_API Aws::String SerializePayload() const override;
38
39 AWS_WAFREGIONAL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
48 inline const Aws::String& GetXssMatchSetId() const{ return m_xssMatchSetId; }
49 inline bool XssMatchSetIdHasBeenSet() const { return m_xssMatchSetIdHasBeenSet; }
50 inline void SetXssMatchSetId(const Aws::String& value) { m_xssMatchSetIdHasBeenSet = true; m_xssMatchSetId = value; }
51 inline void SetXssMatchSetId(Aws::String&& value) { m_xssMatchSetIdHasBeenSet = true; m_xssMatchSetId = std::move(value); }
52 inline void SetXssMatchSetId(const char* value) { m_xssMatchSetIdHasBeenSet = true; m_xssMatchSetId.assign(value); }
53 inline UpdateXssMatchSetRequest& WithXssMatchSetId(const Aws::String& value) { SetXssMatchSetId(value); return *this;}
54 inline UpdateXssMatchSetRequest& WithXssMatchSetId(Aws::String&& value) { SetXssMatchSetId(std::move(value)); return *this;}
55 inline UpdateXssMatchSetRequest& WithXssMatchSetId(const char* value) { SetXssMatchSetId(value); return *this;}
57
59
62 inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
63 inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
64 inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
65 inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
66 inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
67 inline UpdateXssMatchSetRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
68 inline UpdateXssMatchSetRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
69 inline UpdateXssMatchSetRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
71
73
82 inline const Aws::Vector<XssMatchSetUpdate>& GetUpdates() const{ return m_updates; }
83 inline bool UpdatesHasBeenSet() const { return m_updatesHasBeenSet; }
84 inline void SetUpdates(const Aws::Vector<XssMatchSetUpdate>& value) { m_updatesHasBeenSet = true; m_updates = value; }
85 inline void SetUpdates(Aws::Vector<XssMatchSetUpdate>&& value) { m_updatesHasBeenSet = true; m_updates = std::move(value); }
87 inline UpdateXssMatchSetRequest& WithUpdates(Aws::Vector<XssMatchSetUpdate>&& value) { SetUpdates(std::move(value)); return *this;}
88 inline UpdateXssMatchSetRequest& AddUpdates(const XssMatchSetUpdate& value) { m_updatesHasBeenSet = true; m_updates.push_back(value); return *this; }
89 inline UpdateXssMatchSetRequest& AddUpdates(XssMatchSetUpdate&& value) { m_updatesHasBeenSet = true; m_updates.push_back(std::move(value)); return *this; }
91 private:
92
93 Aws::String m_xssMatchSetId;
94 bool m_xssMatchSetIdHasBeenSet = false;
95
96 Aws::String m_changeToken;
97 bool m_changeTokenHasBeenSet = false;
98
100 bool m_updatesHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace WAFRegional
105} // namespace Aws
const Aws::Vector< XssMatchSetUpdate > & GetUpdates() const
UpdateXssMatchSetRequest & WithXssMatchSetId(Aws::String &&value)
UpdateXssMatchSetRequest & WithChangeToken(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
UpdateXssMatchSetRequest & AddUpdates(XssMatchSetUpdate &&value)
UpdateXssMatchSetRequest & WithXssMatchSetId(const Aws::String &value)
UpdateXssMatchSetRequest & WithXssMatchSetId(const char *value)
void SetUpdates(const Aws::Vector< XssMatchSetUpdate > &value)
AWS_WAFREGIONAL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateXssMatchSetRequest & WithChangeToken(const Aws::String &value)
UpdateXssMatchSetRequest & AddUpdates(const XssMatchSetUpdate &value)
UpdateXssMatchSetRequest & WithUpdates(const Aws::Vector< XssMatchSetUpdate > &value)
UpdateXssMatchSetRequest & WithUpdates(Aws::Vector< XssMatchSetUpdate > &&value)
void SetUpdates(Aws::Vector< XssMatchSetUpdate > &&value)
AWS_WAFREGIONAL_API Aws::String SerializePayload() const override
UpdateXssMatchSetRequest & WithChangeToken(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