AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateIPSetRequest.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/IPSetUpdate.h>
12#include <utility>
13
14namespace Aws
15{
16namespace WAF
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_WAF_API UpdateIPSetRequest();
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 "UpdateIPSet"; }
33
34 AWS_WAF_API Aws::String SerializePayload() const override;
35
37
38
40
45 inline const Aws::String& GetIPSetId() const{ return m_iPSetId; }
46 inline bool IPSetIdHasBeenSet() const { return m_iPSetIdHasBeenSet; }
47 inline void SetIPSetId(const Aws::String& value) { m_iPSetIdHasBeenSet = true; m_iPSetId = value; }
48 inline void SetIPSetId(Aws::String&& value) { m_iPSetIdHasBeenSet = true; m_iPSetId = std::move(value); }
49 inline void SetIPSetId(const char* value) { m_iPSetIdHasBeenSet = true; m_iPSetId.assign(value); }
50 inline UpdateIPSetRequest& WithIPSetId(const Aws::String& value) { SetIPSetId(value); return *this;}
51 inline UpdateIPSetRequest& WithIPSetId(Aws::String&& value) { SetIPSetId(std::move(value)); return *this;}
52 inline UpdateIPSetRequest& WithIPSetId(const char* value) { SetIPSetId(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 UpdateIPSetRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
65 inline UpdateIPSetRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
66 inline UpdateIPSetRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
68
70
78 inline const Aws::Vector<IPSetUpdate>& GetUpdates() const{ return m_updates; }
79 inline bool UpdatesHasBeenSet() const { return m_updatesHasBeenSet; }
80 inline void SetUpdates(const Aws::Vector<IPSetUpdate>& value) { m_updatesHasBeenSet = true; m_updates = value; }
81 inline void SetUpdates(Aws::Vector<IPSetUpdate>&& value) { m_updatesHasBeenSet = true; m_updates = std::move(value); }
82 inline UpdateIPSetRequest& WithUpdates(const Aws::Vector<IPSetUpdate>& value) { SetUpdates(value); return *this;}
83 inline UpdateIPSetRequest& WithUpdates(Aws::Vector<IPSetUpdate>&& value) { SetUpdates(std::move(value)); return *this;}
84 inline UpdateIPSetRequest& AddUpdates(const IPSetUpdate& value) { m_updatesHasBeenSet = true; m_updates.push_back(value); return *this; }
85 inline UpdateIPSetRequest& AddUpdates(IPSetUpdate&& value) { m_updatesHasBeenSet = true; m_updates.push_back(std::move(value)); return *this; }
87 private:
88
89 Aws::String m_iPSetId;
90 bool m_iPSetIdHasBeenSet = 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
UpdateIPSetRequest & WithIPSetId(Aws::String &&value)
void SetChangeToken(Aws::String &&value)
UpdateIPSetRequest & WithUpdates(const Aws::Vector< IPSetUpdate > &value)
UpdateIPSetRequest & WithUpdates(Aws::Vector< IPSetUpdate > &&value)
AWS_WAF_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateIPSetRequest & WithChangeToken(Aws::String &&value)
UpdateIPSetRequest & AddUpdates(IPSetUpdate &&value)
const Aws::Vector< IPSetUpdate > & GetUpdates() const
AWS_WAF_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
UpdateIPSetRequest & WithIPSetId(const Aws::String &value)
void SetIPSetId(Aws::String &&value)
void SetChangeToken(const Aws::String &value)
UpdateIPSetRequest & WithIPSetId(const char *value)
const Aws::String & GetChangeToken() const
UpdateIPSetRequest & WithChangeToken(const char *value)
void SetUpdates(const Aws::Vector< IPSetUpdate > &value)
const Aws::String & GetIPSetId() const
UpdateIPSetRequest & WithChangeToken(const Aws::String &value)
void SetUpdates(Aws::Vector< IPSetUpdate > &&value)
void SetIPSetId(const Aws::String &value)
UpdateIPSetRequest & AddUpdates(const IPSetUpdate &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