AWS SDK for C++

AWS SDK for C++ Version 1.11.844

Loading...
Searching...
No Matches
UpdateClusterVersionRequest.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/RollbackConfig.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EKS {
17namespace Model {
18
22 public:
23 AWS_EKS_API UpdateClusterVersionRequest() = 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 "UpdateClusterVersion"; }
30
31 AWS_EKS_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetName() const { return m_name; }
38 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
39 template <typename NameT = Aws::String>
40 void SetName(NameT&& value) {
41 m_nameHasBeenSet = true;
42 m_name = std::forward<NameT>(value);
43 }
44 template <typename NameT = Aws::String>
46 SetName(std::forward<NameT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetVersion() const { return m_version; }
56 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
57 template <typename VersionT = Aws::String>
58 void SetVersion(VersionT&& value) {
59 m_versionHasBeenSet = true;
60 m_version = std::forward<VersionT>(value);
61 }
62 template <typename VersionT = Aws::String>
64 SetVersion(std::forward<VersionT>(value));
65 return *this;
66 }
68
70
74 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
75 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
76 template <typename ClientRequestTokenT = Aws::String>
77 void SetClientRequestToken(ClientRequestTokenT&& value) {
78 m_clientRequestTokenHasBeenSet = true;
79 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
80 }
81 template <typename ClientRequestTokenT = Aws::String>
83 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
84 return *this;
85 }
87
89
93 inline bool GetForce() const { return m_force; }
94 inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
95 inline void SetForce(bool value) {
96 m_forceHasBeenSet = true;
97 m_force = value;
98 }
100 SetForce(value);
101 return *this;
102 }
104
106
109 inline const RollbackConfig& GetRollbackConfig() const { return m_rollbackConfig; }
110 inline bool RollbackConfigHasBeenSet() const { return m_rollbackConfigHasBeenSet; }
111 template <typename RollbackConfigT = RollbackConfig>
112 void SetRollbackConfig(RollbackConfigT&& value) {
113 m_rollbackConfigHasBeenSet = true;
114 m_rollbackConfig = std::forward<RollbackConfigT>(value);
115 }
116 template <typename RollbackConfigT = RollbackConfig>
118 SetRollbackConfig(std::forward<RollbackConfigT>(value));
119 return *this;
120 }
122 private:
123 Aws::String m_name;
124
125 Aws::String m_version;
126
127 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
128
129 bool m_force{false};
130
131 RollbackConfig m_rollbackConfig;
132 bool m_nameHasBeenSet = false;
133 bool m_versionHasBeenSet = false;
134 bool m_clientRequestTokenHasBeenSet = true;
135 bool m_forceHasBeenSet = false;
136 bool m_rollbackConfigHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace EKS
141} // namespace Aws
virtual const char * GetServiceRequestName() const override
UpdateClusterVersionRequest & WithName(NameT &&value)
UpdateClusterVersionRequest & WithVersion(VersionT &&value)
AWS_EKS_API Aws::String SerializePayload() const override
AWS_EKS_API UpdateClusterVersionRequest()=default
UpdateClusterVersionRequest & WithRollbackConfig(RollbackConfigT &&value)
UpdateClusterVersionRequest & WithClientRequestToken(ClientRequestTokenT &&value)
void SetClientRequestToken(ClientRequestTokenT &&value)
UpdateClusterVersionRequest & WithForce(bool value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String