AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ListClustersRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/kafka/KafkaRequest.h>
9#include <aws/kafka/Kafka_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace Kafka {
18namespace Model {
19
23 public:
24 AWS_KAFKA_API ListClustersRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "ListClusters"; }
31
32 AWS_KAFKA_API Aws::String SerializePayload() const override;
33
34 AWS_KAFKA_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
35
37
44 inline const Aws::String& GetClusterNameFilter() const { return m_clusterNameFilter; }
45 inline bool ClusterNameFilterHasBeenSet() const { return m_clusterNameFilterHasBeenSet; }
46 template <typename ClusterNameFilterT = Aws::String>
47 void SetClusterNameFilter(ClusterNameFilterT&& value) {
48 m_clusterNameFilterHasBeenSet = true;
49 m_clusterNameFilter = std::forward<ClusterNameFilterT>(value);
50 }
51 template <typename ClusterNameFilterT = Aws::String>
52 ListClustersRequest& WithClusterNameFilter(ClusterNameFilterT&& value) {
53 SetClusterNameFilter(std::forward<ClusterNameFilterT>(value));
54 return *this;
55 }
57
59
66 inline int GetMaxResults() const { return m_maxResults; }
67 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
68 inline void SetMaxResults(int value) {
69 m_maxResultsHasBeenSet = true;
70 m_maxResults = value;
71 }
73 SetMaxResults(value);
74 return *this;
75 }
77
79
87 inline const Aws::String& GetNextToken() const { return m_nextToken; }
88 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
89 template <typename NextTokenT = Aws::String>
90 void SetNextToken(NextTokenT&& value) {
91 m_nextTokenHasBeenSet = true;
92 m_nextToken = std::forward<NextTokenT>(value);
93 }
94 template <typename NextTokenT = Aws::String>
95 ListClustersRequest& WithNextToken(NextTokenT&& value) {
96 SetNextToken(std::forward<NextTokenT>(value));
97 return *this;
98 }
100 private:
101 Aws::String m_clusterNameFilter;
102
103 int m_maxResults{0};
104
105 Aws::String m_nextToken;
106 bool m_clusterNameFilterHasBeenSet = false;
107 bool m_maxResultsHasBeenSet = false;
108 bool m_nextTokenHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace Kafka
113} // namespace Aws
void SetClusterNameFilter(ClusterNameFilterT &&value)
AWS_KAFKA_API ListClustersRequest()=default
ListClustersRequest & WithNextToken(NextTokenT &&value)
const Aws::String & GetNextToken() const
ListClustersRequest & WithClusterNameFilter(ClusterNameFilterT &&value)
AWS_KAFKA_API Aws::String SerializePayload() const override
AWS_KAFKA_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListClustersRequest & WithMaxResults(int value)
const Aws::String & GetClusterNameFilter() const
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String