AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeClusterVersionsRequest.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#include <aws/eks/model/VersionStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Http {
17class URI;
18} // namespace Http
19namespace EKS {
20namespace Model {
21
25 public:
26 AWS_EKS_API DescribeClusterVersionsRequest() = default;
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 "DescribeClusterVersions"; }
33
34 AWS_EKS_API Aws::String SerializePayload() const override;
35
36 AWS_EKS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
37
39
42 inline const Aws::String& GetClusterType() const { return m_clusterType; }
43 inline bool ClusterTypeHasBeenSet() const { return m_clusterTypeHasBeenSet; }
44 template <typename ClusterTypeT = Aws::String>
45 void SetClusterType(ClusterTypeT&& value) {
46 m_clusterTypeHasBeenSet = true;
47 m_clusterType = std::forward<ClusterTypeT>(value);
48 }
49 template <typename ClusterTypeT = Aws::String>
51 SetClusterType(std::forward<ClusterTypeT>(value));
52 return *this;
53 }
55
57
60 inline int GetMaxResults() const { return m_maxResults; }
61 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
62 inline void SetMaxResults(int value) {
63 m_maxResultsHasBeenSet = true;
64 m_maxResults = value;
65 }
67 SetMaxResults(value);
68 return *this;
69 }
71
73
76 inline const Aws::String& GetNextToken() const { return m_nextToken; }
77 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
78 template <typename NextTokenT = Aws::String>
79 void SetNextToken(NextTokenT&& value) {
80 m_nextTokenHasBeenSet = true;
81 m_nextToken = std::forward<NextTokenT>(value);
82 }
83 template <typename NextTokenT = Aws::String>
85 SetNextToken(std::forward<NextTokenT>(value));
86 return *this;
87 }
89
91
94 inline bool GetDefaultOnly() const { return m_defaultOnly; }
95 inline bool DefaultOnlyHasBeenSet() const { return m_defaultOnlyHasBeenSet; }
96 inline void SetDefaultOnly(bool value) {
97 m_defaultOnlyHasBeenSet = true;
98 m_defaultOnly = value;
99 }
101 SetDefaultOnly(value);
102 return *this;
103 }
105
107
110 inline bool GetIncludeAll() const { return m_includeAll; }
111 inline bool IncludeAllHasBeenSet() const { return m_includeAllHasBeenSet; }
112 inline void SetIncludeAll(bool value) {
113 m_includeAllHasBeenSet = true;
114 m_includeAll = value;
115 }
117 SetIncludeAll(value);
118 return *this;
119 }
121
123
126 inline const Aws::Vector<Aws::String>& GetClusterVersions() const { return m_clusterVersions; }
127 inline bool ClusterVersionsHasBeenSet() const { return m_clusterVersionsHasBeenSet; }
128 template <typename ClusterVersionsT = Aws::Vector<Aws::String>>
129 void SetClusterVersions(ClusterVersionsT&& value) {
130 m_clusterVersionsHasBeenSet = true;
131 m_clusterVersions = std::forward<ClusterVersionsT>(value);
132 }
133 template <typename ClusterVersionsT = Aws::Vector<Aws::String>>
135 SetClusterVersions(std::forward<ClusterVersionsT>(value));
136 return *this;
137 }
138 template <typename ClusterVersionsT = Aws::String>
140 m_clusterVersionsHasBeenSet = true;
141 m_clusterVersions.emplace_back(std::forward<ClusterVersionsT>(value));
142 return *this;
143 }
145
147
150 inline VersionStatus GetVersionStatus() const { return m_versionStatus; }
151 inline bool VersionStatusHasBeenSet() const { return m_versionStatusHasBeenSet; }
152 inline void SetVersionStatus(VersionStatus value) {
153 m_versionStatusHasBeenSet = true;
154 m_versionStatus = value;
155 }
157 SetVersionStatus(value);
158 return *this;
159 }
161 private:
162 Aws::String m_clusterType;
163
164 int m_maxResults{0};
165
166 Aws::String m_nextToken;
167
168 bool m_defaultOnly{false};
169
170 bool m_includeAll{false};
171
172 Aws::Vector<Aws::String> m_clusterVersions;
173
174 VersionStatus m_versionStatus{VersionStatus::NOT_SET};
175 bool m_clusterTypeHasBeenSet = false;
176 bool m_maxResultsHasBeenSet = false;
177 bool m_nextTokenHasBeenSet = false;
178 bool m_defaultOnlyHasBeenSet = false;
179 bool m_includeAllHasBeenSet = false;
180 bool m_clusterVersionsHasBeenSet = false;
181 bool m_versionStatusHasBeenSet = false;
182};
183
184} // namespace Model
185} // namespace EKS
186} // namespace Aws
AWS_EKS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
DescribeClusterVersionsRequest & WithClusterType(ClusterTypeT &&value)
DescribeClusterVersionsRequest & WithDefaultOnly(bool value)
DescribeClusterVersionsRequest & AddClusterVersions(ClusterVersionsT &&value)
AWS_EKS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
DescribeClusterVersionsRequest & WithClusterVersions(ClusterVersionsT &&value)
DescribeClusterVersionsRequest & WithVersionStatus(VersionStatus value)
DescribeClusterVersionsRequest & WithIncludeAll(bool value)
DescribeClusterVersionsRequest & WithNextToken(NextTokenT &&value)
DescribeClusterVersionsRequest & WithMaxResults(int value)
const Aws::Vector< Aws::String > & GetClusterVersions() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector