AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UpdateNodegroupConfigRequest.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/NodeRepairConfig.h>
12#include <aws/eks/model/NodegroupScalingConfig.h>
13#include <aws/eks/model/NodegroupUpdateConfig.h>
14#include <aws/eks/model/UpdateLabelsPayload.h>
15#include <aws/eks/model/UpdateTaintsPayload.h>
16
17#include <utility>
18
19namespace Aws {
20namespace EKS {
21namespace Model {
22
26 public:
27 AWS_EKS_API UpdateNodegroupConfigRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateNodegroupConfig"; }
34
35 AWS_EKS_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetClusterName() const { return m_clusterName; }
42 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
43 template <typename ClusterNameT = Aws::String>
44 void SetClusterName(ClusterNameT&& value) {
45 m_clusterNameHasBeenSet = true;
46 m_clusterName = std::forward<ClusterNameT>(value);
47 }
48 template <typename ClusterNameT = Aws::String>
50 SetClusterName(std::forward<ClusterNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetNodegroupName() const { return m_nodegroupName; }
60 inline bool NodegroupNameHasBeenSet() const { return m_nodegroupNameHasBeenSet; }
61 template <typename NodegroupNameT = Aws::String>
62 void SetNodegroupName(NodegroupNameT&& value) {
63 m_nodegroupNameHasBeenSet = true;
64 m_nodegroupName = std::forward<NodegroupNameT>(value);
65 }
66 template <typename NodegroupNameT = Aws::String>
68 SetNodegroupName(std::forward<NodegroupNameT>(value));
69 return *this;
70 }
72
74
78 inline const UpdateLabelsPayload& GetLabels() const { return m_labels; }
79 inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
80 template <typename LabelsT = UpdateLabelsPayload>
81 void SetLabels(LabelsT&& value) {
82 m_labelsHasBeenSet = true;
83 m_labels = std::forward<LabelsT>(value);
84 }
85 template <typename LabelsT = UpdateLabelsPayload>
87 SetLabels(std::forward<LabelsT>(value));
88 return *this;
89 }
91
93
99 inline const UpdateTaintsPayload& GetTaints() const { return m_taints; }
100 inline bool TaintsHasBeenSet() const { return m_taintsHasBeenSet; }
101 template <typename TaintsT = UpdateTaintsPayload>
102 void SetTaints(TaintsT&& value) {
103 m_taintsHasBeenSet = true;
104 m_taints = std::forward<TaintsT>(value);
105 }
106 template <typename TaintsT = UpdateTaintsPayload>
108 SetTaints(std::forward<TaintsT>(value));
109 return *this;
110 }
112
114
118 inline const NodegroupScalingConfig& GetScalingConfig() const { return m_scalingConfig; }
119 inline bool ScalingConfigHasBeenSet() const { return m_scalingConfigHasBeenSet; }
120 template <typename ScalingConfigT = NodegroupScalingConfig>
121 void SetScalingConfig(ScalingConfigT&& value) {
122 m_scalingConfigHasBeenSet = true;
123 m_scalingConfig = std::forward<ScalingConfigT>(value);
124 }
125 template <typename ScalingConfigT = NodegroupScalingConfig>
127 SetScalingConfig(std::forward<ScalingConfigT>(value));
128 return *this;
129 }
131
133
136 inline const NodegroupUpdateConfig& GetUpdateConfig() const { return m_updateConfig; }
137 inline bool UpdateConfigHasBeenSet() const { return m_updateConfigHasBeenSet; }
138 template <typename UpdateConfigT = NodegroupUpdateConfig>
139 void SetUpdateConfig(UpdateConfigT&& value) {
140 m_updateConfigHasBeenSet = true;
141 m_updateConfig = std::forward<UpdateConfigT>(value);
142 }
143 template <typename UpdateConfigT = NodegroupUpdateConfig>
145 SetUpdateConfig(std::forward<UpdateConfigT>(value));
146 return *this;
147 }
149
151
154 inline const NodeRepairConfig& GetNodeRepairConfig() const { return m_nodeRepairConfig; }
155 inline bool NodeRepairConfigHasBeenSet() const { return m_nodeRepairConfigHasBeenSet; }
156 template <typename NodeRepairConfigT = NodeRepairConfig>
157 void SetNodeRepairConfig(NodeRepairConfigT&& value) {
158 m_nodeRepairConfigHasBeenSet = true;
159 m_nodeRepairConfig = std::forward<NodeRepairConfigT>(value);
160 }
161 template <typename NodeRepairConfigT = NodeRepairConfig>
163 SetNodeRepairConfig(std::forward<NodeRepairConfigT>(value));
164 return *this;
165 }
167
169
173 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
174 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
175 template <typename ClientRequestTokenT = Aws::String>
176 void SetClientRequestToken(ClientRequestTokenT&& value) {
177 m_clientRequestTokenHasBeenSet = true;
178 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
179 }
180 template <typename ClientRequestTokenT = Aws::String>
182 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
183 return *this;
184 }
186 private:
187 Aws::String m_clusterName;
188
189 Aws::String m_nodegroupName;
190
191 UpdateLabelsPayload m_labels;
192
193 UpdateTaintsPayload m_taints;
194
195 NodegroupScalingConfig m_scalingConfig;
196
197 NodegroupUpdateConfig m_updateConfig;
198
199 NodeRepairConfig m_nodeRepairConfig;
200
201 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
202 bool m_clusterNameHasBeenSet = false;
203 bool m_nodegroupNameHasBeenSet = false;
204 bool m_labelsHasBeenSet = false;
205 bool m_taintsHasBeenSet = false;
206 bool m_scalingConfigHasBeenSet = false;
207 bool m_updateConfigHasBeenSet = false;
208 bool m_nodeRepairConfigHasBeenSet = false;
209 bool m_clientRequestTokenHasBeenSet = true;
210};
211
212} // namespace Model
213} // namespace EKS
214} // namespace Aws
UpdateNodegroupConfigRequest & WithScalingConfig(ScalingConfigT &&value)
UpdateNodegroupConfigRequest & WithUpdateConfig(UpdateConfigT &&value)
UpdateNodegroupConfigRequest & WithNodegroupName(NodegroupNameT &&value)
UpdateNodegroupConfigRequest & WithLabels(LabelsT &&value)
const NodegroupUpdateConfig & GetUpdateConfig() const
const NodegroupScalingConfig & GetScalingConfig() const
AWS_EKS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
UpdateNodegroupConfigRequest & WithClusterName(ClusterNameT &&value)
UpdateNodegroupConfigRequest & WithClientRequestToken(ClientRequestTokenT &&value)
UpdateNodegroupConfigRequest & WithTaints(TaintsT &&value)
UpdateNodegroupConfigRequest & WithNodeRepairConfig(NodeRepairConfigT &&value)
AWS_EKS_API UpdateNodegroupConfigRequest()=default
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String