AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UpdateNodegroupVersionRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/eks/EKSRequest.h>
10#include <aws/eks/EKS_EXPORTS.h>
11#include <aws/eks/model/LaunchTemplateSpecification.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EKS {
17namespace Model {
18
22 public:
23 AWS_EKS_API UpdateNodegroupVersionRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateNodegroupVersion"; }
30
31 AWS_EKS_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetClusterName() const { return m_clusterName; }
38 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
39 template <typename ClusterNameT = Aws::String>
40 void SetClusterName(ClusterNameT&& value) {
41 m_clusterNameHasBeenSet = true;
42 m_clusterName = std::forward<ClusterNameT>(value);
43 }
44 template <typename ClusterNameT = Aws::String>
46 SetClusterName(std::forward<ClusterNameT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetNodegroupName() const { return m_nodegroupName; }
56 inline bool NodegroupNameHasBeenSet() const { return m_nodegroupNameHasBeenSet; }
57 template <typename NodegroupNameT = Aws::String>
58 void SetNodegroupName(NodegroupNameT&& value) {
59 m_nodegroupNameHasBeenSet = true;
60 m_nodegroupName = std::forward<NodegroupNameT>(value);
61 }
62 template <typename NodegroupNameT = Aws::String>
64 SetNodegroupName(std::forward<NodegroupNameT>(value));
65 return *this;
66 }
68
70
82 inline const Aws::String& GetVersion() const { return m_version; }
83 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
84 template <typename VersionT = Aws::String>
85 void SetVersion(VersionT&& value) {
86 m_versionHasBeenSet = true;
87 m_version = std::forward<VersionT>(value);
88 }
89 template <typename VersionT = Aws::String>
91 SetVersion(std::forward<VersionT>(value));
92 return *this;
93 }
95
97
114 inline const Aws::String& GetReleaseVersion() const { return m_releaseVersion; }
115 inline bool ReleaseVersionHasBeenSet() const { return m_releaseVersionHasBeenSet; }
116 template <typename ReleaseVersionT = Aws::String>
117 void SetReleaseVersion(ReleaseVersionT&& value) {
118 m_releaseVersionHasBeenSet = true;
119 m_releaseVersion = std::forward<ReleaseVersionT>(value);
120 }
121 template <typename ReleaseVersionT = Aws::String>
123 SetReleaseVersion(std::forward<ReleaseVersionT>(value));
124 return *this;
125 }
127
129
135 inline const LaunchTemplateSpecification& GetLaunchTemplate() const { return m_launchTemplate; }
136 inline bool LaunchTemplateHasBeenSet() const { return m_launchTemplateHasBeenSet; }
137 template <typename LaunchTemplateT = LaunchTemplateSpecification>
138 void SetLaunchTemplate(LaunchTemplateT&& value) {
139 m_launchTemplateHasBeenSet = true;
140 m_launchTemplate = std::forward<LaunchTemplateT>(value);
141 }
142 template <typename LaunchTemplateT = LaunchTemplateSpecification>
144 SetLaunchTemplate(std::forward<LaunchTemplateT>(value));
145 return *this;
146 }
148
150
157 inline bool GetForce() const { return m_force; }
158 inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
159 inline void SetForce(bool value) {
160 m_forceHasBeenSet = true;
161 m_force = value;
162 }
164 SetForce(value);
165 return *this;
166 }
168
170
174 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
175 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
176 template <typename ClientRequestTokenT = Aws::String>
177 void SetClientRequestToken(ClientRequestTokenT&& value) {
178 m_clientRequestTokenHasBeenSet = true;
179 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
180 }
181 template <typename ClientRequestTokenT = Aws::String>
183 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
184 return *this;
185 }
187 private:
188 Aws::String m_clusterName;
189
190 Aws::String m_nodegroupName;
191
192 Aws::String m_version;
193
194 Aws::String m_releaseVersion;
195
196 LaunchTemplateSpecification m_launchTemplate;
197
198 bool m_force{false};
199
200 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
201 bool m_clusterNameHasBeenSet = false;
202 bool m_nodegroupNameHasBeenSet = false;
203 bool m_versionHasBeenSet = false;
204 bool m_releaseVersionHasBeenSet = false;
205 bool m_launchTemplateHasBeenSet = false;
206 bool m_forceHasBeenSet = false;
207 bool m_clientRequestTokenHasBeenSet = true;
208};
209
210} // namespace Model
211} // namespace EKS
212} // namespace Aws
UpdateNodegroupVersionRequest & WithForce(bool value)
AWS_EKS_API Aws::String SerializePayload() const override
UpdateNodegroupVersionRequest & WithClusterName(ClusterNameT &&value)
const LaunchTemplateSpecification & GetLaunchTemplate() const
UpdateNodegroupVersionRequest & WithNodegroupName(NodegroupNameT &&value)
UpdateNodegroupVersionRequest & WithVersion(VersionT &&value)
UpdateNodegroupVersionRequest & WithReleaseVersion(ReleaseVersionT &&value)
UpdateNodegroupVersionRequest & WithLaunchTemplate(LaunchTemplateT &&value)
UpdateNodegroupVersionRequest & WithClientRequestToken(ClientRequestTokenT &&value)
virtual const char * GetServiceRequestName() const override
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String