AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateSqlInjectionMatchSetRequest.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/SqlInjectionMatchSetUpdate.h>
12#include <utility>
13
14namespace Aws
15{
16namespace WAF
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_WAF_API UpdateSqlInjectionMatchSetRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "UpdateSqlInjectionMatchSet"; }
37
38 AWS_WAF_API Aws::String SerializePayload() const override;
39
41
42
44
50 inline const Aws::String& GetSqlInjectionMatchSetId() const { return m_sqlInjectionMatchSetId; }
51 inline bool SqlInjectionMatchSetIdHasBeenSet() const { return m_sqlInjectionMatchSetIdHasBeenSet; }
52 template<typename SqlInjectionMatchSetIdT = Aws::String>
53 void SetSqlInjectionMatchSetId(SqlInjectionMatchSetIdT&& value) { m_sqlInjectionMatchSetIdHasBeenSet = true; m_sqlInjectionMatchSetId = std::forward<SqlInjectionMatchSetIdT>(value); }
54 template<typename SqlInjectionMatchSetIdT = Aws::String>
55 UpdateSqlInjectionMatchSetRequest& WithSqlInjectionMatchSetId(SqlInjectionMatchSetIdT&& value) { SetSqlInjectionMatchSetId(std::forward<SqlInjectionMatchSetIdT>(value)); return *this;}
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) { m_changeTokenHasBeenSet = true; m_changeToken = std::forward<ChangeTokenT>(value); }
66 template<typename ChangeTokenT = Aws::String>
67 UpdateSqlInjectionMatchSetRequest& WithChangeToken(ChangeTokenT&& value) { SetChangeToken(std::forward<ChangeTokenT>(value)); return *this;}
69
71
81 inline const Aws::Vector<SqlInjectionMatchSetUpdate>& GetUpdates() const { return m_updates; }
82 inline bool UpdatesHasBeenSet() const { return m_updatesHasBeenSet; }
83 template<typename UpdatesT = Aws::Vector<SqlInjectionMatchSetUpdate>>
84 void SetUpdates(UpdatesT&& value) { m_updatesHasBeenSet = true; m_updates = std::forward<UpdatesT>(value); }
85 template<typename UpdatesT = Aws::Vector<SqlInjectionMatchSetUpdate>>
86 UpdateSqlInjectionMatchSetRequest& WithUpdates(UpdatesT&& value) { SetUpdates(std::forward<UpdatesT>(value)); return *this;}
87 template<typename UpdatesT = SqlInjectionMatchSetUpdate>
88 UpdateSqlInjectionMatchSetRequest& AddUpdates(UpdatesT&& value) { m_updatesHasBeenSet = true; m_updates.emplace_back(std::forward<UpdatesT>(value)); return *this; }
90 private:
91
92 Aws::String m_sqlInjectionMatchSetId;
93 bool m_sqlInjectionMatchSetIdHasBeenSet = false;
94
95 Aws::String m_changeToken;
96 bool m_changeTokenHasBeenSet = false;
97
99 bool m_updatesHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace WAF
104} // namespace Aws
const Aws::Vector< SqlInjectionMatchSetUpdate > & GetUpdates() const
UpdateSqlInjectionMatchSetRequest & WithUpdates(UpdatesT &&value)
UpdateSqlInjectionMatchSetRequest & AddUpdates(UpdatesT &&value)
UpdateSqlInjectionMatchSetRequest & WithSqlInjectionMatchSetId(SqlInjectionMatchSetIdT &&value)
AWS_WAF_API Aws::String SerializePayload() const override
UpdateSqlInjectionMatchSetRequest & WithChangeToken(ChangeTokenT &&value)
AWS_WAF_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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