AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
UpdateCapabilityRequest.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/CapabilityDeletePropagationPolicy.h>
12#include <aws/eks/model/UpdateCapabilityConfiguration.h>
13
14#include <utility>
15
16namespace Aws {
17namespace EKS {
18namespace Model {
19
23 public:
24 AWS_EKS_API UpdateCapabilityRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateCapability"; }
31
32 AWS_EKS_API Aws::String SerializePayload() const override;
33
35
39 inline const Aws::String& GetClusterName() const { return m_clusterName; }
40 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
41 template <typename ClusterNameT = Aws::String>
42 void SetClusterName(ClusterNameT&& value) {
43 m_clusterNameHasBeenSet = true;
44 m_clusterName = std::forward<ClusterNameT>(value);
45 }
46 template <typename ClusterNameT = Aws::String>
48 SetClusterName(std::forward<ClusterNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetCapabilityName() const { return m_capabilityName; }
58 inline bool CapabilityNameHasBeenSet() const { return m_capabilityNameHasBeenSet; }
59 template <typename CapabilityNameT = Aws::String>
60 void SetCapabilityName(CapabilityNameT&& value) {
61 m_capabilityNameHasBeenSet = true;
62 m_capabilityName = std::forward<CapabilityNameT>(value);
63 }
64 template <typename CapabilityNameT = Aws::String>
65 UpdateCapabilityRequest& WithCapabilityName(CapabilityNameT&& value) {
66 SetCapabilityName(std::forward<CapabilityNameT>(value));
67 return *this;
68 }
70
72
77 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
78 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
79 template <typename RoleArnT = Aws::String>
80 void SetRoleArn(RoleArnT&& value) {
81 m_roleArnHasBeenSet = true;
82 m_roleArn = std::forward<RoleArnT>(value);
83 }
84 template <typename RoleArnT = Aws::String>
86 SetRoleArn(std::forward<RoleArnT>(value));
87 return *this;
88 }
90
92
97 inline const UpdateCapabilityConfiguration& GetConfiguration() const { return m_configuration; }
98 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
99 template <typename ConfigurationT = UpdateCapabilityConfiguration>
100 void SetConfiguration(ConfigurationT&& value) {
101 m_configurationHasBeenSet = true;
102 m_configuration = std::forward<ConfigurationT>(value);
103 }
104 template <typename ConfigurationT = UpdateCapabilityConfiguration>
106 SetConfiguration(std::forward<ConfigurationT>(value));
107 return *this;
108 }
110
112
116 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
117 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
118 template <typename ClientRequestTokenT = Aws::String>
119 void SetClientRequestToken(ClientRequestTokenT&& value) {
120 m_clientRequestTokenHasBeenSet = true;
121 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
122 }
123 template <typename ClientRequestTokenT = Aws::String>
124 UpdateCapabilityRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
125 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
126 return *this;
127 }
129
131
135 inline CapabilityDeletePropagationPolicy GetDeletePropagationPolicy() const { return m_deletePropagationPolicy; }
136 inline bool DeletePropagationPolicyHasBeenSet() const { return m_deletePropagationPolicyHasBeenSet; }
138 m_deletePropagationPolicyHasBeenSet = true;
139 m_deletePropagationPolicy = value;
140 }
143 return *this;
144 }
146 private:
147 Aws::String m_clusterName;
148
149 Aws::String m_capabilityName;
150
151 Aws::String m_roleArn;
152
153 UpdateCapabilityConfiguration m_configuration;
154
155 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
156
158 bool m_clusterNameHasBeenSet = false;
159 bool m_capabilityNameHasBeenSet = false;
160 bool m_roleArnHasBeenSet = false;
161 bool m_configurationHasBeenSet = false;
162 bool m_clientRequestTokenHasBeenSet = true;
163 bool m_deletePropagationPolicyHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace EKS
168} // namespace Aws
UpdateCapabilityRequest & WithClusterName(ClusterNameT &&value)
UpdateCapabilityRequest & WithCapabilityName(CapabilityNameT &&value)
void SetCapabilityName(CapabilityNameT &&value)
UpdateCapabilityRequest & WithDeletePropagationPolicy(CapabilityDeletePropagationPolicy value)
UpdateCapabilityRequest & WithClientRequestToken(ClientRequestTokenT &&value)
virtual const char * GetServiceRequestName() const override
AWS_EKS_API UpdateCapabilityRequest()=default
const UpdateCapabilityConfiguration & GetConfiguration() const
void SetDeletePropagationPolicy(CapabilityDeletePropagationPolicy value)
void SetClientRequestToken(ClientRequestTokenT &&value)
UpdateCapabilityRequest & WithConfiguration(ConfigurationT &&value)
CapabilityDeletePropagationPolicy GetDeletePropagationPolicy() const
UpdateCapabilityRequest & WithRoleArn(RoleArnT &&value)
AWS_EKS_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String