AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ListClustersRequest.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/eks/EKSRequest.h>
10#include <aws/eks/EKS_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace EKS {
19namespace Model {
20
24 public:
25 AWS_EKS_API ListClustersRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ListClusters"; }
32
33 AWS_EKS_API Aws::String SerializePayload() const override;
34
35 AWS_EKS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
46 inline int GetMaxResults() const { return m_maxResults; }
47 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
48 inline void SetMaxResults(int value) {
49 m_maxResultsHasBeenSet = true;
50 m_maxResults = value;
51 }
53 SetMaxResults(value);
54 return *this;
55 }
57
59
68 inline const Aws::String& GetNextToken() const { return m_nextToken; }
69 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
70 template <typename NextTokenT = Aws::String>
71 void SetNextToken(NextTokenT&& value) {
72 m_nextTokenHasBeenSet = true;
73 m_nextToken = std::forward<NextTokenT>(value);
74 }
75 template <typename NextTokenT = Aws::String>
76 ListClustersRequest& WithNextToken(NextTokenT&& value) {
77 SetNextToken(std::forward<NextTokenT>(value));
78 return *this;
79 }
81
83
90 inline const Aws::Vector<Aws::String>& GetInclude() const { return m_include; }
91 inline bool IncludeHasBeenSet() const { return m_includeHasBeenSet; }
92 template <typename IncludeT = Aws::Vector<Aws::String>>
93 void SetInclude(IncludeT&& value) {
94 m_includeHasBeenSet = true;
95 m_include = std::forward<IncludeT>(value);
96 }
97 template <typename IncludeT = Aws::Vector<Aws::String>>
98 ListClustersRequest& WithInclude(IncludeT&& value) {
99 SetInclude(std::forward<IncludeT>(value));
100 return *this;
101 }
102 template <typename IncludeT = Aws::String>
103 ListClustersRequest& AddInclude(IncludeT&& value) {
104 m_includeHasBeenSet = true;
105 m_include.emplace_back(std::forward<IncludeT>(value));
106 return *this;
107 }
109 private:
110 int m_maxResults{0};
111
112 Aws::String m_nextToken;
113
114 Aws::Vector<Aws::String> m_include;
115 bool m_maxResultsHasBeenSet = false;
116 bool m_nextTokenHasBeenSet = false;
117 bool m_includeHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace EKS
122} // namespace Aws
AWS_EKS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
const Aws::Vector< Aws::String > & GetInclude() const
ListClustersRequest & WithInclude(IncludeT &&value)
ListClustersRequest & AddInclude(IncludeT &&value)
ListClustersRequest & WithNextToken(NextTokenT &&value)
const Aws::String & GetNextToken() const
AWS_EKS_API Aws::String SerializePayload() const override
AWS_EKS_API ListClustersRequest()=default
ListClustersRequest & WithMaxResults(int value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector