AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
DescribeEventSubscriptionsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/docdb/DocDBRequest.h>
10#include <aws/docdb/DocDB_EXPORTS.h>
11#include <aws/docdb/model/Filter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace DocDB {
17namespace Model {
18
26 public:
27 AWS_DOCDB_API DescribeEventSubscriptionsRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "DescribeEventSubscriptions"; }
34
35 AWS_DOCDB_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
39
40 public:
42
46 inline const Aws::String& GetSubscriptionName() const { return m_subscriptionName; }
47 inline bool SubscriptionNameHasBeenSet() const { return m_subscriptionNameHasBeenSet; }
48 template <typename SubscriptionNameT = Aws::String>
49 void SetSubscriptionName(SubscriptionNameT&& value) {
50 m_subscriptionNameHasBeenSet = true;
51 m_subscriptionName = std::forward<SubscriptionNameT>(value);
52 }
53 template <typename SubscriptionNameT = Aws::String>
55 SetSubscriptionName(std::forward<SubscriptionNameT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
65 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
66 template <typename FiltersT = Aws::Vector<Filter>>
67 void SetFilters(FiltersT&& value) {
68 m_filtersHasBeenSet = true;
69 m_filters = std::forward<FiltersT>(value);
70 }
71 template <typename FiltersT = Aws::Vector<Filter>>
73 SetFilters(std::forward<FiltersT>(value));
74 return *this;
75 }
76 template <typename FiltersT = Filter>
78 m_filtersHasBeenSet = true;
79 m_filters.emplace_back(std::forward<FiltersT>(value));
80 return *this;
81 }
83
85
91 inline int GetMaxRecords() const { return m_maxRecords; }
92 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
93 inline void SetMaxRecords(int value) {
94 m_maxRecordsHasBeenSet = true;
95 m_maxRecords = value;
96 }
98 SetMaxRecords(value);
99 return *this;
100 }
102
104
109 inline const Aws::String& GetMarker() const { return m_marker; }
110 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
111 template <typename MarkerT = Aws::String>
112 void SetMarker(MarkerT&& value) {
113 m_markerHasBeenSet = true;
114 m_marker = std::forward<MarkerT>(value);
115 }
116 template <typename MarkerT = Aws::String>
118 SetMarker(std::forward<MarkerT>(value));
119 return *this;
120 }
122 private:
123 Aws::String m_subscriptionName;
124
125 Aws::Vector<Filter> m_filters;
126
127 int m_maxRecords{0};
128
129 Aws::String m_marker;
130 bool m_subscriptionNameHasBeenSet = false;
131 bool m_filtersHasBeenSet = false;
132 bool m_maxRecordsHasBeenSet = false;
133 bool m_markerHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace DocDB
138} // namespace Aws
DescribeEventSubscriptionsRequest & WithMaxRecords(int value)
DescribeEventSubscriptionsRequest & WithSubscriptionName(SubscriptionNameT &&value)
DescribeEventSubscriptionsRequest & WithMarker(MarkerT &&value)
AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeEventSubscriptionsRequest & WithFilters(FiltersT &&value)
DescribeEventSubscriptionsRequest & AddFilters(FiltersT &&value)
AWS_DOCDB_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector