AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateClusterVersionRequest.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 <utility>
11#include <aws/core/utils/UUID.h>
12
13namespace Aws
14{
15namespace EKS
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_EKS_API UpdateClusterVersionRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateClusterVersion"; }
32
33 AWS_EKS_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template<typename NameT = Aws::String>
43 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
44 template<typename NameT = Aws::String>
45 UpdateClusterVersionRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
47
49
52 inline const Aws::String& GetVersion() const { return m_version; }
53 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
54 template<typename VersionT = Aws::String>
55 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
56 template<typename VersionT = Aws::String>
57 UpdateClusterVersionRequest& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
59
61
65 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
66 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
67 template<typename ClientRequestTokenT = Aws::String>
68 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
69 template<typename ClientRequestTokenT = Aws::String>
70 UpdateClusterVersionRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
72
74
78 inline bool GetForce() const { return m_force; }
79 inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
80 inline void SetForce(bool value) { m_forceHasBeenSet = true; m_force = value; }
81 inline UpdateClusterVersionRequest& WithForce(bool value) { SetForce(value); return *this;}
83 private:
84
85 Aws::String m_name;
86 bool m_nameHasBeenSet = false;
87
88 Aws::String m_version;
89 bool m_versionHasBeenSet = false;
90
91 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
92 bool m_clientRequestTokenHasBeenSet = true;
93
94 bool m_force{false};
95 bool m_forceHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace EKS
100} // 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