AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateGeoMatchSetRequest.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/GeoMatchSetUpdate.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 "UpdateGeoMatchSet"; }
33
34 AWS_WAF_API Aws::String SerializePayload() const override;
35
37
38
40
45 inline const Aws::String& GetGeoMatchSetId() const{ return m_geoMatchSetId; }
46 inline bool GeoMatchSetIdHasBeenSet() const { return m_geoMatchSetIdHasBeenSet; }
47 inline void SetGeoMatchSetId(const Aws::String& value) { m_geoMatchSetIdHasBeenSet = true; m_geoMatchSetId = value; }
48 inline void SetGeoMatchSetId(Aws::String&& value) { m_geoMatchSetIdHasBeenSet = true; m_geoMatchSetId = std::move(value); }
49 inline void SetGeoMatchSetId(const char* value) { m_geoMatchSetIdHasBeenSet = true; m_geoMatchSetId.assign(value); }
50 inline UpdateGeoMatchSetRequest& WithGeoMatchSetId(const Aws::String& value) { SetGeoMatchSetId(value); return *this;}
51 inline UpdateGeoMatchSetRequest& WithGeoMatchSetId(Aws::String&& value) { SetGeoMatchSetId(std::move(value)); return *this;}
52 inline UpdateGeoMatchSetRequest& WithGeoMatchSetId(const char* value) { SetGeoMatchSetId(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 UpdateGeoMatchSetRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
65 inline UpdateGeoMatchSetRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
66 inline UpdateGeoMatchSetRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
68
70
80 inline const Aws::Vector<GeoMatchSetUpdate>& GetUpdates() const{ return m_updates; }
81 inline bool UpdatesHasBeenSet() const { return m_updatesHasBeenSet; }
82 inline void SetUpdates(const Aws::Vector<GeoMatchSetUpdate>& value) { m_updatesHasBeenSet = true; m_updates = value; }
83 inline void SetUpdates(Aws::Vector<GeoMatchSetUpdate>&& value) { m_updatesHasBeenSet = true; m_updates = std::move(value); }
85 inline UpdateGeoMatchSetRequest& WithUpdates(Aws::Vector<GeoMatchSetUpdate>&& value) { SetUpdates(std::move(value)); return *this;}
86 inline UpdateGeoMatchSetRequest& AddUpdates(const GeoMatchSetUpdate& value) { m_updatesHasBeenSet = true; m_updates.push_back(value); return *this; }
87 inline UpdateGeoMatchSetRequest& AddUpdates(GeoMatchSetUpdate&& value) { m_updatesHasBeenSet = true; m_updates.push_back(std::move(value)); return *this; }
89 private:
90
91 Aws::String m_geoMatchSetId;
92 bool m_geoMatchSetIdHasBeenSet = 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
UpdateGeoMatchSetRequest & WithGeoMatchSetId(const Aws::String &value)
UpdateGeoMatchSetRequest & WithChangeToken(const char *value)
UpdateGeoMatchSetRequest & WithUpdates(const Aws::Vector< GeoMatchSetUpdate > &value)
AWS_WAF_API Aws::String SerializePayload() const override
UpdateGeoMatchSetRequest & AddUpdates(const GeoMatchSetUpdate &value)
UpdateGeoMatchSetRequest & WithGeoMatchSetId(Aws::String &&value)
AWS_WAF_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateGeoMatchSetRequest & WithChangeToken(const Aws::String &value)
void SetUpdates(Aws::Vector< GeoMatchSetUpdate > &&value)
const Aws::Vector< GeoMatchSetUpdate > & GetUpdates() const
void SetUpdates(const Aws::Vector< GeoMatchSetUpdate > &value)
UpdateGeoMatchSetRequest & WithGeoMatchSetId(const char *value)
virtual const char * GetServiceRequestName() const override
UpdateGeoMatchSetRequest & AddUpdates(GeoMatchSetUpdate &&value)
UpdateGeoMatchSetRequest & WithUpdates(Aws::Vector< GeoMatchSetUpdate > &&value)
UpdateGeoMatchSetRequest & WithChangeToken(Aws::String &&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