AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateNodegroupVersionRequest.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/LaunchTemplateSpecification.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace EKS
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_EKS_API UpdateNodegroupVersionRequest() = 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 "UpdateNodegroupVersion"; }
33
34 AWS_EKS_API Aws::String SerializePayload() const override;
35
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) { m_clusterNameHasBeenSet = true; m_clusterName = std::forward<ClusterNameT>(value); }
45 template<typename ClusterNameT = Aws::String>
46 UpdateNodegroupVersionRequest& WithClusterName(ClusterNameT&& value) { SetClusterName(std::forward<ClusterNameT>(value)); return *this;}
48
50
53 inline const Aws::String& GetNodegroupName() const { return m_nodegroupName; }
54 inline bool NodegroupNameHasBeenSet() const { return m_nodegroupNameHasBeenSet; }
55 template<typename NodegroupNameT = Aws::String>
56 void SetNodegroupName(NodegroupNameT&& value) { m_nodegroupNameHasBeenSet = true; m_nodegroupName = std::forward<NodegroupNameT>(value); }
57 template<typename NodegroupNameT = Aws::String>
58 UpdateNodegroupVersionRequest& WithNodegroupName(NodegroupNameT&& value) { SetNodegroupName(std::forward<NodegroupNameT>(value)); return *this;}
60
62
73 inline const Aws::String& GetVersion() const { return m_version; }
74 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
75 template<typename VersionT = Aws::String>
76 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
77 template<typename VersionT = Aws::String>
78 UpdateNodegroupVersionRequest& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
80
82
99 inline const Aws::String& GetReleaseVersion() const { return m_releaseVersion; }
100 inline bool ReleaseVersionHasBeenSet() const { return m_releaseVersionHasBeenSet; }
101 template<typename ReleaseVersionT = Aws::String>
102 void SetReleaseVersion(ReleaseVersionT&& value) { m_releaseVersionHasBeenSet = true; m_releaseVersion = std::forward<ReleaseVersionT>(value); }
103 template<typename ReleaseVersionT = Aws::String>
104 UpdateNodegroupVersionRequest& WithReleaseVersion(ReleaseVersionT&& value) { SetReleaseVersion(std::forward<ReleaseVersionT>(value)); return *this;}
106
108
114 inline const LaunchTemplateSpecification& GetLaunchTemplate() const { return m_launchTemplate; }
115 inline bool LaunchTemplateHasBeenSet() const { return m_launchTemplateHasBeenSet; }
116 template<typename LaunchTemplateT = LaunchTemplateSpecification>
117 void SetLaunchTemplate(LaunchTemplateT&& value) { m_launchTemplateHasBeenSet = true; m_launchTemplate = std::forward<LaunchTemplateT>(value); }
118 template<typename LaunchTemplateT = LaunchTemplateSpecification>
119 UpdateNodegroupVersionRequest& WithLaunchTemplate(LaunchTemplateT&& value) { SetLaunchTemplate(std::forward<LaunchTemplateT>(value)); return *this;}
121
123
130 inline bool GetForce() const { return m_force; }
131 inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
132 inline void SetForce(bool value) { m_forceHasBeenSet = true; m_force = value; }
133 inline UpdateNodegroupVersionRequest& WithForce(bool value) { SetForce(value); return *this;}
135
137
141 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
142 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
143 template<typename ClientRequestTokenT = Aws::String>
144 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
145 template<typename ClientRequestTokenT = Aws::String>
146 UpdateNodegroupVersionRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
148 private:
149
150 Aws::String m_clusterName;
151 bool m_clusterNameHasBeenSet = false;
152
153 Aws::String m_nodegroupName;
154 bool m_nodegroupNameHasBeenSet = false;
155
156 Aws::String m_version;
157 bool m_versionHasBeenSet = false;
158
159 Aws::String m_releaseVersion;
160 bool m_releaseVersionHasBeenSet = false;
161
162 LaunchTemplateSpecification m_launchTemplate;
163 bool m_launchTemplateHasBeenSet = false;
164
165 bool m_force{false};
166 bool m_forceHasBeenSet = false;
167
168 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
169 bool m_clientRequestTokenHasBeenSet = true;
170 };
171
172} // namespace Model
173} // namespace EKS
174} // 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