AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateNodegroupConfigRequest.h
1
6#pragma once
7#include <aws/eks/EKS_EXPORTS.h>
8#include <aws/eks/EKSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/eks/model/UpdateLabelsPayload.h>
11#include <aws/eks/model/UpdateTaintsPayload.h>
12#include <aws/eks/model/NodegroupScalingConfig.h>
13#include <aws/eks/model/NodegroupUpdateConfig.h>
14#include <aws/eks/model/NodeRepairConfig.h>
15#include <utility>
16#include <aws/core/utils/UUID.h>
17
18namespace Aws
19{
20namespace EKS
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_EKS_API UpdateNodegroupConfigRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "UpdateNodegroupConfig"; }
37
38 AWS_EKS_API Aws::String SerializePayload() const override;
39
40
42
45 inline const Aws::String& GetClusterName() const { return m_clusterName; }
46 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
47 template<typename ClusterNameT = Aws::String>
48 void SetClusterName(ClusterNameT&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::forward<ClusterNameT>(value); }
49 template<typename ClusterNameT = Aws::String>
50 UpdateNodegroupConfigRequest& WithClusterName(ClusterNameT&& value) { SetClusterName(std::forward<ClusterNameT>(value)); return *this;}
52
54
57 inline const Aws::String& GetNodegroupName() const { return m_nodegroupName; }
58 inline bool NodegroupNameHasBeenSet() const { return m_nodegroupNameHasBeenSet; }
59 template<typename NodegroupNameT = Aws::String>
60 void SetNodegroupName(NodegroupNameT&& value) { m_nodegroupNameHasBeenSet = true; m_nodegroupName = std::forward<NodegroupNameT>(value); }
61 template<typename NodegroupNameT = Aws::String>
62 UpdateNodegroupConfigRequest& WithNodegroupName(NodegroupNameT&& value) { SetNodegroupName(std::forward<NodegroupNameT>(value)); return *this;}
64
66
70 inline const UpdateLabelsPayload& GetLabels() const { return m_labels; }
71 inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
72 template<typename LabelsT = UpdateLabelsPayload>
73 void SetLabels(LabelsT&& value) { m_labelsHasBeenSet = true; m_labels = std::forward<LabelsT>(value); }
74 template<typename LabelsT = UpdateLabelsPayload>
75 UpdateNodegroupConfigRequest& WithLabels(LabelsT&& value) { SetLabels(std::forward<LabelsT>(value)); return *this;}
77
79
85 inline const UpdateTaintsPayload& GetTaints() const { return m_taints; }
86 inline bool TaintsHasBeenSet() const { return m_taintsHasBeenSet; }
87 template<typename TaintsT = UpdateTaintsPayload>
88 void SetTaints(TaintsT&& value) { m_taintsHasBeenSet = true; m_taints = std::forward<TaintsT>(value); }
89 template<typename TaintsT = UpdateTaintsPayload>
90 UpdateNodegroupConfigRequest& WithTaints(TaintsT&& value) { SetTaints(std::forward<TaintsT>(value)); return *this;}
92
94
98 inline const NodegroupScalingConfig& GetScalingConfig() const { return m_scalingConfig; }
99 inline bool ScalingConfigHasBeenSet() const { return m_scalingConfigHasBeenSet; }
100 template<typename ScalingConfigT = NodegroupScalingConfig>
101 void SetScalingConfig(ScalingConfigT&& value) { m_scalingConfigHasBeenSet = true; m_scalingConfig = std::forward<ScalingConfigT>(value); }
102 template<typename ScalingConfigT = NodegroupScalingConfig>
103 UpdateNodegroupConfigRequest& WithScalingConfig(ScalingConfigT&& value) { SetScalingConfig(std::forward<ScalingConfigT>(value)); return *this;}
105
107
110 inline const NodegroupUpdateConfig& GetUpdateConfig() const { return m_updateConfig; }
111 inline bool UpdateConfigHasBeenSet() const { return m_updateConfigHasBeenSet; }
112 template<typename UpdateConfigT = NodegroupUpdateConfig>
113 void SetUpdateConfig(UpdateConfigT&& value) { m_updateConfigHasBeenSet = true; m_updateConfig = std::forward<UpdateConfigT>(value); }
114 template<typename UpdateConfigT = NodegroupUpdateConfig>
115 UpdateNodegroupConfigRequest& WithUpdateConfig(UpdateConfigT&& value) { SetUpdateConfig(std::forward<UpdateConfigT>(value)); return *this;}
117
119
122 inline const NodeRepairConfig& GetNodeRepairConfig() const { return m_nodeRepairConfig; }
123 inline bool NodeRepairConfigHasBeenSet() const { return m_nodeRepairConfigHasBeenSet; }
124 template<typename NodeRepairConfigT = NodeRepairConfig>
125 void SetNodeRepairConfig(NodeRepairConfigT&& value) { m_nodeRepairConfigHasBeenSet = true; m_nodeRepairConfig = std::forward<NodeRepairConfigT>(value); }
126 template<typename NodeRepairConfigT = NodeRepairConfig>
127 UpdateNodegroupConfigRequest& WithNodeRepairConfig(NodeRepairConfigT&& value) { SetNodeRepairConfig(std::forward<NodeRepairConfigT>(value)); return *this;}
129
131
135 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
136 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
137 template<typename ClientRequestTokenT = Aws::String>
138 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
139 template<typename ClientRequestTokenT = Aws::String>
140 UpdateNodegroupConfigRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
142 private:
143
144 Aws::String m_clusterName;
145 bool m_clusterNameHasBeenSet = false;
146
147 Aws::String m_nodegroupName;
148 bool m_nodegroupNameHasBeenSet = false;
149
150 UpdateLabelsPayload m_labels;
151 bool m_labelsHasBeenSet = false;
152
153 UpdateTaintsPayload m_taints;
154 bool m_taintsHasBeenSet = false;
155
156 NodegroupScalingConfig m_scalingConfig;
157 bool m_scalingConfigHasBeenSet = false;
158
159 NodegroupUpdateConfig m_updateConfig;
160 bool m_updateConfigHasBeenSet = false;
161
162 NodeRepairConfig m_nodeRepairConfig;
163 bool m_nodeRepairConfigHasBeenSet = false;
164
165 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
166 bool m_clientRequestTokenHasBeenSet = true;
167 };
168
169} // namespace Model
170} // namespace EKS
171} // 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