AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ListNodegroupsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/eks/EKSRequest.h>
9#include <aws/eks/EKS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace EKS {
18namespace Model {
19
23 public:
24 AWS_EKS_API ListNodegroupsRequest() = 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 "ListNodegroups"; }
31
32 AWS_EKS_API Aws::String SerializePayload() const override;
33
34 AWS_EKS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
35
37
40 inline const Aws::String& GetClusterName() const { return m_clusterName; }
41 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
42 template <typename ClusterNameT = Aws::String>
43 void SetClusterName(ClusterNameT&& value) {
44 m_clusterNameHasBeenSet = true;
45 m_clusterName = std::forward<ClusterNameT>(value);
46 }
47 template <typename ClusterNameT = Aws::String>
48 ListNodegroupsRequest& WithClusterName(ClusterNameT&& value) {
49 SetClusterName(std::forward<ClusterNameT>(value));
50 return *this;
51 }
53
55
63 inline int GetMaxResults() const { return m_maxResults; }
64 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
65 inline void SetMaxResults(int value) {
66 m_maxResultsHasBeenSet = true;
67 m_maxResults = value;
68 }
70 SetMaxResults(value);
71 return *this;
72 }
74
76
85 inline const Aws::String& GetNextToken() const { return m_nextToken; }
86 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
87 template <typename NextTokenT = Aws::String>
88 void SetNextToken(NextTokenT&& value) {
89 m_nextTokenHasBeenSet = true;
90 m_nextToken = std::forward<NextTokenT>(value);
91 }
92 template <typename NextTokenT = Aws::String>
93 ListNodegroupsRequest& WithNextToken(NextTokenT&& value) {
94 SetNextToken(std::forward<NextTokenT>(value));
95 return *this;
96 }
98 private:
99 Aws::String m_clusterName;
100
101 int m_maxResults{0};
102
103 Aws::String m_nextToken;
104 bool m_clusterNameHasBeenSet = false;
105 bool m_maxResultsHasBeenSet = false;
106 bool m_nextTokenHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace EKS
111} // namespace Aws
AWS_EKS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_EKS_API Aws::String SerializePayload() const override
ListNodegroupsRequest & WithNextToken(NextTokenT &&value)
AWS_EKS_API ListNodegroupsRequest()=default
virtual const char * GetServiceRequestName() const override
ListNodegroupsRequest & WithClusterName(ClusterNameT &&value)
ListNodegroupsRequest & WithMaxResults(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String