AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateByteMatchSetRequest.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/ByteMatchSetUpdate.h>
12#include <utility>
13
14namespace Aws
15{
16namespace WAF
17{
18namespace Model
19{
20
24 {
25 public:
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 "UpdateByteMatchSet"; }
33
34 AWS_WAF_API Aws::String SerializePayload() const override;
35
37
38
40
45 inline const Aws::String& GetByteMatchSetId() const{ return m_byteMatchSetId; }
46 inline bool ByteMatchSetIdHasBeenSet() const { return m_byteMatchSetIdHasBeenSet; }
47 inline void SetByteMatchSetId(const Aws::String& value) { m_byteMatchSetIdHasBeenSet = true; m_byteMatchSetId = value; }
48 inline void SetByteMatchSetId(Aws::String&& value) { m_byteMatchSetIdHasBeenSet = true; m_byteMatchSetId = std::move(value); }
49 inline void SetByteMatchSetId(const char* value) { m_byteMatchSetIdHasBeenSet = true; m_byteMatchSetId.assign(value); }
50 inline UpdateByteMatchSetRequest& WithByteMatchSetId(const Aws::String& value) { SetByteMatchSetId(value); return *this;}
51 inline UpdateByteMatchSetRequest& WithByteMatchSetId(Aws::String&& value) { SetByteMatchSetId(std::move(value)); return *this;}
52 inline UpdateByteMatchSetRequest& WithByteMatchSetId(const char* value) { SetByteMatchSetId(value); return *this;}
54
56
59 inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
60 inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
61 inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
62 inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
63 inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
64 inline UpdateByteMatchSetRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
65 inline UpdateByteMatchSetRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
66 inline UpdateByteMatchSetRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
68
70
80 inline const Aws::Vector<ByteMatchSetUpdate>& GetUpdates() const{ return m_updates; }
81 inline bool UpdatesHasBeenSet() const { return m_updatesHasBeenSet; }
82 inline void SetUpdates(const Aws::Vector<ByteMatchSetUpdate>& value) { m_updatesHasBeenSet = true; m_updates = value; }
83 inline void SetUpdates(Aws::Vector<ByteMatchSetUpdate>&& value) { m_updatesHasBeenSet = true; m_updates = std::move(value); }
85 inline UpdateByteMatchSetRequest& WithUpdates(Aws::Vector<ByteMatchSetUpdate>&& value) { SetUpdates(std::move(value)); return *this;}
86 inline UpdateByteMatchSetRequest& AddUpdates(const ByteMatchSetUpdate& value) { m_updatesHasBeenSet = true; m_updates.push_back(value); return *this; }
87 inline UpdateByteMatchSetRequest& AddUpdates(ByteMatchSetUpdate&& value) { m_updatesHasBeenSet = true; m_updates.push_back(std::move(value)); return *this; }
89 private:
90
91 Aws::String m_byteMatchSetId;
92 bool m_byteMatchSetIdHasBeenSet = false;
93
94 Aws::String m_changeToken;
95 bool m_changeTokenHasBeenSet = false;
96
98 bool m_updatesHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace WAF
103} // namespace Aws
UpdateByteMatchSetRequest & WithChangeToken(const char *value)
void SetUpdates(const Aws::Vector< ByteMatchSetUpdate > &value)
UpdateByteMatchSetRequest & WithByteMatchSetId(Aws::String &&value)
const Aws::Vector< ByteMatchSetUpdate > & GetUpdates() const
UpdateByteMatchSetRequest & WithChangeToken(Aws::String &&value)
UpdateByteMatchSetRequest & WithByteMatchSetId(const Aws::String &value)
UpdateByteMatchSetRequest & WithChangeToken(const Aws::String &value)
UpdateByteMatchSetRequest & WithUpdates(Aws::Vector< ByteMatchSetUpdate > &&value)
UpdateByteMatchSetRequest & WithByteMatchSetId(const char *value)
UpdateByteMatchSetRequest & AddUpdates(const ByteMatchSetUpdate &value)
AWS_WAF_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetUpdates(Aws::Vector< ByteMatchSetUpdate > &&value)
UpdateByteMatchSetRequest & WithUpdates(const Aws::Vector< ByteMatchSetUpdate > &value)
virtual const char * GetServiceRequestName() const override
AWS_WAF_API Aws::String SerializePayload() const override
UpdateByteMatchSetRequest & AddUpdates(ByteMatchSetUpdate &&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