AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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
12#include <utility>
13
14namespace Aws {
15namespace EKS {
16namespace Model {
17
21 public:
22 AWS_EKS_API UpdateClusterVersionRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateClusterVersion"; }
29
30 AWS_EKS_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetName() const { return m_name; }
37 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
38 template <typename NameT = Aws::String>
39 void SetName(NameT&& value) {
40 m_nameHasBeenSet = true;
41 m_name = std::forward<NameT>(value);
42 }
43 template <typename NameT = Aws::String>
45 SetName(std::forward<NameT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetVersion() const { return m_version; }
55 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
56 template <typename VersionT = Aws::String>
57 void SetVersion(VersionT&& value) {
58 m_versionHasBeenSet = true;
59 m_version = std::forward<VersionT>(value);
60 }
61 template <typename VersionT = Aws::String>
63 SetVersion(std::forward<VersionT>(value));
64 return *this;
65 }
67
69
73 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
74 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
75 template <typename ClientRequestTokenT = Aws::String>
76 void SetClientRequestToken(ClientRequestTokenT&& value) {
77 m_clientRequestTokenHasBeenSet = true;
78 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
79 }
80 template <typename ClientRequestTokenT = Aws::String>
82 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
83 return *this;
84 }
86
88
92 inline bool GetForce() const { return m_force; }
93 inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
94 inline void SetForce(bool value) {
95 m_forceHasBeenSet = true;
96 m_force = value;
97 }
99 SetForce(value);
100 return *this;
101 }
103 private:
104 Aws::String m_name;
105
106 Aws::String m_version;
107
108 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
109
110 bool m_force{false};
111 bool m_nameHasBeenSet = false;
112 bool m_versionHasBeenSet = false;
113 bool m_clientRequestTokenHasBeenSet = true;
114 bool m_forceHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace EKS
119} // 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 & 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